From mboxrd@z Thu Jan 1 00:00:00 1970 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.subspace.kernel.org (Postfix) with ESMTPS id 9E288193434; Fri, 11 Oct 2024 14:39:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728657575; cv=none; b=NR8utp8beQDRtXTsW9HM3kCI6473thibhkzEkDLCfCjUFQhRLofTK82mw5p+Y0BZy+q1jc1k0dRlibN7P9fNgyL4dAoQb6Fxx2S572E1+/zwO/jlUx7omDXSDlfsAJVgJJm/Z+OZsTeTXo904t9EbUAbXiDrNwIDYJM8LMDnYo4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728657575; c=relaxed/simple; bh=l4HlSzWQeaFpp+9kptbV4lo/b7FEFhH9MSVYAwYDnCY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sE+jE0IQxiu3aLUzyKDxlKoTH7UPAn6oYApieOymATIxkai12IyDN/hzs5lbFEclmdBkvbXWH+UlOdK+Q100l+QQW65Z2n37dSnb/qchqZmB56jcviCSj2iJDF/WUferU7uBQ+5DzH/sYkYLV8IwjP8Nu4s7huVwdMbbbOZRT2w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=VpCbsxav; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="VpCbsxav" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=aJpxtjCRHAsK8ybbCNSnVPpKKHPQSFFkR4387HJaoGs=; b=VpCbsxavobs5WebXAVNyMY/+xa UnyPgIakda9m+TJ0g6joqsyZ4K0ksCwCIgBvdsu8O0ONhGKi+Cy57FGsAn++YpnABXxGYYuZ7IOcC sMatzUQV84/+75uhy87ZlnaLfEj+jMfvJQP2IZqkM3d7AriZaig5gomtu82YnfIb1HO8ke6yAKbO0 MGzSMr4Jo0vnJVxwcs1Tiw3zCoZU5FwELpJG6/j7qj+iF7pB9H0nqGa0PC3sZTJz1R9urbuJjy+FQ iWvh1YQ5jHa6mdDGcVXfjSZ/I7gEwMEYB/Vl3B2RePbPW2jqmlMqqYFa6QSJ/OofKkbI9sFoXiUJz AHUDVFzw==; Received: from hch by bombadil.infradead.org with local (Exim 4.98 #2 (Red Hat Linux)) id 1szGnl-0000000GdS9-1j5x; Fri, 11 Oct 2024 14:39:33 +0000 Date: Fri, 11 Oct 2024 07:39:33 -0700 From: Christoph Hellwig To: =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= Cc: Christoph Hellwig , Christian Brauner , Paul Moore , linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-security-module@vger.kernel.org, audit@vger.kernel.org, Trond Myklebust , Anna Schumaker , Alexander Viro , Jan Kara Subject: Re: [RFC PATCH v1 1/7] fs: Add inode_get_ino() and implement get_ino() for NFS Message-ID: References: <20241010152649.849254-1-mic@digikod.net> <20241011.ieghie3Aiye4@digikod.net> <20241011.yai6KiDa7ieg@digikod.net> <20241011.aetou9haeCah@digikod.net> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20241011.aetou9haeCah@digikod.net> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Fri, Oct 11, 2024 at 03:52:42PM +0200, Mickaël Salaün wrote: > > > Yes, but how do you call getattr() without a path? > > > > You don't because inode numbers are irrelevant without the path. > > They are for kernel messages and audit logs. Please take a look at the > use cases with the other patches. It still is useless. E.g. btrfs has duplicate inode numbers due to subvolumes. If you want a better pretty but not useful value just work on making i_ino 64-bits wide, which is long overdue.