]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - libxfs/init.c
libxfs: flush all dirty buffers and report errors when unmounting filesystem
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)
commitc335b67304fe4a2be6e46f769665ce71dc623d1d
treeeb564432630ed83c28c1f1058e22bfd4cdf16722
parenta688242b8bdbc4409b8b086c932f37d4a4940a8c
libxfs: flush all dirty buffers and report errors when unmounting filesystem

Teach libxfs_umount to flush all dirty buffers when unmounting the
filesystem, to log write verifier errors and IO errors, and to return an
error code when things go wrong.  Subsequent patches will teach critical
utilities to exit with EXIT_FAILURE when this happens.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/xfs_mount.h
libxfs/init.c
libxfs/libxfs_io.h
libxfs/rdwr.c