summaryrefslogtreecommitdiff
path: root/mount.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-01-26 22:13:57 +0100
committerJakob Unterwurzacher2017-01-26 22:13:57 +0100
commitde200aad72f8718041f345b68c3c77332f995861 (patch)
treecdc93580fb1db163ec6eb5dacb5b27d0d540104d /mount.go
parent39eca53677abd0c397a884dd29ebc98ddfcbb270 (diff)
main: add "-fsname" option
As requested in https://github.com/rfjakob/gocryptfs/issues/73 .
Diffstat (limited to 'mount.go')
-rw-r--r--mount.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/mount.go b/mount.go
index 0d70201..cd14dd9 100644
--- a/mount.go
+++ b/mount.go
@@ -243,7 +243,11 @@ func initFuseFrontend(key []byte, args *argContainer, confFile *configfile.ConfF
}
// Set values shown in "df -T" and friends
// First column, "Filesystem"
- mOpts.Options = append(mOpts.Options, "fsname="+args.cipherdir)
+ fsname := args.cipherdir
+ if args.fsname != "" {
+ fsname = args.fsname
+ }
+ mOpts.Options = append(mOpts.Options, "fsname="+fsname)
// Second column, "Type", will be shown as "fuse." + Name
mOpts.Name = "gocryptfs"
if args.reverse {