Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp810224pxb; Thu, 2 Sep 2021 16:03:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWNRw8US81fFx+fmT2bNLi6SnCzFIo9I/dP3CWvsoi577G6azfKLFwPE+SX94GGB9ECc+m X-Received: by 2002:a5e:8e04:: with SMTP id a4mr642649ion.56.1630623838233; Thu, 02 Sep 2021 16:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630623838; cv=none; d=google.com; s=arc-20160816; b=mwru5jNtp+XpLUQWWPJnT64URB25XgNan7tBhsfC1b1BbHqVZAAvzBii2BEn+P8De9 3+wEcJj0uBPr8u2qeIzaczstnx9B2d59cSNYfqRtfnk6SppCQXownz5XGYCTLyPBK7IA dAhtDfJ1ZCScmD/9xPGhpDI1g8XNcoB+RYtScTikzdq4uz/RrRPZ0tg9ryys24ZZS57G Y2kPsfJaoBsVm+TMn+SQseT1UV+Mz71sYD7KDjKmik56ZNR7vwwc+cZenu7uyweSglYO j/NhhuYWAw8/tdq9PmpYGOhxhPEuAbRcQ0tYXj5pCe5yn5gi8BNUYyPVPDM3tr+Lehwz gorw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=sU28DzaSgjn8Ql/BUOqdBFP2o4qesH20RR4IjIyMuF4=; b=fyj18Jj0WjMEfq7173gZSMoEF3hdlW5R2ihC5l5RZKC4j97FSqFO+PiU9YKIxvFg67 TBUYGafPj4u1SqacC7SheMv0QwJZcF/RarngMrUU5IN7ZDQPKAiBFwc5FTnLW4PSZXfh a+saSfoEeqVjnjsMCNHmL8mK3tIgL6EM/Tf0/FA0m6Z93+EbARAW90W7PIDSJqVqcurg WsOSicFV7Oozn1fVlnetRzVt/mRD6RR7ee6dxQP+WO5WFbMmGY0HdrbxEpvmG2zDrYB0 EqSlOij/Q7kdK7P5GT31RSWnFuXAXGZFVJeHTreiqR6FCs8o7EkC1mDEKNCaZ4AFeFNp uIIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="BV/Y1O2Q"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=5x4Admos; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e11si3173714ili.46.2021.09.02.16.03.34; Thu, 02 Sep 2021 16:03:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="BV/Y1O2Q"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=5x4Admos; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348021AbhIBXDb (ORCPT + 99 others); Thu, 2 Sep 2021 19:03:31 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:48734 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348000AbhIBXDa (ORCPT ); Thu, 2 Sep 2021 19:03:30 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id F3C171FFE4; Thu, 2 Sep 2021 23:02:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1630623751; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sU28DzaSgjn8Ql/BUOqdBFP2o4qesH20RR4IjIyMuF4=; b=BV/Y1O2QOlMnvcDCFHBW5u4CZzwb5UwK+14iVsUp8deI6QkiBxqDD6rTgDljwOJCATC64V BIG6Tl0KEevu9CuYZYLZReHxXiLeh4tKIDcJhX8VD3XaSe3OFwHv/qBvZRdaqRu+LOrSaZ cfVQ8ETVtOe6uU0VXy/vlsnrsLyubyc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1630623751; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sU28DzaSgjn8Ql/BUOqdBFP2o4qesH20RR4IjIyMuF4=; b=5x4AdmosLbJvXRAfIJVIUF+zN5yMnEllEraQRyxt2IgxIrkG1mgfEkLVNEe3ZEHfZDYbKi bhnkEEby14DNpsAQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 99D4C13AAB; Thu, 2 Sep 2021 23:02:28 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id iiklFgRYMWH9RwAAMHmgww (envelope-from ); Thu, 02 Sep 2021 23:02:28 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "NeilBrown" To: "Frank Filz" Cc: "'Miklos Szeredi'" , "'Christoph Hellwig'" , "'J. Bruce Fields'" , "'Chuck Lever'" , "'Linux NFS list'" , "'Josef Bacik'" , linux-fsdevel@vger.kernel.org Subject: RE: [PATCH v2] BTRFS/NFSD: provide more unique inode number for btrfs export In-reply-to: <024601d7a005$1b3863c0$51a92b40$@mindspring.com> References: <162995209561.7591.4202079352301963089@noble.neil.brown.name>, <162995778427.7591.11743795294299207756@noble.neil.brown.name>, , <163010550851.7591.9342822614202739406@noble.neil.brown.name>, , <163038594541.7591.11109978693705593957@noble.neil.brown.name>, , <163055561473.24419.12486186372497472066@noble.neil.brown.name>, , , <024601d7a005$1b3863c0$51a92b40$@mindspring.com> Date: Fri, 03 Sep 2021 09:02:25 +1000 Message-id: <163062374563.24419.8930722817731828791@noble.neil.brown.name> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, 03 Sep 2021, Frank Filz wrote: > > On Thu, 2 Sept 2021 at 09:18, Christoph Hellwig wrote: > >=20 > > > > Your attitude seems to be that this is a btrfs problem and must be > > > > fixed in btrfs. > > > > > > Yes. > >=20 > > st_ino space issues affect overlayfs as well. The two problems are > > not the same, but do share some characteristics. And this limitation wil= l likely > > come up again in the future. > >=20 > > I suspect the long term solution would involve introducing new userspace = API > > (variable length inode numbers) and deprecating st_ino. > > E.g. make stat return an error if the inode number doesn't fit into st_in= o and add > > a statx extension to return the full number. But this would be a long pr= ocess... >=20 > But then what do we do where fileid in NFS is only 64 bits? Hence my suggestion that user-space should move to using the filehandle. Two file handles being different doesn't guarantee that the two objects are different, but the problems caused by incorrectly assuming two things are different are much less than the problems caused by incorrectly assuming two things are the same. >=20 > The solution of giving each subvol a separate fsid is the only real > solution to enlarging the NFS fileid space, however that has downsides > on the client side. And this doesn't help overlayfs... =20 NeilBrown