Whamcloud - gitweb
tune2fs: tune2fs_main() should return rc when some error, occurs
authorZhiqiang Liu <liuzhiqiang26@huawei.com>
Mon, 5 Sep 2022 15:40:01 +0000 (23:40 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 12 Sep 2022 11:52:53 +0000 (07:52 -0400)
commit77ac16dfba42e0d152b1e99359e01a933f8cc6f9
tree5fc7a88f2c2d1c268935f11779ea4277a716e444
parent66ecb6abe5d2c74191bb4bc24f3da036e5fa1213
tune2fs: tune2fs_main() should return rc when some error, occurs

If some error occurs, tune2fs_main() will go to closefs tag for
releasing resource, and it should return correct value (rc) instead
of 0 when ext2fs_close_free(&fs) successes.

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Reviewed-by: Artem Blagodarenko <artem.blagodarenko@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/tune2fs.c