Home
last modified time | relevance | path

Searched refs:slice (Results 1 – 25 of 73) sorted by relevance

123

/illumos-gate/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_diskmgt.c277 dmgt_slice_t *slice = in get_disk_slices() local
293 sap[nslices] = slice; in get_disk_slices()
387 if (slice == NULL) { in get_disk_usable_slices()
418 dmgt_free_slice(slice); in get_disk_usable_slices()
634 slice->name, (unsigned long long)slice->size); in slice_too_small()
658 slice->name, slice->used_name, slice->used_by, msg); in slice_in_use()
752 if (slice != NULL) { in dmgt_free_slice()
753 free(slice->name); in dmgt_free_slice()
754 free(slice->used_name); in dmgt_free_slice()
755 free(slice->used_by); in dmgt_free_slice()
[all …]
H A Dlibzfs_jni_disk.c137 jobject slice = NULL; in create_SliceDeviceBean() local
151 slice = (*env)->NewObject(env, class_SliceDeviceBean, in create_SliceDeviceBean()
154 return (slice); in create_SliceDeviceBean()
168 dmgt_slice_t *slice = slices[i]; in create_SliceDeviceBean_array() local
170 obj = create_SliceDeviceBean(env, slice); in create_SliceDeviceBean_array()
/illumos-gate/usr/src/cmd/devinfo/
H A Ddevinfo.c131 int slice; in partinfo() local
148 vtdata.v_part[slice].p_start, in partinfo()
149 vtdata.v_part[slice].p_size, in partinfo()
150 vtdata.v_part[slice].p_flag, in partinfo()
151 vtdata.v_part[slice].p_tag); in partinfo()
152 } else if ((slice == VT_ENOTSUP) && in partinfo()
153 (slice = efi_alloc_and_read(fd, &efi)) >= 0) { in partinfo()
156 efi->efi_parts[slice].p_start, in partinfo()
157 efi->efi_parts[slice].p_size, in partinfo()
158 efi->efi_parts[slice].p_flag, in partinfo()
[all …]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dinuse_vxvm.c68 char *slice; member
89 if (slice == NULL) { in inuse_vxvm()
97 if (is_ctds(slice)) { in inuse_vxvm()
98 if ((sp = strrchr(slice, '/')) == NULL) in inuse_vxvm()
99 sp = slice; in inuse_vxvm()
125 if (strcmp(slice, listp->slice) == 0) { in inuse_vxvm()
156 if ((sp->slice = strdup(devname)) == NULL) { in add_use_record()
168 if (is_ctds(sp->slice)) { in add_use_record()
171 if ((dp = strrchr(sp->slice, '/')) == NULL) in add_use_record()
172 dp = sp->slice; in add_use_record()
[all …]
H A Dinuse_zpool.c68 inuse_zpool_common(char *slice, nvlist_t *attrs, int *errp, char *type) in inuse_zpool_common() argument
77 if (slice == NULL) { in inuse_zpool_common()
95 if ((fd = open(slice, O_RDONLY)) > 0) { in inuse_zpool_common()
130 inuse_active_zpool(char *slice, nvlist_t *attrs, int *errp) in inuse_active_zpool() argument
132 return (inuse_zpool_common(slice, attrs, errp, DM_USE_ACTIVE_ZPOOL)); in inuse_active_zpool()
136 inuse_exported_zpool(char *slice, nvlist_t *attrs, int *errp) in inuse_exported_zpool() argument
138 return (inuse_zpool_common(slice, attrs, errp, DM_USE_EXPORTED_ZPOOL)); in inuse_exported_zpool()
H A Dinuse_lu.c57 char *slice; member
76 inuse_lu(char *slice, nvlist_t *attrs, int *errp) in inuse_lu() argument
83 if (slice == NULL) { in inuse_lu()
108 if (strcmp(slice, listp->slice) == 0) { in inuse_lu()
133 if ((sp->slice = strdup(devname)) == NULL) { in add_use_record()
139 free(sp->slice); in add_use_record()
160 free((void *)listp->slice); in free_lu()
H A Dinuse_fs.c69 static int has_fs(char *prog, char *slice);
79 inuse_fs(char *slice, nvlist_t *attrs, int *errp) in inuse_fs() argument
88 if (slice == NULL) { in inuse_fs()
107 if (has_fs(hp->prog, slice)) { in inuse_fs()
135 if (strcmp(slice, listp->special) == 0) { in inuse_fs()
153 has_fs(char *prog, char *slice) in has_fs() argument
166 (void) execl(prog, "fstyp", slice, NULL); in has_fs()
H A Dinuse_dump.c56 inuse_dump(char *slice, nvlist_t *attrs, int *errp) in inuse_dump() argument
63 if (slice == NULL) { in inuse_dump()
85 if (strcmp(slice, device) == 0) { in inuse_dump()
H A Ddisks_private.h261 int inuse_mnt(char *slice, nvlist_t *attrs, int *errp);
262 int inuse_lu(char *slice, nvlist_t *attrs, int *errp);
263 int inuse_active_zpool(char *slice, nvlist_t *attrs, int *errp);
264 int inuse_exported_zpool(char *slice, nvlist_t *attrs, int *errp);
265 int inuse_dump(char *slice, nvlist_t *attrs, int *errp);
266 int inuse_vxvm(char *slice, nvlist_t *attrs, int *errp);
267 int inuse_fs(char *slice, nvlist_t *attrs, int *errp);
/illumos-gate/usr/src/test/zfs-tests/tests/functional/inuse/
H A Dinuse_008_pos.ksh83 eval typeset slice=\${FS_SIDE$num}
84 disk=${slice%s*}
85 slice=${slice##*s}
86 log_must set_partition $slice "" $FS_SIZE $disk
H A Dinuse_005_pos.ksh83 eval typeset slice=\${FS_SIDE$num}
84 disk=${slice%s*}
85 slice=${slice##*s}
86 log_must set_partition $slice "" $FS_SIZE $disk
H A Dinuse_006_pos.ksh86 eval typeset slice=\${FS_SIDE$num}
87 disk=${slice%s*}
88 slice=${slice##*s}
89 log_must set_partition $slice "" $FS_SIZE $disk
H A Dinuse_009_pos.ksh82 eval typeset slice=\${FS_SIDE$num}
83 disk=${slice%s*}
84 slice=${slice##*s}
85 log_must set_partition $slice "" $FS_SIZE $disk
H A Dinuse_007_pos.ksh90 eval typeset slice=\${FS_SIDE$num}
91 disk=${slice%s*}
92 slice=${slice##*s}
93 log_must set_partition $slice "" $FS_SIZE $disk
H A Dinuse_003_pos.ksh99 eval typeset slice=\${FS_SIDE$num}
100 disk=${slice%s*}
101 slice=${slice##*s}
102 log_must set_partition $slice "" $FS_SIZE $disk
/illumos-gate/usr/src/cmd/stmsboot/
H A Dstmsboot_util.c677 char *slice = NULL; in report_map() local
692 if (slice != NULL) { in report_map()
733 (slice == NULL) ? "null" : slice); in report_map()
783 ((slicelen > 0) && slice != NULL) ? slice : ""); in report_map()
793 ((slicelen > 0) && slice != NULL) ? slice : ""); in report_map()
817 ((slicelen > 0) && slice != NULL) ? slice : ""); in report_map()
1401 if ((slice != NULL) && (strlen(slice) <= 3)) { in vhci_to_phci()
1410 if ((slice != NULL) && (strlen(slice) <= 3)) { in vhci_to_phci()
1452 char *slice = NULL; in update_vfstab() local
1488 slice = NULL; in update_vfstab()
[all …]
/illumos-gate/usr/src/cmd/hal/hald/solaris/
H A Ddevinfo_storage.c53 char *slice; member
758 free (m->slice); in devinfo_storage_free_minor()
784 m->slice = strdup (slice); in devinfo_storage_new_minor()
814 char *slice; in devinfo_storage_minors() local
863 if ((strlen (slice) > 1) && (slice[0] == 'p') && isdigit(slice[1]) && in devinfo_storage_minors()
987 char *slice = m->slice; in devinfo_volume_add() local
1052 const char *slice; in devinfo_volume_preprobing_done() local
1067 (slice == NULL) || (strlen (slice) < 2)) { in devinfo_volume_preprobing_done()
1090 if ((slice[0] == 's') && (isdigit(slice[1])) && ((strcmp (slice, whole_disk)) != 0) && in devinfo_volume_preprobing_done()
1389 } else if ((slice != NULL) && (slice > disk)) { in devinfo_volume_get_slice_name()
[all …]
/illumos-gate/usr/src/boot/common/
H A Ddisk.c234 int rc, slice, partition; in disk_open() local
261 slice = dev->d_slice; in disk_open()
294 } else if (slice >= 0) { in disk_open()
296 if (slice == 0) in disk_open()
304 slice = part.index; in disk_open()
374 dev->d_slice = slice; in disk_open()
421 int unit, slice, partition; in disk_parsedev() local
434 slice = D_SLICEWILD; in disk_parsedev()
437 slice = D_SLICENONE; in disk_parsedev()
448 slice = strtol(np, &cp, 10); in disk_parsedev()
[all …]
/illumos-gate/usr/src/uts/sun4u/daktari/os/
H A Ddaktari.c271 uint64_t *slice = slice_table[bd][cpu][bank]; in plat_discover_slice() local
272 uint64_t base = btop(slice[SLICE_PA]); in plat_discover_slice()
273 uint64_t len = btop(slice[SLICE_SPAN]); in plat_discover_slice()
434 int slice; in plat_build_mem_nodes() local
442 for (slice = 0; slice < DAK_MAX_SLICE; slice++) { in plat_build_mem_nodes()
443 if (slice_to_memnode[slice] == -1) in plat_build_mem_nodes()
445 basepfn = (uint64_t)slice << PFN_SLICE_SHIFT; in plat_build_mem_nodes()
/illumos-gate/usr/src/uts/sun4u/cherrystone/os/
H A Dcherrystone.c280 uint64_t *slice = slice_table[bd][cpu][bank]; in plat_discover_slice() local
281 uint64_t base = btop(slice[SLICE_PA]); in plat_discover_slice()
282 uint64_t len = btop(slice[SLICE_SPAN]); in plat_discover_slice()
442 int slice; in plat_build_mem_nodes() local
450 for (slice = 0; slice < CHERRYSTONE_MAX_SLICE; slice++) { in plat_build_mem_nodes()
451 if (slice_to_memnode[slice] == -1) in plat_build_mem_nodes()
453 basepfn = (uint64_t)slice << PFN_SLICE_SHIFT; in plat_build_mem_nodes()
/illumos-gate/usr/src/cmd/hal/utils/
H A Dfsutils.c57 char *part, *slice, *disk; in get_slice_name() local
66 slice = strrchr(devlink, 's'); in get_slice_name()
69 if ((part != NULL) && (part > slice) && (part > disk)) { in get_slice_name()
71 } else if ((slice != NULL) && (slice > disk)) { in get_slice_name()
72 s = slice; in get_slice_name()
/illumos-gate/usr/src/cmd/availdevs/
H A Davaildevs.c92 xmlNodePtr slice = xmlNewChild( in add_disk_to_xml() local
94 (void) xmlSetProp(slice, in add_disk_to_xml()
97 set_uint64_prop(slice, ATTR_SLICE_SIZE, sp->size); in add_disk_to_xml()
98 set_uint64_prop(slice, ATTR_SLICE_START, sp->start); in add_disk_to_xml()
101 (void) xmlSetProp(slice, in add_disk_to_xml()
107 (void) xmlSetProp(slice, in add_disk_to_xml()
/illumos-gate/usr/src/lib/libzutil/common/
H A Dzutil_import.c1173 rdsk_node_t *slice; in zpool_find_import_impl() local
1238 slice->rn_avl = &slice_cache; in zpool_find_import_impl()
1239 slice->rn_dfd = dfd; in zpool_find_import_impl()
1240 slice->rn_hdl = hdl; in zpool_find_import_impl()
1241 slice->rn_nozpool = B_FALSE; in zpool_find_import_impl()
1242 avl_add(&slice_cache, slice); in zpool_find_import_impl()
1255 for (slice = avl_first(&slice_cache); slice; in zpool_find_import_impl()
1256 (slice = avl_walk(&slice_cache, slice, in zpool_find_import_impl()
1291 path, slice->rn_order, in zpool_find_import_impl()
1296 free(slice->rn_name); in zpool_find_import_impl()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/grow_replicas/
H A Dgrow_replicas_001_pos.ksh68 for slice in 0 1 3 4 ; do
69 log_must set_partition $slice "$cyl" $SIZE $DISK
70 cyl=$(get_endslice $DISK $slice)
/illumos-gate/usr/src/cmd/powertop/common/
H A Dsuggestions.c92 new->slice = 0; in pt_sugg_add()
119 new->slice = 0; in pt_sugg_add()
224 if (n->slice++ < PT_SUGG_DEF_SLICE) { in pt_sugg_pick()
262 n->slice = 0; in pt_sugg_pick()

123