From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7A9CED2ECF9 for ; Tue, 20 Jan 2026 07:50:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2rDqbEnzQtqtmSIk0IXDYIKp+Yx8fRCJCRilmbQsLpo=; b=eym9kB1MfvoVfJ AlXXuFk7SVUU/CidimTbKpMWluqZ3KLH4uZUwVTKhqivGMoGzI/YhpygC/SQSapehdKw7GTbOeqgK NVad/omVCSO7x2jYD2fkWrmQVqkIh8jvjfLMsTc+DUu7KrzhcDH/mKHsrPmAsjnNW9Gur8VEAX8Oi XmG4wzgLbI043a2gd4IRwKdFqe1LasE9BQUzu7wv95Q0/mJ3ynl3FZjQmqvu2qfyqxzmfmomnFrYl xxiM2lZlDT9NY7vE6qWCWg9iiyCBHw5KiMrge0WhWNfsgH5sjIotJl5PMPwjRLbviGh9LnnnPycoT rPvGZZPA/1g/om3k5Z8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vi6VH-00000003NIw-1qHD; Tue, 20 Jan 2026 07:50:19 +0000 Received: from hch by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1vi6VB-00000003NIK-3jXc; Tue, 20 Jan 2026 07:50:15 +0000 Date: Mon, 19 Jan 2026 23:50:13 -0800 From: Christoph Hellwig To: Jeff Layton Cc: Christian Brauner , Alexander Viro , Chuck Lever , NeilBrown , Olga Kornievskaia , Dai Ngo , Tom Talpey , Amir Goldstein , Hugh Dickins , Baolin Wang , Andrew Morton , Theodore Ts'o , Andreas Dilger , Jan Kara , Gao Xiang , Chao Yu , Yue Hu , Jeffle Xu , Sandeep Dhavale , Hongbo Li , Chunhai Guo , Carlos Maiolino , Ilya Dryomov , Alex Markuze , Viacheslav Dubeyko , Chris Mason , David Sterba , Luis de Bethencourt , Salah Triki , Phillip Lougher , Steve French , Paulo Alcantara , Ronnie Sahlberg , Shyam Prasad N , Bharath SM , Miklos Szeredi , Mike Marshall , Martin Brandenburg , Mark Fasheh , Joel Becker , Joseph Qi , Konstantin Komarov , Ryusuke Konishi , Trond Myklebust , Anna Schumaker , Dave Kleikamp , David Woodhouse , Richard Weinberger , Jan Kara , Andreas Gruenbacher , OGAWA Hirofumi , Jaegeuk Kim , Jonathan Corbet , David Laight , Dave Chinner , Christoph Hellwig , linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-ext4@vger.kernel.org, linux-erofs@lists.ozlabs.org, linux-xfs@vger.kernel.org, ceph-devel@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-unionfs@vger.kernel.org, devel@lists.orangefs.org, ocfs2-devel@lists.linux.dev, ntfs3@lists.linux.dev, linux-nilfs@vger.kernel.org, jfs-discussion@lists.sourceforge.net, linux-mtd@lists.infradead.org, gfs2@lists.linux.dev, linux-f2fs-devel@lists.sourceforge.net, linux-doc@vger.kernel.org Subject: Re: [PATCH v2 02/31] exportfs: add new EXPORT_OP_STABLE_HANDLES flag Message-ID: References: <20260119-exportfs-nfsd-v2-0-d93368f903bd@kernel.org> <20260119-exportfs-nfsd-v2-2-d93368f903bd@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20260119-exportfs-nfsd-v2-2-d93368f903bd@kernel.org> X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org 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. ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/