Commit 88e3bc5f authored by Aaron Jacobs's avatar Aaron Jacobs Committed by GitHub

Merge pull request #34 from inevity/mountsubtype

add fuse mount subtype to mountconfig
parents 1ab97fb2 eba79bc9
...@@ -142,6 +142,11 @@ type MountConfig struct { ...@@ -142,6 +142,11 @@ type MountConfig struct {
// For expert use only! May invalidate other guarantees made in the // For expert use only! May invalidate other guarantees made in the
// documentation for this package. // documentation for this package.
Options map[string]string 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.<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
...@@ -173,6 +178,11 @@ func (c *MountConfig) toMap() (opts map[string]string) { ...@@ -173,6 +178,11 @@ func (c *MountConfig) toMap() (opts map[string]string) {
opts["fsname"] = fsname opts["fsname"] = fsname
} }
subtype := c.Subtype
if subtype != "" {
opts["subtype"] = subtype
}
// Read only? // Read only?
if c.ReadOnly { if c.ReadOnly {
opts["ro"] = "" opts["ro"] = ""
......
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