From: kaixuxia <xiakaixu1987@gmail.com>
To: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: linux-xfs@vger.kernel.org, Kaixu Xia <kaixuxia@tencent.com>
Subject: Re: [PATCH] xfs: fix the warning message in xfs_validate_sb_common()
Date: Tue, 12 May 2020 10:17:41 +0800 [thread overview]
Message-ID: <a2285c1e-2b96-c3ea-e2d7-720e7cb7c345@gmail.com> (raw)
In-Reply-To: <20200511152748.GB6730@magnolia>
On 2020/5/11 23:27, Darrick J. Wong wrote:
> On Sat, May 09, 2020 at 10:59:47PM +0800, xiakaixu1987@gmail.com wrote:
>> From: Kaixu Xia <kaixuxia@tencent.com>
>>
>> The warning message should be PQUOTA/GQUOTA_{ENFD|CHKD} can't along
>> with superblock earlier than version 5, so fix it.
>
> Huh?
>
> Oh, I see, you're trying to fix someone's shortcut in the logging
> messages. This is clearer (to me, anyway):
>
> “Fix this error message to complain about project and group quota flag
> bits instead of "PUOTA" and "QUOTA".”
>
> I'll commit the patch with the above changelog if that's ok?
Thanks for your comments! Yes, please. This changelog is more cleaer.
>
> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
>
> --D
>
>> Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
>> ---
>> fs/xfs/libxfs/xfs_sb.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/fs/xfs/libxfs/xfs_sb.c b/fs/xfs/libxfs/xfs_sb.c
>> index c526c5e5ab76..4df87546bd40 100644
>> --- a/fs/xfs/libxfs/xfs_sb.c
>> +++ b/fs/xfs/libxfs/xfs_sb.c
>> @@ -243,7 +243,7 @@ xfs_validate_sb_common(
>> } else if (sbp->sb_qflags & (XFS_PQUOTA_ENFD | XFS_GQUOTA_ENFD |
>> XFS_PQUOTA_CHKD | XFS_GQUOTA_CHKD)) {
>> xfs_notice(mp,
>> -"Superblock earlier than Version 5 has XFS_[PQ]UOTA_{ENFD|CHKD} bits.");
>> +"Superblock earlier than Version 5 has XFS_{P|G}QUOTA_{ENFD|CHKD} bits.");
>> return -EFSCORRUPTED;
>> }
>>
>> --
>> 2.20.0
>>
--
kaixuxia
prev parent reply other threads:[~2020-05-12 2:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-09 14:59 [PATCH] xfs: fix the warning message in xfs_validate_sb_common() xiakaixu1987
2020-05-09 16:35 ` Christoph Hellwig
2020-05-11 15:27 ` Darrick J. Wong
2020-05-11 19:39 ` Eric Sandeen
2020-05-12 2:27 ` kaixuxia
2020-05-12 2:17 ` kaixuxia [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a2285c1e-2b96-c3ea-e2d7-720e7cb7c345@gmail.com \
--to=xiakaixu1987@gmail.com \
--cc=darrick.wong@oracle.com \
--cc=kaixuxia@tencent.com \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox