mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic/270: Check for scratch mount success
We don't want to fill up the scratch mount point if the scratch mount fails. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
committed by
Eryu Guan
parent
ebfd5ba86a
commit
fe3aefba4d
+1
-1
@@ -83,7 +83,7 @@ _require_command "$KILLALL_PROG" killall
|
||||
|
||||
rm -f $seqres.full
|
||||
_scratch_mkfs_sized $((512 * 1024 * 1024)) >> $seqres.full 2>&1
|
||||
_scratch_mount "-o usrquota,grpquota"
|
||||
_scratch_mount "-o usrquota,grpquota" || _fail "mount failed"
|
||||
chmod 777 $SCRATCH_MNT
|
||||
quotacheck -u -g $SCRATCH_MNT 2>/dev/null
|
||||
quotaon -u -g $SCRATCH_MNT 2>/dev/null
|
||||
|
||||
Reference in New Issue
Block a user