Lines Matching refs:propput

2398 	pool_propput_undo_t *propput;  in pool_knl_put_property()  local
2426 if ((propput = malloc(sizeof (pool_propput_undo_t))) == NULL) { in pool_knl_put_property()
2430 (void) memset(propput, 0, sizeof (pool_propput_undo_t)); in pool_knl_put_property()
2431 propput->ppu_blist = bl; in pool_knl_put_property()
2435 if (nvlist_alloc(&propput->ppu_alist, NV_UNIQUE_NAME_TYPE, 0) != 0) { in pool_knl_put_property()
2436 nvlist_free(propput->ppu_blist); in pool_knl_put_property()
2437 free(propput); in pool_knl_put_property()
2441 if (nvlist_add_nvpair(propput->ppu_alist, ap) != 0) { in pool_knl_put_property()
2442 nvlist_free(propput->ppu_blist); in pool_knl_put_property()
2443 nvlist_free(propput->ppu_alist); in pool_knl_put_property()
2444 free(propput); in pool_knl_put_property()
2449 if (nvlist_pack(propput->ppu_alist, in pool_knl_put_property()
2450 (char **)&propput->ppu_ioctl.pp_o_buf, in pool_knl_put_property()
2451 &propput->ppu_ioctl.pp_o_bufsize, NV_ENCODE_NATIVE, 0) != 0) { in pool_knl_put_property()
2455 nvlist_free(propput->ppu_alist); in pool_knl_put_property()
2456 propput->ppu_ioctl.pp_o_id_type = pool_elem_class(pe); in pool_knl_put_property()
2459 propput->ppu_ioctl.pp_o_id_sub_type = in pool_knl_put_property()
2462 propput->ppu_ioctl.pp_o_id_sub_type = in pool_knl_put_property()
2465 propput->ppu_elem = pe; in pool_knl_put_property()
2466 if ((prop = provider_get_prop(propput->ppu_elem, name)) != NULL) { in pool_knl_put_property()
2468 propput->ppu_doioctl |= KERNEL_PROP_RDONLY; in pool_knl_put_property()
2471 if (log_append(prov->pkc_log, POOL_PROPPUT, (void *)propput) != in pool_knl_put_property()
2473 nvlist_free(propput->ppu_blist); in pool_knl_put_property()
2474 free(propput); in pool_knl_put_property()
2789 pool_propput_undo_t *propput; in log_item_commit() local
2946 propput = (pool_propput_undo_t *)li->li_details; in log_item_commit()
2948 if (pool_elem_class(propput->ppu_elem) != PEC_SYSTEM) { in log_item_commit()
2949 propput->ppu_ioctl.pp_o_id = in log_item_commit()
2950 elem_get_sysid(propput->ppu_elem); in log_item_commit()
2958 if ((propput->ppu_doioctl & KERNEL_PROP_RDONLY) == 0) { in log_item_commit()
2960 &propput->ppu_ioctl) < 0) { in log_item_commit()
3009 pool_propput_undo_t *propput; in log_item_undo() local
3098 propput = (pool_propput_undo_t *)li->li_details; in log_item_undo()
3100 if ((propput->ppu_doioctl & KERNEL_PROP_RDONLY) == 0) { in log_item_undo()
3101 if (propput->ppu_blist != NULL) { in log_item_undo()
3103 ((pool_knl_elem_t *)propput->ppu_elem)-> in log_item_undo()
3104 pke_properties, propput->ppu_blist, 0) in log_item_undo()
3110 if (nvlist_unpack(propput->ppu_ioctl.pp_o_buf, in log_item_undo()
3111 propput->ppu_ioctl.pp_o_bufsize, in log_item_undo()
3112 &propput->ppu_alist, 0) != 0) { in log_item_undo()
3116 pair = nvlist_next_nvpair(propput->ppu_alist, in log_item_undo()
3119 propput->ppu_elem)->pke_properties, in log_item_undo()
3121 nvlist_free(propput->ppu_alist); in log_item_undo()
3302 propput = (pool_propput_undo_t *)li->li_details; in log_item_undo()
3304 if ((propput->ppu_doioctl & KERNEL_PROP_RDONLY) == 0) { in log_item_undo()
3305 if (propput->ppu_blist) { in log_item_undo()
3306 (void) memcpy(&u_propput, &propput->ppu_ioctl, in log_item_undo()
3309 elem_get_sysid(propput->ppu_elem); in log_item_undo()
3311 if (nvlist_pack(propput->ppu_blist, in log_item_undo()
3326 if (nvlist_unpack(propput-> in log_item_undo()
3328 propput->ppu_ioctl.pp_o_bufsize, in log_item_undo()
3329 &propput->ppu_alist, 0) != 0) { in log_item_undo()
3334 propput->ppu_ioctl.pp_o_id_type; in log_item_undo()
3336 propput->ppu_ioctl.pp_o_id_sub_type; in log_item_undo()
3338 elem_get_sysid(propput->ppu_elem); in log_item_undo()
3339 pair = nvlist_next_nvpair(propput->ppu_alist, in log_item_undo()
3345 if (provider_get_prop(propput->ppu_elem, in log_item_undo()
3349 nvlist_free(propput->ppu_alist); in log_item_undo()
3354 nvlist_free(propput->ppu_alist); in log_item_undo()
3414 pool_propput_undo_t *propput; in log_item_release() local
3461 propput = (pool_propput_undo_t *)li->li_details; in log_item_release()
3463 if (propput->ppu_blist) in log_item_release()
3464 nvlist_free(propput->ppu_blist); in log_item_release()
3465 free(propput->ppu_ioctl.pp_o_buf); in log_item_release()
3466 free(propput); in log_item_release()