From 5012a05ac875c1988263faaa77177c27c62c52bb Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Wed, 3 Feb 2021 11:53:21 +0200 Subject: Fix returning inode numbers from readdir() in offset==0 mode. (#584) - Test added for all passthrough examples. - passthrough.c uses offset==0 mode. The others don't. - passthrough.c changed to set FUSE_FILL_DIR_PLUS to make the test pass. - This fixes #583. --- example/passthrough.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example/passthrough.c') diff --git a/example/passthrough.c b/example/passthrough.c index 08273ff..86ac698 100644 --- a/example/passthrough.c +++ b/example/passthrough.c @@ -132,7 +132,7 @@ static int xmp_readdir(const char *path, void *buf, fuse_fill_dir_t filler, memset(&st, 0, sizeof(st)); st.st_ino = de->d_ino; st.st_mode = de->d_type << 12; - if (filler(buf, de->d_name, &st, 0, 0)) + if (filler(buf, de->d_name, &st, 0, FUSE_FILL_DIR_PLUS)) break; } -- cgit v1.2.3