summaryrefslogtreecommitdiff
path: root/lib/misc
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2017-12-19 01:12:18 +0000
committerAlasdair G Kergon <agk@redhat.com>2017-12-19 01:31:50 +0000
commit17649d4ac8d4c7d10bf58feefa5f1faae89713ca (patch)
tree4b61c337e2b99478ed9ee72c2518d6e3d3084629 /lib/misc
parent3f9ae846b89a2963a4ca72cfa0281aab0bedcc02 (diff)
downloadlvm2-17649d4ac8d4c7d10bf58feefa5f1faae89713ca.tar.gz
device: Move dev_read memory allocation into device layer.
Rename dev_read() to dev_read_buf() - the function that reads data into a supplied buffer. Introduce a new dev_read() that allocates the buffer it returns and switch the important users over to this. No caller may change the returned data. (For now, callers are responsible for freeing it after use, but later the device layer will take full ownership.) dev_read_buf() should only be used for tiny buffers or unimportant code (such as the old disk formats).
Diffstat (limited to 'lib/misc')
0 files changed, 0 insertions, 0 deletions