]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_repair: don't use do_warn for normal log message
authorMasatake YAMATO <yamato@redhat.com>
Fri, 15 Sep 2017 18:42:18 +0000 (13:42 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 15 Sep 2017 18:42:18 +0000 (13:42 -0500)
commit67ea25fe9d663f69b550b39ce86b074534ae7c85
tree2fd3a1e1db8cbd946f0444f5463aca7d28da9450
parent99a13e2dac70d219a7039da04fb07cc48fd3fca0
xfs_repair: don't use do_warn for normal log message

In some case, exit status of xfs_repair -n is different even for
the same file system when -v is specified or not. This patch fixes
this behavior.

If -v is specified, do_warn() is used in zero_log() for printing
a normal message. That makes the exit status to 1 though there
is no dirtiness in the file system.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
[sandeen: edit changelog for brevity]
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
repair/phase2.c