diff options
author | Nathan Straz <nstraz@sgi.com> | 2003-05-20 23:51:40 +0000 |
---|---|---|
committer | Nathan Straz <nstraz@sgi.com> | 2003-05-20 23:51:40 +0000 |
commit | 0cac704bdf4e8852f141b3c2bd9ad70737e94f4a (patch) | |
tree | 6ad884f157e18aceed498631782de07da63dc46e | |
parent | d4a70b11145b97d022977fb31b6988f97ee6d99a (diff) |
Add some code to limit the repquota output to just the local entries and not
the evil NIS entries. This allows me to run the tests in Eagan with NIS
enabled.
Add a parameter to _filter_and_check_blocks and pass it to _filter_repquota.
Use the new parameter to _filter_repquota.
-rwxr-xr-x | 050 | 14 | ||||
-rw-r--r-- | 050.gqnoenforce | 12 | ||||
-rw-r--r-- | 050.grpquota | 12 | ||||
-rw-r--r-- | 050.uqnoenforce | 12 | ||||
-rw-r--r-- | 050.usrquota | 12 | ||||
-rw-r--r-- | common.quota | 2 |
6 files changed, 8 insertions, 56 deletions
@@ -90,7 +90,7 @@ _filter_and_check_blocks() } s/^('$name'\s+[-|+][-|+]\s+)(\d+)/\1 OK/g; } - ' | _filter_repquota + ' | _filter_repquota $1 } # real QA test starts here @@ -127,26 +127,26 @@ echo "and using type=$type id=$id" >>$seq.full echo echo "*** report no quota settings" | tee -a $seq.full -repquota -$type $SCRATCH_DEV | _filter_repquota +repquota -$type $SCRATCH_DEV | _filter_repquota 6 echo echo "*** report initial settings" | tee -a $seq.full _file_as_id $SCRATCH_MNT/initme $id $type 1024 0 setquota -$type $id $blksoft $blkhard $inosoft $inohard $SCRATCH_DEV -repquota -$type $SCRATCH_DEV | _filter_repquota +repquota -$type $SCRATCH_DEV | _filter_repquota 7 echo echo "*** push past the soft inode limit" | tee -a $seq.full _file_as_id $SCRATCH_MNT/softie1 $id $type 1024 0 _file_as_id $SCRATCH_MNT/softie2 $id $type 1024 0 _qmount -repquota -$type $SCRATCH_DEV | _filter_repquota +repquota -$type $SCRATCH_DEV | _filter_repquota 7 echo echo "*** push past the soft block limit" | tee -a $seq.full _file_as_id $SCRATCH_MNT/softie $id $type 1024 140 _qmount -repquota -$type $SCRATCH_DEV | _filter_repquota +repquota -$type $SCRATCH_DEV | _filter_repquota 7 echo echo "*** push past the hard inode limit (expect EDQUOT)" | tee -a $seq.full @@ -155,13 +155,13 @@ do _file_as_id $SCRATCH_MNT/hard$i $id $type 1024 0 done _qmount -repquota -$type $SCRATCH_DEV | _filter_repquota +repquota -$type $SCRATCH_DEV | _filter_repquota 7 echo echo "*** push past the hard block limit (expect EDQUOT)" | tee -a $seq.full _file_as_id $SCRATCH_MNT/softie $id $type 1024 540 _qmount -repquota -$type $SCRATCH_DEV | _filter_and_check_blocks +repquota -$type $SCRATCH_DEV | _filter_and_check_blocks 7 # success, all done status=0 diff --git a/050.gqnoenforce b/050.gqnoenforce index 137aa046..ff1c417e 100644 --- a/050.gqnoenforce +++ b/050.gqnoenforce @@ -14,8 +14,6 @@ Group used soft hard grace used soft hard grace ---------------------------------------------------------------------- [NAME] -- 0 0 0 3 0 0 - - *** report initial settings *** Report for group quotas on device [DEVICE] Block grace time: 7days; Inode grace time: 7days @@ -25,8 +23,6 @@ Group used soft hard grace used soft hard grace [NAME] -- 0 0 0 3 0 0 [NAME] -- 0 100 500 1 4 10 - - *** push past the soft inode limit *** Report for group quotas on device [DEVICE] Block grace time: 7days; Inode grace time: 7days @@ -36,8 +32,6 @@ Group used soft hard grace used soft hard grace [NAME] -- 0 0 0 3 0 0 [NAME] -- 0 100 500 3 4 10 - - *** push past the soft block limit *** Report for group quotas on device [DEVICE] Block grace time: 7days; Inode grace time: 7days @@ -47,8 +41,6 @@ Group used soft hard grace used soft hard grace [NAME] -- 0 0 0 3 0 0 [NAME] +- 140 100 500 4 4 10 - - *** push past the hard inode limit (expect EDQUOT) *** Report for group quotas on device [DEVICE] Block grace time: 7days; Inode grace time: 7days @@ -58,8 +50,6 @@ Group used soft hard grace used soft hard grace [NAME] -- 4 0 0 3 0 0 [NAME] ++ 140 100 500 16 4 10 - - *** push past the hard block limit (expect EDQUOT) *** Report for group quotas on device [DEVICE] Block grace time: 7days; Inode grace time: 7days @@ -69,6 +59,4 @@ Group used soft hard grace used soft hard grace [NAME] -- 4 0 0 3 0 0 [NAME] ++ 540 100 500 16 4 10 - - *** unmount diff --git a/050.grpquota b/050.grpquota index 742c03b4..68a761d1 100644 --- a/050.grpquota +++ b/050.grpquota @@ -14,8 +14,6 @@ Group used soft hard grace used soft hard grace ---------------------------------------------------------------------- [NAME] -- 0 0 0 3 0 0 - - *** report initial settings *** Report for group quotas on device [DEVICE] Block grace time: 7days; Inode grace time: 7days @@ -25,8 +23,6 @@ Group used soft hard grace used soft hard grace [NAME] -- 0 0 0 3 0 0 [NAME] -- 0 100 500 1 4 10 - - *** push past the soft inode limit *** Report for group quotas on device [DEVICE] Block grace time: 7days; Inode grace time: 7days @@ -36,8 +32,6 @@ Group used soft hard grace used soft hard grace [NAME] -- 0 0 0 3 0 0 [NAME] -- 0 100 500 3 4 10 - - *** push past the soft block limit *** Report for group quotas on device [DEVICE] Block grace time: 7days; Inode grace time: 7days @@ -47,8 +41,6 @@ Group used soft hard grace used soft hard grace [NAME] -- 0 0 0 3 0 0 [NAME] +- 140 100 500 7days 4 4 10 7days - - *** push past the hard inode limit (expect EDQUOT) *** Report for group quotas on device [DEVICE] Block grace time: 7days; Inode grace time: 7days @@ -58,8 +50,6 @@ Group used soft hard grace used soft hard grace [NAME] -- 0 0 0 3 0 0 [NAME] ++ 140 100 500 7days 10 4 10 7days - - *** push past the hard block limit (expect EDQUOT) *** Report for group quotas on device [DEVICE] Block grace time: 7days; Inode grace time: 7days @@ -69,6 +59,4 @@ Group used soft hard grace used soft hard grace [NAME] -- 0 0 0 3 0 0 [NAME] ++ OK 100 500 7days 10 4 10 7days - - *** unmount diff --git a/050.uqnoenforce b/050.uqnoenforce index 0febbbca..619e3dd5 100644 --- a/050.uqnoenforce +++ b/050.uqnoenforce @@ -14,8 +14,6 @@ User used soft hard grace used soft hard grace ---------------------------------------------------------------------- [NAME] -- 0 0 0 3 0 0 - - *** report initial settings *** Report for user quotas on device [DEVICE] Block grace time: 7days; Inode grace time: 7days @@ -25,8 +23,6 @@ User used soft hard grace used soft hard grace [NAME] -- 0 0 0 3 0 0 [NAME] -- 0 100 500 1 4 10 - - *** push past the soft inode limit *** Report for user quotas on device [DEVICE] Block grace time: 7days; Inode grace time: 7days @@ -36,8 +32,6 @@ User used soft hard grace used soft hard grace [NAME] -- 0 0 0 3 0 0 [NAME] -- 0 100 500 3 4 10 - - *** push past the soft block limit *** Report for user quotas on device [DEVICE] Block grace time: 7days; Inode grace time: 7days @@ -47,8 +41,6 @@ User used soft hard grace used soft hard grace [NAME] -- 0 0 0 3 0 0 [NAME] +- 140 100 500 4 4 10 - - *** push past the hard inode limit (expect EDQUOT) *** Report for user quotas on device [DEVICE] Block grace time: 7days; Inode grace time: 7days @@ -58,8 +50,6 @@ User used soft hard grace used soft hard grace [NAME] -- 4 0 0 3 0 0 [NAME] ++ 140 100 500 16 4 10 - - *** push past the hard block limit (expect EDQUOT) *** Report for user quotas on device [DEVICE] Block grace time: 7days; Inode grace time: 7days @@ -69,6 +59,4 @@ User used soft hard grace used soft hard grace [NAME] -- 4 0 0 3 0 0 [NAME] ++ 540 100 500 16 4 10 - - *** unmount diff --git a/050.usrquota b/050.usrquota index c673c974..25d92080 100644 --- a/050.usrquota +++ b/050.usrquota @@ -14,8 +14,6 @@ User used soft hard grace used soft hard grace ---------------------------------------------------------------------- [NAME] -- 0 0 0 3 0 0 - - *** report initial settings *** Report for user quotas on device [DEVICE] Block grace time: 7days; Inode grace time: 7days @@ -25,8 +23,6 @@ User used soft hard grace used soft hard grace [NAME] -- 0 0 0 3 0 0 [NAME] -- 0 100 500 1 4 10 - - *** push past the soft inode limit *** Report for user quotas on device [DEVICE] Block grace time: 7days; Inode grace time: 7days @@ -36,8 +32,6 @@ User used soft hard grace used soft hard grace [NAME] -- 0 0 0 3 0 0 [NAME] -- 0 100 500 3 4 10 - - *** push past the soft block limit *** Report for user quotas on device [DEVICE] Block grace time: 7days; Inode grace time: 7days @@ -47,8 +41,6 @@ User used soft hard grace used soft hard grace [NAME] -- 0 0 0 3 0 0 [NAME] +- 140 100 500 7days 4 4 10 7days - - *** push past the hard inode limit (expect EDQUOT) *** Report for user quotas on device [DEVICE] Block grace time: 7days; Inode grace time: 7days @@ -58,8 +50,6 @@ User used soft hard grace used soft hard grace [NAME] -- 0 0 0 3 0 0 [NAME] ++ 140 100 500 7days 10 4 10 7days - - *** push past the hard block limit (expect EDQUOT) *** Report for user quotas on device [DEVICE] Block grace time: 7days; Inode grace time: 7days @@ -69,6 +59,4 @@ User used soft hard grace used soft hard grace [NAME] -- 0 0 0 3 0 0 [NAME] ++ OK 100 500 7days 10 4 10 7days - - *** unmount diff --git a/common.quota b/common.quota index a42735c2..822672f7 100644 --- a/common.quota +++ b/common.quota @@ -88,7 +88,7 @@ _choose_gid() _filter_repquota() { - perl -ne " + head -$1 | perl -ne " s/^(\w+)\s+([-|+])/[NAME] \2/g; s,$SCRATCH_DEV,[DEVICE],g; print" |