[PATCH 09/15] Extend debugfs stat command to take an optional file name
Valerie Aurora
val at versity.com
Fri Apr 4 04:33:07 PDT 2025
On Mon, Mar 24, 2025 at 10:29 PM Auke Kok <auke.kok at versity.com> wrote:
>
> On Wed, Mar 12, 2025 at 7:34 AM Valerie Aurora <val at versity.com> wrote:
> > Stat used to only show the root inode, now it shows either the current
> > working directory or the optional filename argument.
>
> I just noticed this. Maybe it makes sense for debugfs to just work
> with the inode ID, instead of the file name? It would avoid the
> pitfalls of pathname resolution, and I think we also want a debugfs
> command to separately do path-to-inode lookups anyway.
How about instead adding a new command to examine inodes by number? My
theory with debugfs is to make the commands that match system call
names have similar behavior to the system call, and stat takes a
pathname.
Valerie
More information about the ngnfs-devel
mailing list