initfs: Fill in st_ino

Otherwise ls and other tools will think they have already visited a
directory when recursively enumerating all files.
This commit is contained in:
bjorn3
2026-02-17 20:06:18 +01:00
parent edd1c249e9
commit f0413aec8e
2 changed files with 8 additions and 9 deletions
+1
View File
@@ -323,6 +323,7 @@ impl SchemeSync for InitFsScheme {
let inode = Self::get_inode(&self.fs, handle.inode)?;
stat.st_ino = inode.id();
stat.st_mode = inode.mode()
| match inode.kind() {
InodeKind::Dir(_) => MODE_DIR,