diff options
author | Jakob Unterwurzacher | 2018-08-11 23:26:49 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2018-08-11 23:26:49 +0200 |
commit | ec2fdc19cf9358ae7ba09c528a5807b6b0760f9b (patch) | |
tree | 1a9a26d9f70ac26f3df2c44a6e5ed6ff9108ab76 /cli_args.go | |
parent | eaa5aecd422bc4f6b01b6257383521ad512e08f7 (diff) |
reverse mode: add --exclude option
https://github.com/rfjakob/gocryptfs/issues/235
Diffstat (limited to 'cli_args.go')
-rw-r--r-- | cli_args.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli_args.go b/cli_args.go index 1314ed7..ecbfa3a 100644 --- a/cli_args.go +++ b/cli_args.go @@ -27,6 +27,8 @@ type argContainer struct { dev, nodev, suid, nosuid, exec, noexec, rw, ro bool masterkey, mountpoint, cipherdir, cpuprofile, extpass, memprofile, ko, passfile, ctlsock, fsname, force_owner, trace string + // For reverse mode, --exclude is available. It can be specified multiple times. + exclude multipleStrings // Configuration file name override config string notifypid, scryptn int @@ -173,6 +175,9 @@ func parseCliOpts() (args argContainer) { flagSet.StringVar(&args.fsname, "fsname", "", "Override the filesystem name") flagSet.StringVar(&args.force_owner, "force_owner", "", "uid:gid pair to coerce ownership") flagSet.StringVar(&args.trace, "trace", "", "Write execution trace to file") + + flagSet.Var(&args.exclude, "exclude", "Exclude relative path from reverse view") + 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. Possible values: 10-28. "+ |