summaryrefslogtreecommitdiff
path: root/cli_args.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 /cli_args.go
parent39eca53677abd0c397a884dd29ebc98ddfcbb270 (diff)
main: add "-fsname" option
As requested in https://github.com/rfjakob/gocryptfs/issues/73 .
Diffstat (limited to 'cli_args.go')
-rw-r--r--cli_args.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli_args.go b/cli_args.go
index 4d16570..89cbdd9 100644
--- a/cli_args.go
+++ b/cli_args.go
@@ -20,7 +20,7 @@ type argContainer struct {
longnames, allow_other, ro, reverse, aessiv, nonempty, raw64,
noprealloc bool
masterkey, mountpoint, cipherdir, cpuprofile, extpass,
- memprofile, ko, passfile, ctlsock string
+ memprofile, ko, passfile, ctlsock, fsname string
// Configuration file name override
config string
notifypid, scryptn int
@@ -118,6 +118,7 @@ func parseCliOpts() (args argContainer) {
flagSet.StringVar(&args.passfile, "passfile", "", "Read password from file")
flagSet.StringVar(&args.ko, "ko", "", "Pass additional options directly to the kernel, comma-separated list")
flagSet.StringVar(&args.ctlsock, "ctlsock", "", "Create control socket at specified path")
+ flagSet.StringVar(&args.fsname, "fsname", "", "Override the filesystem name")
flagSet.IntVar(&args.notifypid, "notifypid", 0, "Send USR1 to the specified process after "+
"successful mount - used internally for daemonization")
flagSet.IntVar(&args.scryptn, "scryptn", configfile.ScryptDefaultLogN, "scrypt cost parameter logN. "+