From 85d6a8c10ec9469c80382fb0b9e9bb0d2ec7c520 Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Tue, 17 Nov 2015 10:34:53 +0000 Subject: Show the source dir in the first field on /etc/mtab. Fixes #15. Thanks @tyll! --- src/bindfs.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/bindfs.c') 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()) { -- cgit v1.2.3