From c51508a47c1b931c42e35eeaea66a9b82115531e Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Fri, 22 Feb 2019 19:22:13 +0100 Subject: [PATCH] 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. --- repos/os/src/server/lx_fs/directory.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repos/os/src/server/lx_fs/directory.h b/repos/os/src/server/lx_fs/directory.h index 02213891b..a71c1fca9 100644 --- a/repos/os/src/server/lx_fs/directory.h +++ b/repos/os/src/server/lx_fs/directory.h @@ -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);