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 --- internal/fusefrontend/args.go | 2 ++ internal/fusefrontend/fs.go | 3 +++ 2 files changed, 5 insertions(+) (limited to 'internal/fusefrontend') diff --git a/internal/fusefrontend/args.go b/internal/fusefrontend/args.go index 8a64e99..5fb72cd 100644 --- a/internal/fusefrontend/args.go +++ b/internal/fusefrontend/args.go @@ -30,4 +30,6 @@ type Args struct { SerializeReads bool // Force decode even if integrity check fails (openSSL only) ForceDecode bool + // Exclude is a list of paths to make inaccessible + Exclude []string } diff --git a/internal/fusefrontend/fs.go b/internal/fusefrontend/fs.go index 23f5513..45b5b40 100644 --- a/internal/fusefrontend/fs.go +++ b/internal/fusefrontend/fs.go @@ -56,6 +56,9 @@ func NewFS(args Args, c *contentenc.ContentEnc, n *nametransform.NameTransform) if args.SerializeReads { serialize_reads.InitSerializer() } + if len(args.Exclude) > 0 { + tlog.Warn.Printf("Forward mode does not support -exclude") + } return &FS{ FileSystem: pathfs.NewLoopbackFileSystem(args.Cipherdir), args: args, -- cgit v1.2.3