v2api: call InitSerializer

If we don't, reads hang with -serialize_reads.
libgocryptfs
Jakob Unterwurzacher 2 years ago
parent 230d92c4f4
commit 0d385846da
  1. 8
      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,

Loading…
Cancel
Save