diff --git a/mount_config.go b/mount_config.go index 6828ed3..fda42b5 100644 --- a/mount_config.go +++ b/mount_config.go @@ -142,6 +142,11 @@ type MountConfig struct { // For expert use only! May invalidate other guarantees made in the // documentation for this package. Options map[string]string + + // Sets the filesystem type (third field in /etc/mtab). /etc/mtab and + // /proc/mounts will show the filesystem type as fuse.. + // If not set, /proc/mounts will show the filesystem type as fuse/fuseblk. + Subtype string } // Create a map containing all of the key=value mount options to be given to @@ -173,6 +178,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"] = ""