[PATCH 1/2] erofs-utils: dump: fix --path after converting erofs_get_pathname()
Gao Xiang
hsiangkao at linux.alibaba.com
Thu Dec 23 19:26:13 AEDT 2021
Otherwise it reports:
$ dump.erofs --path=/ foo.erofs.img
<E> erofs: file path not found @ nid 36
Fixes: e6082718f743 ("erofs-utils: lib: add API to get pathname of EROFS inode")
Signed-off-by: Gao Xiang <hsiangkao at linux.alibaba.com>
---
dump/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dump/main.c b/dump/main.c
index 9d05d89..0616113 100644
--- a/dump/main.c
+++ b/dump/main.c
@@ -345,7 +345,7 @@ static void erofsdump_show_fileinfo(bool show_extent)
return;
}
- err = erofs_get_pathname(dumpcfg.nid, path, sizeof(path));
+ err = erofs_get_pathname(inode.nid, path, sizeof(path));
if (err < 0) {
erofs_err("file path not found @ nid %llu", inode.nid | 0ULL);
return;
--
2.24.4
More information about the Linux-erofs
mailing list