]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
mke2fs: print error string if ext2fs_close_free() fails
authorTheodore Ts'o <tytso@mit.edu>
Mon, 14 May 2018 22:22:09 +0000 (18:22 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 14 May 2018 22:22:09 +0000 (18:22 -0400)
commit61d16c39ff93f3da4ba9e2f6ee1359d48a2da969
tree68020f31b07e773200e753aa3e0e691ba01ed3e0
parente707b74145b96e62fcea41a7939b8fe26746bb1b
mke2fs: print error string if ext2fs_close_free() fails

There are multiple reasons why ext2fs_close_free() might fail, not
just an I/O error while writing out a backup superblock.  Print the
error code, and then allow mke2fs to exit with an exit status code of
1, instead of whatever random error code ext2fs_close_free() might
have returned with.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/mke2fs.c