mirror of
https://github.com/containers/podman.git
synced 2025-12-11 01:11:30 +08:00
Update vendor on containers/storage to v1.12.10
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
10
vendor/github.com/containers/storage/store.go
generated
vendored
10
vendor/github.com/containers/storage/store.go
generated
vendored
@@ -3398,12 +3398,18 @@ func init() {
|
||||
ReloadConfigurationFile(defaultConfigFile, &defaultStoreOptions)
|
||||
}
|
||||
|
||||
// GetDefaultMountOptions returns the default mountoptions defined in container/storage
|
||||
func GetDefaultMountOptions() ([]string, error) {
|
||||
return GetMountOptions(defaultStoreOptions.GraphDriverName, defaultStoreOptions.GraphDriverOptions)
|
||||
}
|
||||
|
||||
// GetMountOptions returns the mountoptions for the specified driver and graphDriverOptions
|
||||
func GetMountOptions(driver string, graphDriverOptions []string) ([]string, error) {
|
||||
mountOpts := []string{
|
||||
".mountopt",
|
||||
fmt.Sprintf("%s.mountopt", defaultStoreOptions.GraphDriverName),
|
||||
fmt.Sprintf("%s.mountopt", driver),
|
||||
}
|
||||
for _, option := range defaultStoreOptions.GraphDriverOptions {
|
||||
for _, option := range graphDriverOptions {
|
||||
key, val, err := parsers.ParseKeyValueOpt(option)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user