From: Chao Yu Date: Tue, 23 Jul 2019 09:25:29 +0000 (+0800) Subject: common/rc: check quota sysfile feature for f2fs X-Git-Tag: v2022.05.01~1084 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6fc5fd1eefab67f8723e2d13a7f56f4df955d606;p=users%2Fhch%2Fxfstests-dev.git common/rc: check quota sysfile feature for f2fs In _require_prjquota(), f2fs missed to check whether we have enabled quota sysfile feature in the image, add it. Signed-off-by: Chao Yu Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/common/quota b/common/quota index 9af280a23..3f46eb194 100644 --- a/common/quota +++ b/common/quota @@ -80,6 +80,8 @@ _require_prjquota() if [ "$FSTYP" == "f2fs" ]; then dump.f2fs $_dev 2>&1 | grep -qw project_quota [ $? -ne 0 ] && _notrun "Project quota not enabled in this device $_dev" + dump.f2fs $_dev 2>&1 | grep -qw quota_ino + [ $? -ne 0 ] && _notrun "quota sysfile not enabled in this device $_dev" cat /sys/fs/f2fs/features/project_quota | grep -qw supported [ $? -ne 0 ] && _notrun "Installed kernel does not support project quotas" return