* isn't mounted, and that there are no active dependents.
*/
int
- zfs_destroy(zfs_handle_t *zhp)
+ zfs_destroy(zfs_handle_t *zhp, boolean_t defer)
{
- zfs_cmd_t zc = { 0 };
+ zfs_cmd_t zc = { "\0", "\0", "\0", 0 };
(void) strlcpy(zc.zc_name, zhp->zfs_name, sizeof (zc.zc_name));
* Destroys all snapshots with the given name in zhp & descendants.
*/
int
- zfs_destroy_snaps(zfs_handle_t *zhp, char *snapname)
+ zfs_destroy_snaps(zfs_handle_t *zhp, char *snapname, boolean_t defer)
{
- zfs_cmd_t zc = { 0 };
+ zfs_cmd_t zc = { "\0", "\0", "\0", 0 };
int ret;
struct destroydata dd = { 0 };