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 /internal/fusefrontend | |
| parent | eaa5aecd422bc4f6b01b6257383521ad512e08f7 (diff) | |
reverse mode: add --exclude option
https://github.com/rfjakob/gocryptfs/issues/235
Diffstat (limited to 'internal/fusefrontend')
| -rw-r--r-- | internal/fusefrontend/args.go | 2 | ||||
| -rw-r--r-- | internal/fusefrontend/fs.go | 3 | 
2 files changed, 5 insertions, 0 deletions
| 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, | 
