2018-02-05 16:05:59 -05:00
|
|
|
package store // import "github.com/docker/docker/volume/store"
|
2015-09-09 22:23:06 -04:00
|
|
|
|
|
|
|
import "strings"
|
|
|
|
|
2017-08-22 18:25:31 -04:00
|
|
|
// normalizeVolumeName is a platform specific function to normalize the name
|
2015-09-09 22:23:06 -04:00
|
|
|
// of a volume. On Windows, as NTFS is case insensitive, under
|
|
|
|
// c:\ProgramData\Docker\Volumes\, the folders John and john would be synonymous.
|
2015-12-13 11:00:39 -05:00
|
|
|
// Hence we can't allow the volume "John" and "john" to be created as separate
|
2015-09-09 22:23:06 -04:00
|
|
|
// volumes.
|
2017-08-22 18:25:31 -04:00
|
|
|
func normalizeVolumeName(name string) string {
|
2015-09-09 22:23:06 -04:00
|
|
|
return strings.ToLower(name)
|
|
|
|
}
|