Make ReadOnly() available on all platforms
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
@@ -38,15 +38,6 @@ var (
|
||||
ErrNotImplementOnWindows = errors.New("not implemented under windows")
|
||||
)
|
||||
|
||||
func (m *Mount) ReadOnly() bool {
|
||||
for _, option := range m.Options {
|
||||
if option == "ro" {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Mount to the provided target.
|
||||
func (m *Mount) mount(target string) (retErr error) {
|
||||
if m.Type != "windows-layer" {
|
||||
|
||||
Reference in New Issue
Block a user