]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: refactor libxfs_buf_read_map for xfs_db
authorDave Chinner <dchinner@redhat.com>
Wed, 13 Nov 2013 06:40:43 +0000 (06:40 +0000)
committerRich Johnston <rjohnston@sgi.com>
Wed, 13 Nov 2013 17:10:20 +0000 (11:10 -0600)
commit800db1c1581d68cc3e44980b0be9c5ff7b7fd6d9
tree437d8c18fdd4266604dc26db95c42dfa3625b817
parent48e32b40a611384836e593251cbe9d840db00ac9
libxfs: refactor libxfs_buf_read_map for xfs_db

xfs_db requires low level read/write buffer primitives that are the
equivalent of libxfs_readbufr/writebufr. The implementation of
libxfs_writebufr already handles discontiguous buffers, but there is
no equivalent libxfs_readbufr_map support in the code.

Refactor libxfs_readbuf_map into two parts - one that does the
buffer cache lookup, and the other that does the read IO. This
provides the implementation of libxfs_readbufr_map that is required
for xfs_db.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
include/libxfs.h
libxfs/rdwr.c