aboutsummaryrefslogtreecommitdiffstats
path: root/src/bindfs.c
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2012-04-05 12:56:05 +0300
committerMartin Pärtel <martin.partel@gmail.com>2012-04-05 12:56:05 +0300
commit2ee96eccd49c8f7f722b6dc21b60147a6c4997ec (patch)
tree935773238e6a137bfa694bf23e664f9d9f41c8a1 /src/bindfs.c
parentcfb79b08a1e0b72b8d905b24b565485eef13bd3e (diff)
downloadbindfs-2ee96eccd49c8f7f722b6dc21b60147a6c4997ec.tar.gz
Made -ouse_ino and -oreaddir_ino the default to mirror inodes.
Diffstat (limited to 'src/bindfs.c')
-rw-r--r--src/bindfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bindfs.c b/src/bindfs.c
index 35b1b48..3bda72f 100644
--- a/src/bindfs.c
+++ b/src/bindfs.c
@@ -1501,6 +1501,10 @@ int main(int argc, char *argv[])
/* We want the kernel to do our access checks for us based on what getattr gives it. */
fuse_opt_add_arg(&args, "-odefault_permissions");
+ /* We want to mirror inodes. */
+ fuse_opt_add_arg(&args, "-ouse_ino");
+ fuse_opt_add_arg(&args, "-oreaddir_ino");
+
/* We need to disable the attribute cache whenever two users
can see different attributes. For now, only mirroring can do that. */
if (is_mirroring_enabled()) {