Re: [PATCH v2 02/31] exportfs: add new EXPORT_OP_STABLE_HANDLES flag
Jeff Layton <[email protected]>
| Newsgroups | dev.linux.lists.gfs2,dev.linux.lists.ntfs3,dev.linux.lists.ocfs2-devel,net.sourceforge.lists.linux-f2fs-devel,org.infradead.lists.linux-mtd,org.kernel.vger.ceph-devel,org.kernel.vger.linux-btrfs,org.kernel.vger.linux-cifs,org.kernel.vger.linux-doc,org.kernel.vger.linux-ext4,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-nfs,org.kernel.vger.linux-nilfs,org.kernel.vger.linux-unionfs,org.kernel.vger.linux-xfs,org.kvack.linux-mm,org.ozlabs.lists.linux-erofs |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 2026-01-19 at 23:50 -0800, Christoph Hellwig wrote: > On Mon, Jan 19, 2026 at 11:26:19AM -0500, Jeff Layton wrote: > > + EXPORT_OP_STABLE_HANDLES - This filesystem provides filehandles that are > > + stable across the lifetime of a file. This is a hard requirement for export > > + via nfsd. Any filesystem that is eligible to be exported via nfsd must > > + indicate this guarantee by setting this flag. Most disk-based filesystems > > + can do this naturally. Pseudofilesystems that are for local reporting and > > + control (e.g. kernfs, pidfs, nsfs) usually can't support this. > > Suggested rewording, taking some of the ideas from Dave Chinners earlier > comments into account: > > EXPORT_OP_STABLE_HANDLES - This filesystem provides filehandles that are > stable across the lifetime of a file. A file in this context is an > instantiated inode reachable by one or more file names, or still open after > the last name has been unlinked. Reuses of the same on-disk inode structure > are considered new files and must provide different file handles from the > previous incarnation. Most file systems designed to store user data > naturally provide this capability. Pseudofilesystems that are for local > reporting and control (e.g. kernfs, pidfs, nsfs) usually can't support this. > > This flags is a hard requirement for export via nfsd. Any filesystem that > is eligible to be exported via nfsd must indicate this guarantee by > setting this flag. Thanks Christoph! I'll plan to adopt this for v3. -- Jeff Layton <[email protected]>