reg/vendor/github.com/docker/docker-ce/components/engine/volume/store/store_windows.go
Jess Frazelle 8e5eba8735
switch to dep
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2017-12-11 14:50:55 -05:00

13 lines
425 B
Go

package store
import "strings"
// normalizeVolumeName is a platform specific function to normalize the name
// of a volume. On Windows, as NTFS is case insensitive, under
// c:\ProgramData\Docker\Volumes\, the folders John and john would be synonymous.
// Hence we can't allow the volume "John" and "john" to be created as separate
// volumes.
func normalizeVolumeName(name string) string {
return strings.ToLower(name)
}