backup: convert reject funcs to use FS interface
Depending on parameters the paths in a snapshot do not directly correspond to real paths on the filesystem. Therefore, reject funcs must use the FS interface to work correctly.
This commit is contained in:
parent
c6fae0320e
commit
f9dbcd2531
10 changed files with 98 additions and 88 deletions
|
@ -10,6 +10,7 @@ type FS interface {
|
|||
OpenFile(name string, flag int, perm os.FileMode) (File, error)
|
||||
Stat(name string) (os.FileInfo, error)
|
||||
Lstat(name string) (os.FileInfo, error)
|
||||
DeviceID(fi os.FileInfo) (deviceID uint64, err error)
|
||||
|
||||
Join(elem ...string) string
|
||||
Separator() string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue