mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
4f0d95fa6e
Signed-off-by: Daniel Nephin <dnephin@docker.com>
12 lines
475 B
Go
12 lines
475 B
Go
package store // import "github.com/docker/docker/volume/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)
|
|
}
|