From 8f94083a2114c3aef4bc0320065e0374c420ea4a Mon Sep 17 00:00:00 2001 From: Jose M Perez Date: Thu, 12 Aug 2021 22:48:34 +0200 Subject: Flag -zerodiriv to create all diriv as all zero byte files --- cli_args.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cli_args.go') diff --git a/cli_args.go b/cli_args.go index 058f932..76e8d30 100644 --- a/cli_args.go +++ b/cli_args.go @@ -30,7 +30,7 @@ type argContainer struct { plaintextnames, quiet, nosyslog, wpanic, longnames, allow_other, reverse, aessiv, nonempty, raw64, noprealloc, speed, hkdf, serialize_reads, forcedecode, hh, info, - sharedstorage, devrandom, fsck, one_file_system bool + sharedstorage, devrandom, fsck, one_file_system, zerodiriv bool // Mount options with opposites dev, nodev, suid, nosuid, exec, noexec, rw, ro, kernel_cache, acl bool masterkey, mountpoint, cipherdir, cpuprofile, @@ -179,6 +179,7 @@ func parseCliOpts(osArgs []string) (args argContainer) { flagSet.BoolVar(&args.devrandom, "devrandom", false, "Use /dev/random for generating master key") flagSet.BoolVar(&args.fsck, "fsck", false, "Run a filesystem check on CIPHERDIR") flagSet.BoolVar(&args.one_file_system, "one-file-system", false, "Don't cross filesystem boundaries") + flagSet.BoolVar(&args.zerodiriv, "zerodiriv", false, "Create diriv as all-zero files") // Mount options with opposites flagSet.BoolVar(&args.dev, "dev", false, "Allow device files") -- cgit v1.2.3