diff options
author | Jakob Unterwurzacher | 2017-01-26 22:13:57 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-01-26 22:13:57 +0100 |
commit | de200aad72f8718041f345b68c3c77332f995861 (patch) | |
tree | cdc93580fb1db163ec6eb5dacb5b27d0d540104d /mount.go | |
parent | 39eca53677abd0c397a884dd29ebc98ddfcbb270 (diff) |
main: add "-fsname" option
As requested in https://github.com/rfjakob/gocryptfs/issues/73 .
Diffstat (limited to 'mount.go')
-rw-r--r-- | mount.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 { |