mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
fix permission checking on full file.
This commit is contained in:
@@ -61,7 +61,9 @@ _cleanup()
|
|||||||
rm -f $tmp.*
|
rm -f $tmp.*
|
||||||
}
|
}
|
||||||
trap "_cleanup; exit \$status" 0 1 2 3 15
|
trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||||
rm -f $seq.full $seq.out
|
rm -f $seq.out
|
||||||
|
cp /dev/null $seq.full
|
||||||
|
chmod a+rwx $seq.full # arbitrary users will write here
|
||||||
|
|
||||||
_require_scratch
|
_require_scratch
|
||||||
_require_quota
|
_require_quota
|
||||||
@@ -74,7 +76,6 @@ fi
|
|||||||
# real QA test starts here
|
# real QA test starts here
|
||||||
mkfs -t xfs -f $SCRATCH_DEV | _filter_mkfs 2>$tmp.mkfs
|
mkfs -t xfs -f $SCRATCH_DEV | _filter_mkfs 2>$tmp.mkfs
|
||||||
cat $tmp.mkfs >>$seq.full
|
cat $tmp.mkfs >>$seq.full
|
||||||
chmod a+w $seq.full # arbitrary users will write here
|
|
||||||
|
|
||||||
# keep the blocksize and data size for dd later
|
# keep the blocksize and data size for dd later
|
||||||
. $tmp.mkfs
|
. $tmp.mkfs
|
||||||
|
|||||||
Reference in New Issue
Block a user