From ec2fdc19cf9358ae7ba09c528a5807b6b0760f9b Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 11 Aug 2018 23:26:49 +0200 Subject: reverse mode: add --exclude option https://github.com/rfjakob/gocryptfs/issues/235 --- cli_args.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cli_args.go') 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. "+ -- cgit v1.2.3