]> www.infradead.org Git - users/hch/xfsprogs.git/commit
libxfs: open-code "exit on buffer read failure" in upper level callers
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 1 Mar 2020 17:33:38 +0000 (12:33 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Sun, 1 Mar 2020 17:33:38 +0000 (12:33 -0500)
commitd855bce8f53a7845e49bcf7a1f4cd3ba2dd70e9f
tree57c0682fc542503dfb8171f08fb67829d94ae46c
parent7c8e6ac778c99620d7b67c4067cba26c72c81549
libxfs: open-code "exit on buffer read failure" in upper level callers

Make all functions that use LIBXFS_EXIT_ON_FAILURE to abort on buffer
read errors implement that logic themselves.  This also removes places
where libxfs can abort the program with no warning.

Note that in libxfs_mount, the "!(flags & DEBUGGER)" code would
indirectly select LIBXFS_EXIT_ON_FAILURE, so we're replacing the hidden
library exit(1) with a null xfs_mount return, which should cause the
utilities to exit with an error.

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>
libxfs/init.c
libxfs/rdwr.c
mkfs/xfs_mkfs.c