linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] statmount: update STATMOUNT_SUPPORTED macro
@ 2025-05-11 22:49 Dmitry V. Levin
  2025-05-12  9:20 ` Christian Brauner
  2025-05-13 19:08 ` Jeff Layton
  0 siblings, 2 replies; 3+ messages in thread
From: Dmitry V. Levin @ 2025-05-11 22:49 UTC (permalink / raw)
  To: Christian Brauner; +Cc: Jeff Layton, linux-fsdevel, linux-kernel

According to commit 8f6116b5b77b ("statmount: add a new supported_mask
field"), STATMOUNT_SUPPORTED macro shall be updated whenever a new flag
is added.

Fixes: 7a54947e727b ("Merge patch series "fs: allow changing idmappings"")
Signed-off-by: Dmitry V. Levin <ldv@strace.io>
---
 fs/namespace.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fs/namespace.c b/fs/namespace.c
index 1b466c54a357..e321f8bae914 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -5804,7 +5804,9 @@ static int grab_requested_root(struct mnt_namespace *ns, struct path *root)
 			     STATMOUNT_SB_SOURCE | \
 			     STATMOUNT_OPT_ARRAY | \
 			     STATMOUNT_OPT_SEC_ARRAY | \
-			     STATMOUNT_SUPPORTED_MASK)
+			     STATMOUNT_SUPPORTED_MASK | \
+			     STATMOUNT_MNT_UIDMAP | \
+			     STATMOUNT_MNT_GIDMAP)
 
 static int do_statmount(struct kstatmount *s, u64 mnt_id, u64 mnt_ns_id,
 			struct mnt_namespace *ns)
-- 
ldv

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] statmount: update STATMOUNT_SUPPORTED macro
  2025-05-11 22:49 [PATCH] statmount: update STATMOUNT_SUPPORTED macro Dmitry V. Levin
@ 2025-05-12  9:20 ` Christian Brauner
  2025-05-13 19:08 ` Jeff Layton
  1 sibling, 0 replies; 3+ messages in thread
From: Christian Brauner @ 2025-05-12  9:20 UTC (permalink / raw)
  To: Dmitry V. Levin
  Cc: Christian Brauner, Jeff Layton, linux-fsdevel, linux-kernel

On Mon, 12 May 2025 01:49:53 +0300, Dmitry V. Levin wrote:
> According to commit 8f6116b5b77b ("statmount: add a new supported_mask
> field"), STATMOUNT_SUPPORTED macro shall be updated whenever a new flag
> is added.
> 
> 

Applied to the vfs-6.16.mount branch of the vfs/vfs.git tree.
Patches in the vfs-6.16.mount branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-6.16.mount

[1/1] statmount: update STATMOUNT_SUPPORTED macro
      https://git.kernel.org/vfs/vfs/c/ed3453bed26a

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] statmount: update STATMOUNT_SUPPORTED macro
  2025-05-11 22:49 [PATCH] statmount: update STATMOUNT_SUPPORTED macro Dmitry V. Levin
  2025-05-12  9:20 ` Christian Brauner
@ 2025-05-13 19:08 ` Jeff Layton
  1 sibling, 0 replies; 3+ messages in thread
From: Jeff Layton @ 2025-05-13 19:08 UTC (permalink / raw)
  To: Dmitry V. Levin, Christian Brauner; +Cc: linux-fsdevel, linux-kernel

On Mon, 2025-05-12 at 01:49 +0300, Dmitry V. Levin wrote:
> According to commit 8f6116b5b77b ("statmount: add a new supported_mask
> field"), STATMOUNT_SUPPORTED macro shall be updated whenever a new flag
> is added.
> 
> Fixes: 7a54947e727b ("Merge patch series "fs: allow changing idmappings"")
> Signed-off-by: Dmitry V. Levin <ldv@strace.io>
> ---
>  fs/namespace.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/fs/namespace.c b/fs/namespace.c
> index 1b466c54a357..e321f8bae914 100644
> --- a/fs/namespace.c
> +++ b/fs/namespace.c
> @@ -5804,7 +5804,9 @@ static int grab_requested_root(struct mnt_namespace *ns, struct path *root)
>  			     STATMOUNT_SB_SOURCE | \
>  			     STATMOUNT_OPT_ARRAY | \
>  			     STATMOUNT_OPT_SEC_ARRAY | \
> -			     STATMOUNT_SUPPORTED_MASK)
> +			     STATMOUNT_SUPPORTED_MASK | \
> +			     STATMOUNT_MNT_UIDMAP | \
> +			     STATMOUNT_MNT_GIDMAP)
>  
>  static int do_statmount(struct kstatmount *s, u64 mnt_id, u64 mnt_ns_id,
>  			struct mnt_namespace *ns)

I guess this patch and the MNT_UID/GIDMAP patches went in around the
same time, and I missed adding them to the mask since I didn't have
that patch in the tree I was working against at the time.

This is probably better for the fixes tag though:

    8f6116b5b77b statmount: add a new supported_mask field

...given that this patch went in just before it.

    37c4a9590e1e statmount: allow to retrieve idmappings

Either way:

Reviewed-by: Jeff Layton <jlayton@kernel.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-05-13 19:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-11 22:49 [PATCH] statmount: update STATMOUNT_SUPPORTED macro Dmitry V. Levin
2025-05-12  9:20 ` Christian Brauner
2025-05-13 19:08 ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).