mirror of
https://github.com/containers/podman.git
synced 2025-09-26 16:25:00 +08:00
Vendor in latest containers/storage
This allows us to modify the containers mount option on a per/container basis Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
4
vendor/github.com/containers/storage/pkg/idtools/parser.go
generated
vendored
4
vendor/github.com/containers/storage/pkg/idtools/parser.go
generated
vendored
@ -30,8 +30,8 @@ func parseTriple(spec []string) (container, host, size uint32, err error) {
|
||||
}
|
||||
|
||||
// ParseIDMap parses idmap triples from string.
|
||||
func ParseIDMap(idMapSpec, mapSetting string) (idmap []IDMap, err error) {
|
||||
if len(idMapSpec) > 0 {
|
||||
func ParseIDMap(mapSpec []string, mapSetting string) (idmap []IDMap, err error) {
|
||||
for _, idMapSpec := range mapSpec {
|
||||
idSpec := strings.Fields(strings.Map(nonDigitsToWhitespace, idMapSpec))
|
||||
if len(idSpec)%3 != 0 {
|
||||
return nil, fmt.Errorf("error initializing ID mappings: %s setting is malformed", mapSetting)
|
||||
|
Reference in New Issue
Block a user