Add 'consistent', 'cached', and 'delegated' mode flags
This adds 'consistency' mode flags to the mount command line argument. Initially, the valid 'consistency' flags are 'consistent', 'cached', 'delegated', and 'default'. Signed-off-by: David Sheets <dsheets@docker.com> Signed-off-by: Jeremy Yallop <yallop@docker.com>
This commit is contained in:
parent
7fa9161585
commit
ce42bb22a3
@ -95,6 +95,8 @@ func (m *MountOpt) Set(value string) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("invalid value for %s: %s", key, value)
|
return fmt.Errorf("invalid value for %s: %s", key, value)
|
||||||
}
|
}
|
||||||
|
case "consistency":
|
||||||
|
mount.Consistency = mounttypes.Consistency(strings.ToLower(value))
|
||||||
case "bind-propagation":
|
case "bind-propagation":
|
||||||
bindOptions().Propagation = mounttypes.Propagation(strings.ToLower(value))
|
bindOptions().Propagation = mounttypes.Propagation(strings.ToLower(value))
|
||||||
case "volume-nocopy":
|
case "volume-nocopy":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user