[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87il6d1cmu.fsf@meer.lwn.net>
Date: Tue, 07 Nov 2023 14:23:21 -0700
From: Jonathan Corbet <corbet@....net>
To: Miklos Szeredi <mszeredi@...hat.com>, linux-fsdevel@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, linux-api@...r.kernel.org,
linux-man@...r.kernel.org, linux-security-module@...r.kernel.org,
Karel Zak <kzak@...hat.com>, Ian Kent <raven@...maw.net>,
David Howells <dhowells@...hat.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Al Viro <viro@...iv.linux.org.uk>,
Christian Brauner <christian@...uner.io>,
Amir Goldstein <amir73il@...il.com>,
Matthew House <mattlloydhouse@...il.com>,
Florian Weimer <fweimer@...hat.com>,
Arnd Bergmann <arnd@...db.de>
Subject: Re: [PATCH v4 5/6] add listmount(2) syscall
Miklos Szeredi <mszeredi@...hat.com> writes:
> Add way to query the children of a particular mount. This is a more
> flexible way to iterate the mount tree than having to parse the complete
> /proc/self/mountinfo.
>
> Allow listing either
>
> - immediate child mounts only, or
>
> - recursively all descendant mounts (depth first).
So I have one probably silly question:
> +SYSCALL_DEFINE4(listmount, const struct __mount_arg __user *, req,
> + u64 __user *, buf, size_t, bufsize, unsigned int, flags)
> +{
Why use struct __mount_arg (or struct mnt_id_req :) here rather than
just passing in the mount ID directly? You don't use the request_mask
field anywhere.
Thanks,
jon
Powered by blists - more mailing lists