Skip to content

Commit

Permalink
add fuse mount subtype to mountconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
inevity committed Nov 1, 2017
1 parent 1ab97fb commit 171218e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mount_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"] = ""
Expand Down

0 comments on commit 171218e

Please sign in to comment.