forked from TrueCloudLab/rclone
cmount: make --volname work for Windows - fixes #2679
This commit is contained in:
parent
16f797a7d7
commit
b3704597f3
1 changed files with 3 additions and 1 deletions
|
@ -53,7 +53,6 @@ func mountOptions(device string, mountpoint string) (options []string) {
|
||||||
|
|
||||||
// OSX options
|
// OSX options
|
||||||
if runtime.GOOS == "darwin" {
|
if runtime.GOOS == "darwin" {
|
||||||
options = append(options, "-o", "volname="+mountlib.VolumeName)
|
|
||||||
if mountlib.NoAppleDouble {
|
if mountlib.NoAppleDouble {
|
||||||
options = append(options, "-o", "noappledouble")
|
options = append(options, "-o", "noappledouble")
|
||||||
}
|
}
|
||||||
|
@ -70,6 +69,9 @@ func mountOptions(device string, mountpoint string) (options []string) {
|
||||||
options = append(options, "--FileSystemName=rclone")
|
options = append(options, "--FileSystemName=rclone")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if mountlib.VolumeName != "" {
|
||||||
|
options = append(options, "-o", "volname="+mountlib.VolumeName)
|
||||||
|
}
|
||||||
if mountlib.AllowNonEmpty {
|
if mountlib.AllowNonEmpty {
|
||||||
options = append(options, "-o", "nonempty")
|
options = append(options, "-o", "nonempty")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue