WIP fix racy holds

fixes #280
This commit is contained in:
Christian Schwarz
2020-02-19 22:51:07 +01:00
parent 3ff1966cab
commit 457cbd136b
5 changed files with 73 additions and 23 deletions
+1
View File
@@ -59,6 +59,7 @@ success:
return nil
}
// If the snapshot does not exist, the returned error is of type *DatasetDoesNotExist
func ZFSHolds(ctx context.Context, fs, snap string) ([]string, error) {
if err := validateZFSFilesystem(fs); err != nil {
return nil, errors.Wrap(err, "`fs` is not a valid filesystem path")