]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r324478:
authorngie <ngie@FreeBSD.org>
Tue, 17 Oct 2017 15:52:02 +0000 (15:52 +0000)
committerngie <ngie@FreeBSD.org>
Tue, 17 Oct 2017 15:52:02 +0000 (15:52 +0000)
commit2dfbb409bb2b3a1f2b28d3c853040a3cf9dccef9
tree1972b5767aa7acfec1b250e2a9e3ad18c8511196
parentb8515f8f387edbf541e0be5a7b346ad69e2db1ea
MFC r324478:

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 with: r323923
sbin/growfs/tests/legacy_test.pl
tests/sys/geom/class/eli/resize_test.sh