From: Zhihao Cheng <chengzhihao1@huawei.com>
To: Li Zetao <lizetao1@huawei.com>, <richard@nod.at>
Cc: <linux-kernel@vger.kernel.org>, <linux-mtd@lists.infradead.org>
Subject: Re: [RFC PATCH 4/5] ubifs: Introduce ACLs mount options
Date: Fri, 22 Mar 2024 20:10:11 +0800 [thread overview]
Message-ID: <4c30c8e4-92fe-9935-b2ee-7b5728f261fc@huawei.com> (raw)
In-Reply-To: <b91ebdb0-bcca-18f9-6f0f-5eef6c72b42c@huawei.com>
在 2024/3/22 20:05, Li Zetao 写道:
> Hi,
>
> On 2024/3/21 14:49, Zhihao Cheng wrote:
>> 在 2024/3/20 0:16, Li Zetao 写道:
>>> Implement the ability to enable or disable the ACLs feature through
>>> mount options. "-o acl" option means enable and "-o noacl" means disable
>>> and it is enable by default.
>>>
>>> Signed-off-by: Li Zetao <lizetao1@huawei.com>
[...]
>>> @@ -2011,12 +2041,17 @@ static int ubifs_remount_fs(struct
>>> super_block *sb, int *flags, char *data)
>>> sync_filesystem(sb);
>>> dbg_gen("old flags %#lx, new flags %#x", sb->s_flags, *flags);
>>> + c->mount_opts.acl = 0;
>>> err = ubifs_parse_options(c, data, 1);
>>
>> 1. mount -onoacl /dev/ubi0_0 /mnt # After that, mount will show
>> 'noacl' option
>> 2. mount -oremount,xxx /dev/ubi0_0 /mnt
>> If 'xxx' has nothing to do with acl, c->mount_opts.acl is set as '0'.
>> Then superblock flag is assigned with 'SB_POSIXACL' and mount will not
>> display 'nocal'. Will it make user confused?
> I have tested this use case and it works fine. This is because the mount
> options will be re-parsed during remount, just like the last mount. But
> this is indeed redundant. I adjusted it to make it more reasonable.
Yes, parameter 'data' carries old mount information. Removing the
redundant assignment is fine.
next prev parent reply other threads:[~2024-03-22 12:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-19 16:16 [RFC PATCH 0/5] ubifs: Support POSIX Access Control Lists (ACLs) Li Zetao
2024-03-19 16:16 ` [RFC PATCH 1/5] ubifs: Implement " Li Zetao
2024-03-21 2:55 ` Zhihao Cheng
2024-03-22 11:36 ` Li Zetao
2024-03-19 16:16 ` [RFC PATCH 2/5] ubifs: Initialize or update ACLs for inode Li Zetao
2024-03-21 3:47 ` Zhihao Cheng
2024-03-22 11:57 ` Li Zetao
2024-03-22 12:07 ` Zhihao Cheng
2024-03-19 16:16 ` [RFC PATCH 3/5] ubifs: Support accessing ACLs through inode_operations Li Zetao
2024-03-19 16:16 ` [RFC PATCH 4/5] ubifs: Introduce ACLs mount options Li Zetao
2024-03-21 6:49 ` Zhihao Cheng
2024-03-22 12:05 ` Li Zetao
2024-03-22 12:10 ` Zhihao Cheng [this message]
2024-03-19 16:16 ` [RFC PATCH 5/5] ubifs: Add ACLs config option Li Zetao
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=4c30c8e4-92fe-9935-b2ee-7b5728f261fc@huawei.com \
--to=chengzhihao1@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=lizetao1@huawei.com \
--cc=richard@nod.at \
/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
all inboxes | Powered by JetHome®