Whamcloud - gitweb
LU-5359 quota: typo in s-q script 25/11125/2
authorNiu Yawei <yawei.niu@intel.com>
Thu, 17 Jul 2014 03:39:55 +0000 (23:39 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 1 Aug 2014 03:50:18 +0000 (03:50 +0000)
quota_scan() should report group quota when group is
specified, however, it reports user quota mistakenly.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: I9aa178cd4dc51065d23580c72884851b0baef6e1
Reviewed-on: http://review.whamcloud.com/11125
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
lustre/tests/sanity-quota.sh

index 9e3ded1..db26a05 100644 (file)
@@ -138,7 +138,7 @@ quota_scan() {
        fi
 
        if [ "$LOCAL_UG" == "a" -o "$LOCAL_UG" == "g" ]; then
-               $LFS quota -v -u $LOCAL_ID $DIR
+               $LFS quota -v -g $LOCAL_ID $DIR
                log "Files for group ($LOCAL_ID):"
                ($LFS find -group $LOCAL_ID $DIR | head -n 4 |
                        xargs stat 2>/dev/null)