lx_fs: return host inode value for dir entries

With this patch, bash running in noux becomes able to list the content
of directories (via 'echo *') hosted in lx_fs.
This commit is contained in:
Norman Feske 2019-02-22 19:22:13 +01:00 committed by Christian Helmuth
parent fa5de776a6
commit c51508a47c
1 changed files with 2 additions and 0 deletions

View File

@ -202,6 +202,8 @@ class Lx_fs::Directory : public Node
return 0;
}
e->inode = dent->d_ino;
strncpy(e->name, dent->d_name, sizeof(e->name));
return sizeof(Directory_entry);