Thread (78 messages) 78 messages, 14 authors, 2024-10-21

Re: [RFC PATCH v1 1/7] fs: Add inode_get_ino() and implement get_ino() for NFS

From: Christoph Hellwig <hch@infradead.org>
Date: 2024-10-11 13:23:48
Also in: linux-fsdevel, linux-nfs

On Fri, Oct 11, 2024 at 03:20:30PM +0200, Mickaël Salaün wrote:
On Fri, Oct 11, 2024 at 05:54:37AM -0700, Christoph Hellwig wrote:
quoted
On Fri, Oct 11, 2024 at 02:47:14PM +0200, Mickaël Salaün wrote:
quoted
How to get the inode number with ->getattr and only a struct inode?
You get a struct kstat and extract it from that.
Yes, but how do you call getattr() without a path?
You don't because inode numbers are irrelevant without the path.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help