| 5719 | } |
| 5720 | |
| 5721 | static int |
| 5722 | user_release_one(const char *snapname, const char *holdname) |
| 5723 | { |
| 5724 | nvlist_t *snaps, *holds; |
| 5725 | int error; |
| 5726 | |
| 5727 | snaps = fnvlist_alloc(); |
| 5728 | holds = fnvlist_alloc(); |
| 5729 | fnvlist_add_boolean(holds, holdname); |
| 5730 | fnvlist_add_nvlist(snaps, snapname, holds); |
| 5731 | fnvlist_free(holds); |
| 5732 | error = dsl_dataset_user_release(snaps, NULL); |
| 5733 | fnvlist_free(snaps); |
| 5734 | return (error); |
| 5735 | } |
| 5736 | |
| 5737 | /* |
| 5738 | * Test snapshot hold/release and deferred destroy. |
no test coverage detected