/illumos-gate/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_diskmgt.c | 45 static void remove_slice_from_list(dmgt_slice_t **slices, int index); 139 dp->slices = in get_disk() 261 dm_descriptor_t *slices; in get_disk_slices() local 265 slices = dm_get_associated_descriptors(media, DM_SLICE, error); in get_disk_slices() 274 slices != NULL && slices[j] != 0; j++) { in get_disk_slices() 278 get_slice(slices[j], blocksize, error); in get_disk_slices() 301 dm_free_descriptors(slices); in get_disk_slices() 319 remove_slice_from_list(dmgt_slice_t **slices, int index) in remove_slice_from_list() argument 322 for (i = index; slices[i] != NULL; i++) { in remove_slice_from_list() 323 slices[i] = slices[i + 1]; in remove_slice_from_list() [all …]
|
H A D | libzfs_jni_disk.c | 52 jobjectArray slices = create_SliceDeviceBean_array(env, in create_DiskDeviceBean() local 53 dp->slices); in create_DiskDeviceBean() 54 if (slices != NULL) { in create_DiskDeviceBean() 69 constructor, dp->size, nameUTF, aliases, slices, in create_DiskDeviceBean() 156 create_SliceDeviceBean_array(JNIEnv *env, dmgt_slice_t **slices) in create_SliceDeviceBean_array() argument 163 if (slices != NULL) { in create_SliceDeviceBean_array() 165 for (i = 0; slices[i] != NULL; i++) { in create_SliceDeviceBean_array() 166 dmgt_slice_t *slice = slices[i]; in create_SliceDeviceBean_array()
|
H A D | libzfs_jni_diskmgt.h | 59 dmgt_slice_t **slices; member
|
/illumos-gate/usr/src/cmd/format/ |
H A D | checkdev.c | 266 dm_descriptor_t *slices = NULL; in checkdevinuse() local 324 dm_get_slices(cur_disk_path, &slices, &error); in checkdevinuse() 336 if (slices == NULL) in checkdevinuse() 339 for (i = 0; slices[i] != 0; i++) { in checkdevinuse() 346 name = dm_get_name(slices[i], &error); in checkdevinuse() 375 dm_free_descriptors(slices); in checkdevinuse() 400 attrs = dm_get_attributes(slices[i], &error); in checkdevinuse() 420 name = dm_get_name(slices[i], &error); in checkdevinuse() 452 dm_free_descriptors(slices); in checkdevinuse() 482 name = dm_get_name(slices[i], &error); in checkdevinuse() [all …]
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | entry.c | 499 dm_get_slices(char *drive, dm_descriptor_t **slices, int *errp) in dm_get_slices() argument 505 *slices = NULL; in dm_get_slices() 527 *slices = dm_get_associated_descriptors(*media, in dm_get_slices() 570 dm_descriptor_t *slices = NULL; in dm_isoverlapping() local 593 slices = dm_get_associated_descriptors(*media, DM_SLICE, errp); in dm_isoverlapping() 594 if (slices == NULL || *slices == 0 || *errp != 0) in dm_isoverlapping() 623 for (i = 0; slices[i]; i ++) { in dm_isoverlapping() 629 nvlist_t *other_attrs = dm_get_attributes(slices[i], errp); in dm_isoverlapping() 683 char *str = dm_get_name(slices[i], errp); in dm_isoverlapping() 701 char *str = dm_get_name(slices[i], errp); in dm_isoverlapping() [all …]
|
H A D | slice.c | 527 descriptor_t **slices; in get_fixed_assocs() local 551 slices = (descriptor_t **)calloc(cnt + 1, sizeof (descriptor_t *)); in get_fixed_assocs() 552 if (slices == NULL) { in get_fixed_assocs() 594 slices[pos] = cache_get_desc(DM_SLICE, desc->p.disk, devpath, in get_fixed_assocs() 597 cache_free_descriptors(slices); in get_fixed_assocs() 605 slices[pos] = NULL; in get_fixed_assocs() 612 return (slices); in get_fixed_assocs()
|
H A D | libdiskmgt.h | 452 void dm_get_slices(char *drive, dm_descriptor_t **slices,
|
/illumos-gate/usr/src/cmd/availdevs/ |
H A D | availdevs.c | 89 if (dp->slices != NULL) { in add_disk_to_xml() 90 for (i = 0; dp->slices[i] != NULL; i++) { in add_disk_to_xml() 91 dmgt_slice_t *sp = dp->slices[i]; in add_disk_to_xml()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/ |
H A D | zpool_import.cfg | 42 # We need to repartition the single disk to two slices. 50 # We need to repartition the single disk to two slices.
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/clean_mirror/ |
H A D | default.cfg | 38 # We need to repartition the single disk to two slices
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/scrub_mirror/ |
H A D | default.cfg | 39 # We need to repartition the single disk to two slices
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/grow_replicas/ |
H A D | grow_replicas.cfg | 54 # Do not make SIZE too large as the three slices may exceed
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/grow_pool/ |
H A D | grow_pool.cfg | 53 # Do not make SIZE too large as the three slices may exceed
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/migration/ |
H A D | migration.cfg | 39 # We need to repartition the single disk to two slices.
|
/illumos-gate/usr/src/uts/sun4u/serengeti/sys/ |
H A D | sbdp_priv.h | 124 int *slices; variable
|
/illumos-gate/usr/src/tools/scripts/ |
H A D | git-pbchk.py | 142 def slices(strlist, sep): function 164 for (a, b) in slices(p, ':SEP:\n')]
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vds.c | 479 vd_slice_t slices[VD_MAXPART]; /* logical partitions */ member 807 if (blk >= vd->slices[slice].nblocks) { in vd_dskimg_io_params() 810 blk, vd->slices[slice].nblocks); in vd_dskimg_io_params() 814 offset = (vd->slices[slice].start + blk) * DEV_BSIZE; in vd_dskimg_io_params() 815 maxlen = (vd->slices[slice].nblocks - blk) * DEV_BSIZE; in vd_dskimg_io_params() 1175 *blkp = vd->slices[vd->efi_reserved].start; in vd_dskimg_get_devid_block() 3180 bzero(vd->slices, sizeof (vd_slice_t) * VD_MAXPART); in vd_dskimg_validate_efi() 3193 vd->slices[i].start = gpe[i].efi_gpe_StartingLBA; in vd_dskimg_validate_efi() 3194 vd->slices[i].nblocks = gpe[i].efi_gpe_EndingLBA - in vd_dskimg_validate_efi() 3204 vd->slices[VD_EFI_WD_SLICE].start = 0; in vd_dskimg_validate_efi() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/include/ |
H A D | libtest.shlib | 808 # disk slices from 0 to the total slice number with the same specified
|
/illumos-gate/usr/src/grub/grub-0.97/ |
H A D | ChangeLog | 7865 Support the NetBSD and OpenBSD partition slices.
|