From 96d28a91c4b71e6b78f8b9061866f91b2684b19b Mon Sep 17 00:00:00 2001 From: edef Date: Thu, 5 May 2022 14:49:31 +0000 Subject: ripple/fossil/mount: document how . and .. work Change-Id: I6c4d471b2840613d30ee95efe14547f2f9c0db6b --- ripple/fossil/src/bin/mount.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ripple') diff --git a/ripple/fossil/src/bin/mount.rs b/ripple/fossil/src/bin/mount.rs index c9c5955..e1752d5 100644 --- a/ripple/fossil/src/bin/mount.rs +++ b/ripple/fossil/src/bin/mount.rs @@ -398,8 +398,11 @@ impl fuser::Filesystem for Filesystem { }); let children = [ - (ino, fuser::FileType::Directory, "."), - (ino, fuser::FileType::Directory, ".."), + // XXX: The kernel doesn't actually *care* what inodes we provide, + // it just overwrites them with the appropriate ones. We *do* have + // to actually include these entries with a nonzero inode, however. + (!0, fuser::FileType::Directory, "."), + (!0, fuser::FileType::Directory, ".."), ] .into_iter() .chain(children); -- cgit 1.4.1