Skip to content

Commit 7f7bc5f

Browse files
authored
Merge pull request torvalds#543 from ddiss/libfuse3_xfstests
David Disseldorp (2): lklfuse: disable fuse lookup and attr caches lklfuse: enable fuse_config.use_ino
2 parents 77cc0f1 + b8618cd commit 7f7bc5f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/lkl/lklfuse.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,13 @@ static int lklfuse_fallocate(const char *path, int mode, off_t offset,
492492
static void *lklfuse_init(struct fuse_conn_info *conn, struct fuse_config *cfg)
493493
{
494494
cfg->nullpath_ok = 1;
495+
/* disable fuse lookup and attr caches */
496+
cfg->entry_timeout = 0;
497+
cfg->attr_timeout = 0;
498+
cfg->negative_timeout = 0;
499+
/* lkl provides valid st_ino values */
500+
cfg->use_ino = 1;
501+
495502
return NULL;
496503
}
497504

0 commit comments

Comments
 (0)