parent
2f65426467
commit
7d791d27a2
|
@ -149,11 +149,16 @@ func directmount(dir string, cfg *MountConfig) (*os.File, error) {
|
||||||
delete(opts, k)
|
delete(opts, k)
|
||||||
}
|
}
|
||||||
delete(opts, "fsname") // handled via fstype mount(2) parameter
|
delete(opts, "fsname") // handled via fstype mount(2) parameter
|
||||||
|
fstype := "fuse"
|
||||||
|
if subtype, ok := opts["subtype"]; ok {
|
||||||
|
fstype += "." + subtype
|
||||||
|
}
|
||||||
|
delete(opts, "subtype")
|
||||||
data += "," + mapToOptionsString(opts)
|
data += "," + mapToOptionsString(opts)
|
||||||
if err := unix.Mount(
|
if err := unix.Mount(
|
||||||
cfg.FSName, // source
|
cfg.FSName, // source
|
||||||
dir, // target
|
dir, // target
|
||||||
"fuse", // fstype
|
fstype, // fstype
|
||||||
mountflag, // mountflag
|
mountflag, // mountflag
|
||||||
data, // data
|
data, // data
|
||||||
); err != nil {
|
); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue