Commit eba79bc9 authored by baul's avatar baul

add mount subtype documentation

parent 171218ed
...@@ -143,7 +143,10 @@ type MountConfig struct { ...@@ -143,7 +143,10 @@ type MountConfig struct {
// documentation for this package. // documentation for this package.
Options map[string]string Options map[string]string
SubType string // Sets the filesystem type (third field in /etc/mtab). /etc/mtab and
// /proc/mounts will show the filesystem type as fuse.<Subtype>.
// 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 // Create a map containing all of the key=value mount options to be given to
...@@ -175,7 +178,7 @@ func (c *MountConfig) toMap() (opts map[string]string) { ...@@ -175,7 +178,7 @@ func (c *MountConfig) toMap() (opts map[string]string) {
opts["fsname"] = fsname opts["fsname"] = fsname
} }
subtype := c.SubType subtype := c.Subtype
if subtype != "" { if subtype != "" {
opts["subtype"] = subtype opts["subtype"] = subtype
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment