setup the out file according to enabled mount options (dquots permute the

logprint output when any form of quota is enabled).
This commit is contained in:
Nathan Scott
2001-02-09 01:44:19 +00:00
parent 61992e3541
commit d009a46d41
3 changed files with 13693 additions and 6 deletions
+11 -1
View File
@@ -117,7 +117,7 @@ _require_scratch
echo "*** init FS" echo "*** init FS"
rm -f $seq.full rm -f $seq.out $seq.full
umount $SCRATCH_DEV >/dev/null 2>&1 umount $SCRATCH_DEV >/dev/null 2>&1
_full "mkfs" _full "mkfs"
@@ -127,6 +127,16 @@ _full " mount"
mount -t xfs $SCRATCH_DEV $SCRATCH_MNT >>$seq.full 2>&1 \ mount -t xfs $SCRATCH_DEV $SCRATCH_MNT >>$seq.full 2>&1 \
|| _fail "mount failed" || _fail "mount failed"
if src/feature -U $SCRATCH_DEV
then
ln $seq.usrquota $seq.out
elif src/feature -G $SCRATCH_DEV
then
ln $seq.grpquota $seq.out
else
ln $seq.noquota $seq.out
fi
# generate some log traffic - but not too much - life gets a little # generate some log traffic - but not too much - life gets a little
# more complicated if the log wraps around. This traffic is # more complicated if the log wraps around. This traffic is
# pretty much arbitary, but could probably be made better than this. # pretty much arbitary, but could probably be made better than this.
Executable
+13677
View File
File diff suppressed because it is too large Load Diff
+4 -4
View File
@@ -89,16 +89,16 @@ then
_notrun "XFS quota not enabled" _notrun "XFS quota not enabled"
elif src/feature -u $SCRATCH_DEV elif src/feature -u $SCRATCH_DEV
then then
type=u ; id=`_choose_uid`; ln -s $seq.usrquota $seq.out type=u ; id=`_choose_uid`; ln $seq.usrquota $seq.out
elif src/feature -g $SCRATCH_DEV elif src/feature -g $SCRATCH_DEV
then then
type=g ; id=`_choose_gid`; ln -s $seq.grpquota $seq.out type=g ; id=`_choose_gid`; ln $seq.grpquota $seq.out
elif src/feature -U $SCRATCH_DEV elif src/feature -U $SCRATCH_DEV
then then
type=u ; id=`_choose_uid`; ln -s $seq.uqnoenforce $seq.out type=u ; id=`_choose_uid`; ln $seq.uqnoenforce $seq.out
elif src/feature -G $SCRATCH_DEV elif src/feature -G $SCRATCH_DEV
then then
type=g ; id=`_choose_gid`; ln -s $seq.gqnoenforce $seq.out type=g ; id=`_choose_gid`; ln $seq.gqnoenforce $seq.out
else else
_notrun "No quota support at mount time" _notrun "No quota support at mount time"
fi fi