Without the patch the following assertion was triggered upon
removal of the second snapshot:
dss: dss.c:229: pre_remove_hook: Assertion `!snapshot_currently_being_removed' failed.
Thanks to Sebastian Stark who pointed out the issue.
snapshot_removal_status = HS_READY;
return -E_BAD_EXIT_CODE;
}
- snapshot_removal_status = HS_SUCCESS;
+ if (conf.post_remove_hook_given)
+ snapshot_removal_status = HS_SUCCESS;
+ else
+ snapshot_removal_status = HS_READY;
return 1;
}