diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2015-11-17 10:34:53 +0000 |
---|---|---|
committer | Martin Pärtel <martin.partel@gmail.com> | 2015-11-17 10:34:53 +0000 |
commit | 85d6a8c10ec9469c80382fb0b9e9bb0d2ec7c520 (patch) | |
tree | e3fc2ef99a0beb79a650ea437bbfa4c30e8bcef5 /src/bindfs.c | |
parent | 6b56b050c0e4240389e52f47502acd43d50874c0 (diff) | |
download | bindfs-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.c | 7 |
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()) { |