Skip to content

Commit 679b527

Browse files
committed
add fuse mount subtype to mountconfig
1 parent fe7f3a5 commit 679b527

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

mount_config.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ type MountConfig struct {
134134
// The name of the mounted volume, as displayed in the Finder. If empty, a
135135
// default name involving the string 'osxfuse' is used.
136136
VolumeName string
137+
SubType string
137138

138139
// Additional key=value options to pass unadulterated to the underlying mount
139140
// command. See `man 8 mount`, the fuse documentation, etc. for
@@ -173,6 +174,10 @@ func (c *MountConfig) toMap() (opts map[string]string) {
173174
opts["fsname"] = fsname
174175
}
175176

177+
subtype := c.SubType
178+
if subtype != "" {
179+
opts["subtype"] = subtype
180+
}
176181
// Read only?
177182
if c.ReadOnly {
178183
opts["ro"] = ""

0 commit comments

Comments
 (0)