Skip to content

Commit

Permalink
add mount subtype documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
inevity committed Nov 2, 2017
1 parent 171218e commit eba79bc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mount_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ type MountConfig struct {
// documentation for this package.
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
Expand Down Expand Up @@ -175,7 +178,7 @@ func (c *MountConfig) toMap() (opts map[string]string) {
opts["fsname"] = fsname
}

subtype := c.SubType
subtype := c.Subtype
if subtype != "" {
opts["subtype"] = subtype
}
Expand Down

0 comments on commit eba79bc

Please sign in to comment.