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>
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)