mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs/299: don't chmod the underlying mountpoints prior to mounting
It's silly to make $SCRATCH_MNT world writable just prior to mounting the scratch device; instead, do it after the mount. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.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
baaa392c88
commit
c83c12e89e
+4
-3
@@ -203,9 +203,6 @@ cat $tmp.mkfs >>$seqres.full
|
||||
# keep the blocksize and data size for dd later
|
||||
. $tmp.mkfs
|
||||
|
||||
# non-root users need to be able to write to this filesystem
|
||||
chmod 777 $SCRATCH_MNT
|
||||
|
||||
cat >$tmp.projects <<EOF
|
||||
1:$SCRATCH_MNT
|
||||
EOF
|
||||
@@ -220,6 +217,10 @@ projid_file="$tmp.projid"
|
||||
echo "*** user, group, and project"
|
||||
_qmount_option "uquota,gquota,pquota"
|
||||
_qmount
|
||||
|
||||
# non-root users need to be able to write to this filesystem
|
||||
chmod 777 $SCRATCH_MNT
|
||||
|
||||
_exercise p
|
||||
_exercise g
|
||||
_exercise u
|
||||
|
||||
Reference in New Issue
Block a user