add fuse mount subtype to mountconfig
parent
1ab97fb2eb
commit
171218ed60
|
@ -142,6 +142,8 @@ 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
|
||||||
|
|
||||||
|
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 +175,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"] = ""
|
||||||
|
|
Loading…
Reference in New Issue