Replace all usage of CopyOnWriteFs with OverlayFs

Fixes #9761
This commit is contained in:
Bjørn Erik Pedersen
2022-04-08 15:15:26 +02:00
parent 3117e58595
commit 30c2e54c25
13 changed files with 307 additions and 264 deletions

View File

@@ -38,11 +38,11 @@ func (fs noOpFs) Create(name string) (afero.File, error) {
}
func (fs noOpFs) Mkdir(name string, perm os.FileMode) error {
return errNoOp
return nil
}
func (fs noOpFs) MkdirAll(path string, perm os.FileMode) error {
return errNoOp
return nil
}
func (fs noOpFs) Open(name string) (afero.File, error) {
@@ -54,11 +54,11 @@ func (fs noOpFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File,
}
func (fs noOpFs) Remove(name string) error {
return errNoOp
return nil
}
func (fs noOpFs) RemoveAll(path string) error {
return errNoOp
return nil
}
func (fs noOpFs) Rename(oldname string, newname string) error {