aboutsummaryrefslogtreecommitdiff
path: root/mount.go
diff options
context:
space:
mode:
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 {