aboutsummaryrefslogtreecommitdiffstats
path: root/src/bindfs.c
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2015-11-17 10:34:53 +0000
committerMartin Pärtel <martin.partel@gmail.com>2015-11-17 10:34:53 +0000
commit85d6a8c10ec9469c80382fb0b9e9bb0d2ec7c520 (patch)
treee3fc2ef99a0beb79a650ea437bbfa4c30e8bcef5 /src/bindfs.c
parent6b56b050c0e4240389e52f47502acd43d50874c0 (diff)
downloadbindfs-85d6a8c10ec9469c80382fb0b9e9bb0d2ec7c520.tar.gz
Show the source dir in the first field on /etc/mtab.
Fixes #15. Thanks @tyll!
Diffstat (limited to 'src/bindfs.c')
-rw-r--r--src/bindfs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bindfs.c b/src/bindfs.c
index 0aa0a51..a40d578 100644
--- a/src/bindfs.c
+++ b/src/bindfs.c
@@ -1993,6 +1993,13 @@ int main(int argc, char *argv[])
fuse_opt_add_arg(&args, "-ouse_ino");
fuse_opt_add_arg(&args, "-oreaddir_ino");
+ /* Show the source dir in the first field on /etc/mtab. */
+ {
+ char *tmp = sprintf_new("-ofsname=%s", settings.mntsrc);
+ fuse_opt_add_arg(&args, tmp);
+ free(tmp);
+ }
+
/* 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()) {