]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Check the exit code from fsck_ffs instead of relying on MODIFIED being in the output
authorEnji Cooper <ngie@FreeBSD.org>
Tue, 10 Oct 2017 05:58:33 +0000 (05:58 +0000)
committerEnji Cooper <ngie@FreeBSD.org>
Tue, 10 Oct 2017 05:58:33 +0000 (05:58 +0000)
commit5b347b28cd121a5dbed849957c83090a6f1e4d6a
treeebce784e6ab271d12031f7ce9ae0fa367d0620b4
parent2519dfc75dbf00d94d73768a322669d2a85e5a39
Check the exit code from fsck_ffs instead of relying on MODIFIED being in the output

^/head@r323923 changed when MODIFIED is printed at exit. It's better to follow the
documented way of determining whether or not a filesystem is clean per fsck_ffs, i.e.,
ensure that the exit code is either 0 or 7.

The pass/fail determination is brittle prior to this commit, and ^/head@r323923 made
the issue apparent -- thus this needs to be fixed independent of ^/head@r323923.

PR: 222780
MFC after: 1 week
MFC with: r323923
Reported by: Jenkins
sbin/growfs/tests/legacy_test.pl
tests/sys/geom/class/eli/resize_test.sh