mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix read-write check for volumes.
Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
parent
c7d4a4b2b4
commit
82a54001fd
2 changed files with 6 additions and 1 deletions
|
|
@ -50,3 +50,8 @@ var roModes = map[string]bool{
|
|||
func ValidateMountMode(mode string) (bool, bool) {
|
||||
return roModes[mode] || rwModes[mode], rwModes[mode]
|
||||
}
|
||||
|
||||
// ReadOnly tells you if a mode string is a valid read-only mode or not.
|
||||
func ReadWrite(mode string) bool {
|
||||
return rwModes[mode]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue