Lines Matching refs:gtnd
3187 redact_snaps_match(zfs_handle_t *zhp, guid_to_name_data_t *gtnd) in redact_snaps_match() argument
3199 if (bmark_num_snaps != gtnd->num_redact_snaps) in redact_snaps_match()
3205 if (bmark_snaps[i] == gtnd->redact_snap_guids[j]) in redact_snaps_match()
3217 guid_to_name_data_t *gtnd = arg; in guid_to_name_cb() local
3221 if (gtnd->skip != NULL && in guid_to_name_cb()
3223 strcmp(slash + 1, gtnd->skip) == 0) { in guid_to_name_cb()
3228 if (zfs_prop_get_int(zhp, ZFS_PROP_GUID) == gtnd->guid && in guid_to_name_cb()
3229 (gtnd->num_redact_snaps == -1 || redact_snaps_match(zhp, gtnd))) { in guid_to_name_cb()
3230 (void) strcpy(gtnd->name, zhp->zfs_name); in guid_to_name_cb()
3235 err = zfs_iter_children_v2(zhp, 0, guid_to_name_cb, gtnd); in guid_to_name_cb()
3236 if (err != EEXIST && gtnd->bookmark_ok) in guid_to_name_cb()
3237 err = zfs_iter_bookmarks_v2(zhp, 0, guid_to_name_cb, gtnd); in guid_to_name_cb()
3263 guid_to_name_data_t gtnd; in guid_to_name_redact_snaps() local
3265 gtnd.guid = guid; in guid_to_name_redact_snaps()
3266 gtnd.bookmark_ok = bookmark_ok; in guid_to_name_redact_snaps()
3267 gtnd.name = name; in guid_to_name_redact_snaps()
3268 gtnd.skip = NULL; in guid_to_name_redact_snaps()
3269 gtnd.redact_snap_guids = redact_snap_guids; in guid_to_name_redact_snaps()
3270 gtnd.num_redact_snaps = num_redact_snaps; in guid_to_name_redact_snaps()
3289 int err = guid_to_name_cb(zfs_handle_dup(zhp), >nd); in guid_to_name_redact_snaps()
3292 >nd); in guid_to_name_redact_snaps()
3295 >nd); in guid_to_name_redact_snaps()
3305 gtnd.skip = strrchr(pname, '/') + 1; in guid_to_name_redact_snaps()