From ce42bb22a3efa64f1264016b98dab035d863eb56 Mon Sep 17 00:00:00 2001 From: David Sheets Date: Tue, 7 Feb 2017 12:17:21 +0000 Subject: [PATCH] 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 Signed-off-by: Jeremy Yallop --- opts/mount.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opts/mount.go b/opts/mount.go index ce6383ddca..97895a7844 100644 --- a/opts/mount.go +++ b/opts/mount.go @@ -95,6 +95,8 @@ func (m *MountOpt) Set(value string) error { if err != nil { return fmt.Errorf("invalid value for %s: %s", key, value) } + case "consistency": + mount.Consistency = mounttypes.Consistency(strings.ToLower(value)) case "bind-propagation": bindOptions().Propagation = mounttypes.Propagation(strings.ToLower(value)) case "volume-nocopy":