public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Bhavik Sachdev" <b.sachdev1904@gmail.com>
To: "Andrei Vagin" <avagin@gmail.com>,
	"Bhavik Sachdev" <b.sachdev1904@gmail.com>
Cc: "Alexander Viro" <viro@zeniv.linux.org.uk>,
	"Christian Brauner" <brauner@kernel.org>,
	<linux-fsdevel@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<criu@lists.linux.dev>, "Aleksa Sarai" <cyphar@cyphar.com>,
	"Pavel Tikhomirov" <ptikhomirov@virtuozzo.com>,
	"Jan Kara" <jack@suse.cz>, "John Garry" <john.g.garry@oracle.com>,
	"Arnaldo Carvalho de Melo" <acme@redhat.com>,
	"Darrick J . Wong" <djwong@kernel.org>,
	"Namhyung Kim" <namhyung@kernel.org>,
	"Ingo Molnar" <mingo@kernel.org>,
	"Alexander Mikhalitsyn" <alexander@mihalicyn.com>
Subject: Re: [PATCH v5] statmount: accept fd as a parameter
Date: Wed, 12 Nov 2025 23:59:48 +0530	[thread overview]
Message-ID: <DE6XHERVPQ7Y.163VOB8V2BURD@gmail.com> (raw)
In-Reply-To: <CANaxB-wjqGDiy523w6s+CDKpC0JbQLsQB6ZipW20jieNPe3G6Q@mail.gmail.com>

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@gmail.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

  reply	other threads:[~2025-11-12 18:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-09  5:33 [PATCH v5] statmount: accept fd as a parameter Bhavik Sachdev
2025-11-12 18:00 ` Andrei Vagin
2025-11-12 18:29   ` Bhavik Sachdev [this message]
2025-11-13 12:57 ` Miklos Szeredi

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=DE6XHERVPQ7Y.163VOB8V2BURD@gmail.com \
    --to=b.sachdev1904@gmail.com \
    --cc=acme@redhat.com \
    --cc=alexander@mihalicyn.com \
    --cc=avagin@gmail.com \
    --cc=brauner@kernel.org \
    --cc=criu@lists.linux.dev \
    --cc=cyphar@cyphar.com \
    --cc=djwong@kernel.org \
    --cc=jack@suse.cz \
    --cc=john.g.garry@oracle.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=namhyung@kernel.org \
    --cc=ptikhomirov@virtuozzo.com \
    --cc=viro@zeniv.linux.org.uk \
    /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