From 199a74bc1ae49cdda486095b8daa8034510943a6 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 17 May 2023 15:35:01 +0200 Subject: [PATCH] mount: set FsName via go-fuse go-fuse now handles setting FsName, including DirectMount, so use that instead of our own solution. Regression-tested in TestDirectMount. --- mount.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mount.go b/mount.go index 4d72778..5cd90a7 100644 --- a/mount.go +++ b/mount.go @@ -427,7 +427,7 @@ func initGoFuse(rootNode fs.InodeEmbedder, args *argContainer) *fuse.Server { tlog.Warn.Printf("Warning: %q will be displayed as %q in \"df -T\"", fsname, fsname2) fsname = fsname2 } - mOpts.Options = append(mOpts.Options, "fsname="+fsname) + mOpts.FsName = fsname // Second column, "Type", will be shown as "fuse." + Name mOpts.Name = "gocryptfs" if args.reverse {