From a40e9a8622b0d79ba0c18361104c47375ebb89a1 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 17 May 2023 16:47:22 +0200 Subject: mount: set DirectMount: true Attempt to directly call mount(2) before trying fusermount. This means we can do without fusermount if running as root. https://github.com/rfjakob/gocryptfs/issues/697 --- mount.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mount.go') diff --git a/mount.go b/mount.go index a229245..d856e49 100644 --- a/mount.go +++ b/mount.go @@ -396,6 +396,9 @@ func initGoFuse(rootNode fs.InodeEmbedder, args *argContainer) *fuse.Server { // Setting SyncRead disables FUSE_CAP_ASYNC_READ. This makes the kernel // do everything in-order without parallelism. SyncRead: args.serialize_reads, + // Attempt to directly call mount(2) before trying fusermount. This means we + // can do without fusermount if running as root. + DirectMount: true, } mOpts := &fuseOpts.MountOptions -- cgit v1.2.3