btrfs: test btrfs snapshots with driver suite
We now include btrfs in the snapshot driver test suite. This includes the addition of parent links and name hashing into the btrfs driver. We'll probably endup replacing this with a common metadata store, as these relationships are generally identical between implementations. A small bug was discovered in the delete implementation in the course testing, so the btrfs package has been updated with a fix. The overlay driver was modified accordingly with the btrfs driver to use `Driver` as the exported type of each driver packge. Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
127882fca7
commit
aeffd4f92c
7 changed files with 276 additions and 71 deletions
4
vendor/github.com/stevvooe/go-btrfs/btrfs.go
generated
vendored
4
vendor/github.com/stevvooe/go-btrfs/btrfs.go
generated
vendored
|
@ -328,11 +328,11 @@ func SubvolDelete(path string) error {
|
|||
}
|
||||
|
||||
if err := isFileInfoSubvol(fi); err != nil {
|
||||
return err
|
||||
return nil
|
||||
}
|
||||
|
||||
if err := SubvolDelete(p); err != nil {
|
||||
return err
|
||||
return errors.Wrapf(err, "recursive delete of %v failed", p)
|
||||
}
|
||||
|
||||
return filepath.SkipDir // children get walked by call above.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue