From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA66D31ED72 for ; Thu, 15 Jan 2026 21:09:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768511379; cv=none; b=XVhj4X4Q5SEY2+q0G4vSpYsWiOo2AhEF8anXD4dElsO9X3rBT2vPXDEntYhdKLQOZCbC0bC+O/tcWNFQbhoSJFKQEyKBeqkbMBfFDERMVMF2KsQAEU7nalbKa3ThsLsxHJvyMgGtGe9lb48T3tjjKNA4upFNiOUnJRjKxx0qIGA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768511379; c=relaxed/simple; bh=2I13eLA86WUVjq+GNtA+9P+G4lanu5BXx/iTIVZI9ZE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=C+Blu3lIJO+wPtNdDYIwCqOzY/YcMoOMrlYTmnVaT3+cgAqSNkEqD72yPXLznBnGA0D+hsjWj/ZDvXi1CAKc75BlWuTsqkTmU3krawwLifyHjmCE16yzy9o+8zA+4foueiJVz+PLn7BUc1gZ8fjXm+pGJv2WP/koF2//pqk2DNY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fromorbit.com; spf=pass smtp.mailfrom=fromorbit.com; dkim=pass (2048-bit key) header.d=fromorbit-com.20230601.gappssmtp.com header.i=@fromorbit-com.20230601.gappssmtp.com header.b=fhYmLBp4; arc=none smtp.client-ip=209.85.210.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fromorbit.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fromorbit.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fromorbit-com.20230601.gappssmtp.com header.i=@fromorbit-com.20230601.gappssmtp.com header.b="fhYmLBp4" Received: by mail-pf1-f194.google.com with SMTP id d2e1a72fcca58-81c72659e6bso1201071b3a.0 for ; Thu, 15 Jan 2026 13:09:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fromorbit-com.20230601.gappssmtp.com; s=20230601; t=1768511376; x=1769116176; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=9qNaS/mHG0CWRhBXyo18LMgHGDC++HAHg2FdEUDjFsI=; b=fhYmLBp4Lhuuz02IOeinJZR0ga5TLKrwI3PKOxR7ePUZTl7L+SCF8W3dfdSwrhuiLI iyhgwuHL5daCJCNOefS4RfR1O5gQj6Uleno7czM8aTYqySE2nV5djWiYidFIqujC6rgm uOoZAoyBApGJIycPGYWKXg3LA0DTtaCQbXx/3xOzwJY3GX2i/YNsb4R2DpF0P9lnNldC cMq1/pw7FbyprENozmX4vuyVsr9t+YbQVbdJjVMvrQ7TVgT6rooXjgX7eo9cB90XaZas SKKnBRNrASQUJ7pJoTsqZtOsCX0YsK9JqAnkIvZiTqPnHa5luIgWtKPxHW26w09o//7w yZvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768511376; x=1769116176; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9qNaS/mHG0CWRhBXyo18LMgHGDC++HAHg2FdEUDjFsI=; b=EAheeDZ/JOWrZEg2Gx6LtEXSOiSRo0GJONJmL+m5STTkglLkeTcIqqlRWNVZ0yTWV6 WkvXe5/FjS4yqQWr9JwTqbA309vJUIJ9oOcBgImjivVHJFX3yYRgRtsgjqPg8b1opKtC jUqNOs3FvwrSnZp9dz8NVYM3t3zwz4i276uUCzBZHMfisCC4RHad/DklFh1GOKZI0csH Jglhvv3d+em9pIqTtlR4KxWPG/RDNkqgYxURtpy1fVd8YwZO0ZTDIK5Ze7rX/ro/lP58 K0Iz4A20yKteVNYIGU1gqtIpfUlIEiHDhSZANjquIrmopl896sLevW1r7Nutd+nWaPxa 7GTA== X-Forwarded-Encrypted: i=1; AJvYcCWuwbug8JuiV1f0zgqBpHgoSxCm8wN6UAu63BMBaqBtVk0Xdzi/dEomK8wTcyudFlunhCEHMv2pFVhI@vger.kernel.org X-Gm-Message-State: AOJu0YxJZKIo3HpxR+hjnPb+OOZTP4G+0X7QHsW9fAM4lRKGsiUMH/Oy NOXKEXl+7G4Y81hZajXv52UrPUtO87zcMEOULycqc5VUfce6RTu1+/VsR/3Xl5S7umw= X-Gm-Gg: AY/fxX6RvV4EvDtjfkM+Fe32fiTTjyeW7agYza97M8HNRds22OPWXR4p2BepYukh9gq rtiZQcK8fY/NpqVtBlvWUvonqFZds3dLX6SeGOt5SrNHFJkvpmJ37JaXut0Nz/EbcOdCvFQTTMB KKSEWR0HkjYkHes0NZ5enM53kmY/DBxzzDs2Osu7pJY1mYtrO35V+WiI0/ExOEiUYKVlWcxUxzz L7XcEF9hPW5/YUfBPk6iMRofJtpxOwG76AZLBppEDGDA+rwe9vxwns8Ngk6Wie5KkGvHFuXYMgH TV+Ka84lWrRYqu3N+JxAlBRDRfZaCdP3zXzgop67WAhA9SlihVYZHNAnmBfOnVbfrjyDupAzwHk VKT72VZhrr6UBlBjuYxdVfpPQCAc2nFAcwGqVS/AtpKM6TOa9FdAYjl1h9IsPsDuEjOMocWcvvi xiPMV/udwxxpWRyEoRtv4aJfH5KuwDpOlYLOAQOn7zzjABuGX9jDQhW85Ok67ZWN8= X-Received: by 2002:a05:6a00:1c99:b0:81e:5d52:53b9 with SMTP id d2e1a72fcca58-81f9f7f61bamr693898b3a.8.1768511376156; Thu, 15 Jan 2026 13:09:36 -0800 (PST) Received: from dread.disaster.area (pa49-180-164-75.pa.nsw.optusnet.com.au. [49.180.164.75]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-81fa10bda5csm259171b3a.19.2026.01.15.13.09.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jan 2026 13:09:35 -0800 (PST) Received: from dave by dread.disaster.area with local (Exim 4.99.1) (envelope-from ) id 1vgUai-00000003vHn-2AU2; Fri, 16 Jan 2026 08:09:16 +1100 Date: Fri, 16 Jan 2026 08:09:16 +1100 From: Dave Chinner To: Chuck Lever Cc: Amir Goldstein , Jeff Layton , Christian Brauner , Alexander Viro , Chuck Lever , NeilBrown , Olga Kornievskaia , Dai Ngo , Tom Talpey , Hugh Dickins , Baolin Wang , Andrew Morton , Theodore Tso , 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 , 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 Subject: Re: [PATCH 00/29] fs: require filesystems to explicitly opt-in to nfsd export support Message-ID: References: <20260115-exportfs-nfsd-v1-0-8e80160e3c0c@kernel.org> <4d9967cc-a454-46cf-909b-b8ab2d18358d@kernel.org> Precedence: bulk X-Mailing-List: linux-cifs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4d9967cc-a454-46cf-909b-b8ab2d18358d@kernel.org> On Thu, Jan 15, 2026 at 02:37:09PM -0500, Chuck Lever wrote: > On 1/15/26 2:14 PM, Amir Goldstein wrote: > > On Thu, Jan 15, 2026 at 7:32 PM Chuck Lever wrote: > >> > >> > >> > >> On Thu, Jan 15, 2026, at 1:17 PM, Amir Goldstein wrote: > >>> On Thu, Jan 15, 2026 at 6:48 PM Jeff Layton wrote: > >>>> > >>>> In recent years, a number of filesystems that can't present stable > >>>> filehandles have grown struct export_operations. They've mostly done > >>>> this for local use-cases (enabling open_by_handle_at() and the like). > >>>> Unfortunately, having export_operations is generally sufficient to make > >>>> a filesystem be considered exportable via nfsd, but that requires that > >>>> the server present stable filehandles. > >>> > >>> Where does the term "stable file handles" come from? and what does it mean? > >>> Why not "persistent handles", which is described in NFS and SMB specs? > >>> > >>> Not to mention that EXPORT_OP_PERSISTENT_HANDLES was Acked > >>> by both Christoph and Christian: > >>> > >>> https://lore.kernel.org/linux-fsdevel/20260115-rundgang-leihgabe-12018e93c00c@brauner/ > >>> > >>> Am I missing anything? > >> > >> PERSISTENT generally implies that the file handle is saved on > >> persistent storage. This is not true of tmpfs. > > > > That's one way of interpreting "persistent". > > Another way is "continuing to exist or occur over a prolonged period." > > which works well for tmpfs that is mounted for a long time. > > I think we can be a lot more precise about the guarantee: The file > handle does not change for the life of the inode it represents. It File handles most definitely change over the life of a /physical/ inode. Unlinking a file does not require ending the life of the physical object that provides the persistent data store for the file. e.g. XFS dynamically allocates physical inodes might in a life cycle that looks somewhat life this: allocate physical inode insert record into allocated inode index mark inode as free while (don't need to free physical inode) { ... allocate inode for a new file update persistent inode metadata to generate new filehandle mark inode in use ... unlink file mark inode free } remove inode from allocated inode index free physical inode i.e. a free inode is still an -allocated, indexed inode- in the filesystem, and until we physically remove it from the filesystem the inode life cycle has not ended. IOWs, the physical (persistent) inode lifetime can span the lifetime of -many- files. However, the filesystem guarantees that the handle generated for that inode is different for each file it represents over the whole inode life time. Hence I think that file handle stability/persistence needs to be defined in terms of -file lifetimes-, not the lifetimes of the filesystem objects implement the file's persistent data store. -Dave. -- Dave Chinner david@fromorbit.com