summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2023-05-17 15:35:01 +0200
committerJakob Unterwurzacher2023-05-17 15:38:35 +0200
commit199a74bc1ae49cdda486095b8daa8034510943a6 (patch)
treee76c9a6ee9f50a85b567a0af0a01a53ad268af4d
parentd7a3d7b97d0879853afa38cacf56e9582ad2a59d (diff)
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.
-rw-r--r--mount.go2
1 files changed, 1 insertions, 1 deletions
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 {