_choose_id function has changed slightly, run setquota once user is inited.

This commit is contained in:
Nathan Scott
2001-04-11 06:10:08 +00:00
parent 9304ea122b
commit ae9a37dbb5
7 changed files with 152 additions and 73 deletions
+5 -5
View File
@@ -85,16 +85,16 @@ _qmount
# setup exactly what it is we'll be testing
if src/feature -u $SCRATCH_DEV
then
type=u ; id=`_choose_uid`; ln $seq.usrquota $seq.out
type=u ; eval `_choose_uid`; ln $seq.usrquota $seq.out
elif src/feature -g $SCRATCH_DEV
then
type=g ; id=`_choose_gid`; ln $seq.grpquota $seq.out
type=g ; eval `_choose_gid`; ln $seq.grpquota $seq.out
elif src/feature -U $SCRATCH_DEV
then
type=u ; id=`_choose_uid`; ln $seq.uqnoenforce $seq.out
type=u ; eval `_choose_uid`; ln $seq.uqnoenforce $seq.out
elif src/feature -G $SCRATCH_DEV
then
type=g ; id=`_choose_gid`; ln $seq.gqnoenforce $seq.out
type=g ; eval `_choose_gid`; ln $seq.gqnoenforce $seq.out
else
_notrun "No quota support at mount time"
fi
@@ -108,8 +108,8 @@ repquota -$type $SCRATCH_DEV | _filter_repquota
echo
echo "*** report initial settings" | tee -a $seq.full
setquota -$type $id 100 500 4 10 $SCRATCH_DEV
_file_as_id $SCRATCH_MNT/initme $id $type 1024 0
setquota -$type $id 100 500 4 10 $SCRATCH_DEV
repquota -$type $SCRATCH_DEV | _filter_repquota
echo