Lines Matching refs:attrs
60 static int add_inuse(char *name, nvlist_t *attrs);
63 static int get_attrs(descriptor_t *dp, int fd, nvlist_t *attrs);
110 nvlist_t *attrs = NULL;
119 if (nvlist_alloc(&attrs, NVATTRS, 0) != 0) {
128 if ((*errp = get_attrs(dp, fd, attrs)) != 0) {
129 nvlist_free(attrs);
130 attrs = NULL;
137 return (attrs);
308 add_inuse(char *name, nvlist_t *attrs)
314 if (detectors[i](name, attrs, &error) || error != 0) {
387 get_attrs(descriptor_t *dp, int fd, nvlist_t *attrs)
416 if (nvlist_add_boolean(attrs, DM_EFI) != 0) {
446 if (nvlist_add_uint32(attrs, DM_INDEX, snum) != 0) {
454 if (nvlist_add_uint64(attrs, DM_START,
459 if (nvlist_add_uint64(attrs, DM_SIZE, vtoc.v_part[snum].p_size)
464 if (nvlist_add_uint32(attrs, DM_TAG, vtoc.v_part[snum].p_tag)
469 if (nvlist_add_uint32(attrs, DM_FLAG, vtoc.v_part[snum].p_flag)
475 if (nvlist_add_uint64(attrs, DM_START,
481 if (nvlist_add_uint64(attrs, DM_SIZE,
487 if (nvlist_add_uint32(attrs, DM_TAG,
492 if (nvlist_add_uint32(attrs, DM_FLAG,
502 if (nvlist_add_string(attrs, DM_EFI_NAME, label) != 0) {
508 if (nvlist_add_uint8_array(attrs, DM_EFI_UGUID,
519 if (inuse_mnt(dp->name, attrs, &error)) {
527 * Some extra attrs for cluster slices.
558 if (nvlist_add_string(attrs, DM_LOCALNAME,
564 if (inuse_mnt(localpath, attrs,
577 if (nvlist_add_uint64(attrs, DM_DEVT, buf.st_rdev) != 0) {
607 if (nvlist_add_string(attrs,