[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <DE6XHERVPQ7Y.163VOB8V2BURD@gmail.com>
Date: Wed, 12 Nov 2025 23:59:48 +0530
From: "Bhavik Sachdev" <b.sachdev1904@...il.com>
To: "Andrei Vagin" <avagin@...il.com>, "Bhavik Sachdev"
<b.sachdev1904@...il.com>
Cc: "Alexander Viro" <viro@...iv.linux.org.uk>, "Christian Brauner"
<brauner@...nel.org>, <linux-fsdevel@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <criu@...ts.linux.dev>, "Aleksa Sarai"
<cyphar@...har.com>, "Pavel Tikhomirov" <ptikhomirov@...tuozzo.com>, "Jan
Kara" <jack@...e.cz>, "John Garry" <john.g.garry@...cle.com>, "Arnaldo
Carvalho de Melo" <acme@...hat.com>, "Darrick J . Wong"
<djwong@...nel.org>, "Namhyung Kim" <namhyung@...nel.org>, "Ingo Molnar"
<mingo@...nel.org>, "Alexander Mikhalitsyn" <alexander@...alicyn.com>
Subject: Re: [PATCH v5] statmount: accept fd as a parameter
On Wed Nov 12, 2025 at 11:30 PM IST, Andrei Vagin wrote:
> On Sat, Nov 8, 2025 at 9:40 PM Bhavik Sachdev <b.sachdev1904@...il.com> wrote:
>>
>> Extend `struct mnt_id_req` to take in a fd and introduce STATMOUNT_BY_FD
>> flag. When a valid fd is provided and STATMOUNT_BY_FD is set, statmount
>> will return mountinfo about the mount the fd is on.
>
> It would be great to add self-tests for this new feature in
> `tools/testing/selftests/filesystems/statmount/`. These tests would
> serve two purposes:
> demonstrate the functionality of the new feature and ensure its
> continued stability
> against future changes.
>
We are currently working on adding selftests!
You can see the progress on this branch on github [1] and this commit
[2]. We will try to send a patch as soon as possible.
[1]: https://github.com/bsach64/linux/tree/statmount-fd-tests
[2]: https://github.com/bsach64/linux/commit/9ad91e5e2f01d5c7a8ac24b6e13c7942457a5270
Kind Regards,
Bhavik
Powered by blists - more mailing lists