fstests: define constants for fsck exit codes

Define the constants for hard coded values used in _repair_scratch_fs()
to check fsck exit code.

Suggested-by: zhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: zhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Amir Goldstein
2019-05-28 18:17:20 +03:00
committed by Eryu Guan
parent 84fbcec4ec
commit 16b7039194
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -1116,7 +1116,7 @@ _repair_scratch_fs()
fsck -t $FSTYP -y $SCRATCH_DEV 2>&1
local res=$?
case $res in
0|1|2)
$FSCK_OK|$FSCK_NONDESTRUCT|$FSCK_REBOOT)
res=0
;;
*)