Commit 64349030 authored by Kaixu Xia's avatar Kaixu Xia Committed by Laibin Qiu
Browse files

xfs: show the proper user quota options

mainline inclusion
from mainline-v5.11-rc6
commit 237d7887
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5AG18


CVE: NA

--------------------------------

The quota option 'usrquota' should be shown if both the XFS_UQUOTA_ACCT
and XFS_UQUOTA_ENFD flags are set. The option 'uqnoenforce' should be
shown when only the XFS_UQUOTA_ACCT flag is set. The current code logic
seems wrong, Fix it and show proper options.

Signed-off-by: default avatarKaixu Xia <kaixuxia@tencent.com>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>

Signed-off-by: default avatartangbin <tangbin@cmss.chinamobile.com>
Reviewed-by: default avatarXuenan Guo <guoxuenan@huawei.com>
Signed-off-by: default avatarLaibin Qiu <qiulaibin@huawei.com>
parent 2c73e5b7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment