From 0d385846dae33dcac8bd0be6837c0c3a6def8875 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 12 Jul 2020 15:02:53 +0200 Subject: v2api: call InitSerializer If we don't, reads hang with -serialize_reads. --- internal/fusefrontend/root_node.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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, -- cgit v1.2.3