forked from Ivasoft/objectivefs-docker-volume
This commit is contained in:
4
main.go
4
main.go
@@ -353,7 +353,7 @@ func (d *ofsDriver) Mount(r *volume.MountRequest) (*volume.MountResponse, error)
|
||||
log.WithFields(log.Fields{"name": v.Volume.Name, "snapshot": v.BackupSnapshot}).Info("Failed to create a new backup snapshot")
|
||||
return &volume.MountResponse{}, err
|
||||
} else {
|
||||
v.BackupSnapshot = strings.SplitAfter(snapshotIdWithSuffix, " ")[0]
|
||||
v.BackupSnapshot = strings.Split(snapshotIdWithSuffix, " ")[0]
|
||||
fs = v.BackupSnapshot
|
||||
}
|
||||
}
|
||||
@@ -846,7 +846,7 @@ func setIntersect[TKey comparable, TValue any, TValue2 any](a map[TKey]TValue, b
|
||||
}
|
||||
|
||||
func addMountOption(mountOpts map[string]string, keyVal string) {
|
||||
keyValA := strings.SplitAfterN(keyVal, "=", 2)
|
||||
keyValA := strings.SplitN(keyVal, "=", 2)
|
||||
key := keyValA[0]
|
||||
var val string
|
||||
if len(keyValA) <= 1 {
|
||||
|
||||
Reference in New Issue
Block a user