]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: make libxfs_buf_read_map return an error code
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 14 Mar 2020 03:01:00 +0000 (23:01 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Sat, 14 Mar 2020 03:01:00 +0000 (23:01 -0400)
commit4c947857c473ce095683effdaa1742de164070aa
tree1cb04d67c5a8f36ff1044b265ad55834a307b291
parente50083599097da23f9e9e0a78d996a86f3ee1dec
libxfs: make libxfs_buf_read_map return an error code

Make libxfs_buf_read_map() and libxfs_readbuf() return an error code
instead of making callers guess what happened based on whether or not
they got a buffer back.

Add a new SALVAGE flag so that certain utilities (xfs_db and xfs_repair)
can attempt salvage operations even if the verifiers failed, which was
the behavior before this change.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/io.c
libxfs/libxfs_io.h
libxfs/rdwr.c
libxfs/trans.c
repair/da_util.c