common/rc: check quota sysfile feature for f2fs
authorChao Yu <yuchao0@huawei.com>
Tue, 23 Jul 2019 09:25:29 +0000 (17:25 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 28 Jul 2019 09:52:32 +0000 (17:52 +0800)
In _require_prjquota(), f2fs missed to check whether we have enabled
quota sysfile feature in the image, add it.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/quota

index 9af280a232cd1c27139d8e20ccf4d87418b2fc69..3f46eb1942760c61edfb1c3fd1cdc07453312b2c 100644 (file)
@@ -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