Lines Matching defs:zhp
61 * zhp (input) - ZFS handle pointer
70 ndmp_has_backup(zfs_handle_t *zhp, void *data)
75 name = zfs_get_name(zhp);
78 zfs_close(zhp);
83 zfs_close(zhp);
104 zfs_handle_t *zhp;
109 if ((zhp = zfs_open(zlibh, volname, ZFS_TYPE_DATASET)) == 0) {
119 (void) zfs_iter_snapshots(zhp, B_FALSE, ndmp_has_backup, &snp);
120 zfs_close(zhp);
192 zfs_handle_t *zhp;
195 if ((zhp = zfs_open(zlibh, volname, ZFS_TYPE_DATASET)) == 0) {
203 zfs_close(zhp);
208 if (zfs_hold(zhp, p, jname, recursive, cleanup_fd) != 0) {
210 zfs_close(zhp);
213 zfs_close(zhp);
221 zfs_handle_t *zhp;
225 if ((zhp = zfs_open(zlibh, volname, ZFS_TYPE_DATASET)) == 0) {
231 if (zfs_release(zhp, p, jname, recursive) != 0) {
239 zfs_close(zhp);
292 zfs_handle_t *zhp;
323 if ((zhp = zfs_open(zlibh, namep, ztype)) == NULL) {
331 err = zfs_destroy_snaps(zhp, jname, B_TRUE);
333 err = zfs_destroy(zhp, B_TRUE);
348 zfs_close(zhp);