summaryrefslogtreecommitdiff
path: root/internal/fusefrontend/root_node.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-07-12 15:02:53 +0200
committerJakob Unterwurzacher2020-07-12 15:02:53 +0200
commit0d385846dae33dcac8bd0be6837c0c3a6def8875 (patch)
treec94fa0bfed3383253466d6d5303a1d18d62024bd /internal/fusefrontend/root_node.go
parent230d92c4f461f96ff95c07c92010790102a51edd (diff)
v2api: call InitSerializer
If we don't, reads hang with -serialize_reads.
Diffstat (limited to 'internal/fusefrontend/root_node.go')
-rw-r--r--internal/fusefrontend/root_node.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/internal/fusefrontend/root_node.go b/internal/fusefrontend/root_node.go
index 7ceeb06..72d5581 100644
--- a/internal/fusefrontend/root_node.go
+++ b/internal/fusefrontend/root_node.go
@@ -13,6 +13,7 @@ import (
"github.com/rfjakob/gocryptfs/internal/contentenc"
"github.com/rfjakob/gocryptfs/internal/inomap"
"github.com/rfjakob/gocryptfs/internal/nametransform"
+ "github.com/rfjakob/gocryptfs/internal/serialize_reads"
"github.com/rfjakob/gocryptfs/internal/syscallcompat"
"github.com/rfjakob/gocryptfs/internal/tlog"
)
@@ -53,7 +54,12 @@ type RootNode struct {
}
func NewRootNode(args Args, c *contentenc.ContentEnc, n nametransform.NameTransformer) *RootNode {
- // TODO
+ if args.SerializeReads {
+ serialize_reads.InitSerializer()
+ }
+ if len(args.Exclude) > 0 {
+ tlog.Warn.Printf("Forward mode does not support -exclude")
+ }
return &RootNode{
args: args,
nameTransform: n,