From 171218ed607e8677b675b0090de7e3fd9632ef89 Mon Sep 17 00:00:00 2001 From: baul Date: Wed, 1 Nov 2017 18:17:45 +0800 Subject: [PATCH] add fuse mount subtype to mountconfig --- mount_config.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mount_config.go b/mount_config.go index 6828ed3..b56ad03 100644 --- a/mount_config.go +++ b/mount_config.go @@ -142,6 +142,8 @@ type MountConfig struct { // For expert use only! May invalidate other guarantees made in the // documentation for this package. Options map[string]string + + SubType string } // Create a map containing all of the key=value mount options to be given to @@ -173,6 +175,11 @@ func (c *MountConfig) toMap() (opts map[string]string) { opts["fsname"] = fsname } + subtype := c.SubType + if subtype != "" { + opts["subtype"] = subtype + } + // Read only? if c.ReadOnly { opts["ro"] = ""