/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_dump.c | 30 * Checks for a match with the the dump slice. 53 * Check the dump device against the input slice. 56 inuse_dump(char *slice, nvlist_t *attrs, int *errp) argument 63 if (slice == NULL) { 69 * slice so we cache the open file descriptor. The ioctl 70 * is cheap so we can do that for every slice. 85 if (strcmp(slice, device) == 0) {
|
H A D | inuse_zpool.c | 68 inuse_zpool_common(char *slice, nvlist_t *attrs, int *errp, char *type) argument 77 if (slice == NULL) { 95 if ((fd = open(slice, O_RDONLY)) > 0) { 130 inuse_active_zpool(char *slice, nvlist_t *attrs, int *errp) argument 132 return (inuse_zpool_common(slice, attrs, errp, DM_USE_ACTIVE_ZPOOL)); 136 inuse_exported_zpool(char *slice, nvlist_t *attrs, int *errp) argument 138 return (inuse_zpool_common(slice, attrs, errp, DM_USE_EXPORTED_ZPOOL));
|
H A D | inuse_lu.c | 57 char *slice; member in struct:lu_list 76 inuse_lu(char *slice, nvlist_t *attrs, int *errp) argument 83 if (slice == NULL) { 89 * every slice, but we can't just cache it since there is no event 108 if (strcmp(slice, listp->slice) == 0) { 133 if ((sp->slice = strdup(devname)) == NULL) { 139 free(sp->slice); 160 free((void *)listp->slice);
|
H A D | inuse_fs.c | 69 static int has_fs(char *prog, char *slice); 76 * Use the heuristics to check for a filesystem on the slice. 79 inuse_fs(char *slice, nvlist_t *attrs, int *errp) argument 88 if (slice == NULL) { 107 if (has_fs(hp->prog, slice)) { 135 if (strcmp(slice, listp->special) == 0) { 153 has_fs(char *prog, char *slice) argument 166 (void) execl(prog, "fstyp", slice, NULL);
|
H A D | inuse_mnt.c | 75 inuse_mnt(char *slice, nvlist_t *attrs, int *errp) argument 81 if (slice == NULL) { 107 if (libdiskmgt_str_eq(slice, listp->special)) {
|
H A D | inuse_vxvm.c | 68 char *slice; member in struct:vxvm_list 82 inuse_vxvm(char *slice, nvlist_t *attrs, int *errp) argument 89 if (slice == NULL) { 95 * slice passed in. Strip the slice component from the devname. 97 if (is_ctds(slice)) { 98 if ((sp = strrchr(slice, '/')) == NULL) 99 sp = slice; 125 if (strcmp(slice, listp->slice) [all...] |
H A D | inuse_svm.c | 55 char *slice; member in struct:svm_list 116 inuse_svm(char *slice, nvlist_t *attrs, int *errp) argument 122 if (slice == NULL) { 190 if (strcmp(slice, listp->slice) == 0) { 218 if (svm_listp != NULL && strcmp(svm_listp->slice, devname) == 0 && 228 if ((sp->slice = strdup(devname)) == NULL) { 234 free(sp->slice); 240 free(sp->slice); 425 * SVM uses "drive names" (ctd name without trailing slice) fo 460 char slice[MAXPATHLEN]; local [all...] |
/illumos-gate/usr/src/boot/sys/boot/i386/common/ |
H A D | drv.h | 36 unsigned int slice; member in struct:dsk
|
/illumos-gate/usr/src/boot/sys/boot/uboot/lib/ |
H A D | libuboot.h | 38 int slice; member in struct:uboot_devdesc::__anon367::__anon368
|
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/ |
H A D | libi386.h | 45 int slice; member in struct:i386_devdesc::__anon281::__anon282
|
/illumos-gate/usr/src/cmd/emul64ioctl/ |
H A D | emul64ioctl.c | 75 char *slice; local 120 slice = argv[optind]; 125 if (get_disk_addr(slice, &tr, &admin) != 0)
|
/illumos-gate/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_disk.c | 98 (void) fprintf(stderr, "Unknown slice usage: %s\n", 137 jobject slice = NULL; local 151 slice = (*env)->NewObject(env, class_SliceDeviceBean, 154 return (slice); 168 dmgt_slice_t *slice = slices[i]; local 170 obj = create_SliceDeviceBean(env, slice);
|
H A D | libzfs_jni_diskmgt.c | 52 static void get_slice_use(dm_descriptor_t slice, char *name, 55 dm_descriptor_t slice, uint32_t blocksize, int *error); 57 static int slice_in_use(dmgt_slice_t *slice, int *error); 58 static int slice_too_small(dmgt_slice_t *slice); 272 /* For each slice... */ 276 /* Get slice */ 277 dmgt_slice_t *slice = local 293 sap[nslices] = slice; 380 dmgt_slice_t *slice = slices[i]; local 387 if (slice 488 get_slice_use(dm_descriptor_t slice, char *name, char **used_name, char **used_by, int *error) argument 541 get_slice(dm_descriptor_t slice, uint32_t blocksize, int *error) argument 628 slice_too_small(dmgt_slice_t *slice) argument 643 slice_in_use(dmgt_slice_t *slice, int *error) argument 750 dmgt_free_slice(dmgt_slice_t *slice) argument [all...] |
/illumos-gate/usr/src/cmd/devinfo/ |
H A D | devinfo.c | 131 int slice; local 144 if ((slice = readvtoc(fd, device, &vtdata)) >= 0) { 148 vtdata.v_part[slice].p_start, 149 vtdata.v_part[slice].p_size, 150 vtdata.v_part[slice].p_flag, 151 vtdata.v_part[slice].p_tag); 152 } else if ((slice == VT_ENOTSUP) && 153 (slice = efi_alloc_and_read(fd, &efi)) >= 0) { 156 efi->efi_parts[slice].p_start, 157 efi->efi_parts[slice] [all...] |
/illumos-gate/usr/src/cmd/availdevs/ |
H A D | availdevs.c | 92 xmlNodePtr slice = xmlNewChild( local 94 (void) xmlSetProp(slice, 97 set_uint64_prop(slice, ATTR_SLICE_SIZE, sp->size); 98 set_uint64_prop(slice, ATTR_SLICE_START, sp->start); 101 (void) xmlSetProp(slice, 107 (void) xmlSetProp(slice,
|
/illumos-gate/usr/src/lib/libdscfg/common/ |
H A D | cfg_local.c | 69 int slice; local 93 slice = read_vtoc(fd, &vtoc); 94 if (slice < 0) { 100 if (vtoc.v_part[slice].p_start < CFG_VTOC_SIZE) 103 return (vtoc.v_part[slice].p_size);
|
/illumos-gate/usr/src/lib/libgrubmgmt/common/ |
H A D | libgrub_fs.c | 58 slice_match(const char *physpath, int slice) argument 62 /* always match whole disk slice */ 63 if (slice == SLCNUM_WHOLE_DISK) 66 return ((pos = strrchr(physpath, slice)) == NULL || 209 * Retrieves first <disk_physpath> that matches both partition and slice. 210 * If any partition and slice is acceptable, first <disk_physpath> is returned. 368 * check only specified partition, slice 408 * for bootsign, if bootsign is found on ufs slice GRUB sets it as a root, 409 * if on zfs, then GRUB uses zfs slice as root only if bootsign wasn't found 413 * find ufs slice wit [all...] |
/illumos-gate/usr/src/cmd/hal/utils/ |
H A D | fsutils.c | 57 char *part, *slice, *disk; local 66 slice = strrchr(devlink, 's'); 69 if ((part != NULL) && (part > slice) && (part > disk)) { 71 } else if ((slice != NULL) && (slice > disk)) { 72 s = slice;
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_fwlog.c | 58 uint8_t slice = 0; local 110 slice = (PMCS_REGISTER_DUMP_FLASH_SIZE / PMCS_FLASH_CHUNK_SIZE); 115 for (uint8_t j = 0; j < slice; j++) { 146 for (uint8_t j = 0; j < slice; j++) { 177 for (uint8_t j = 0; j < slice; j++) { 197 for (uint8_t j = 0; j < slice; j++) {
|
/illumos-gate/usr/src/cmd/boot/installgrub/ |
H A D | installgrub.h | 44 int slice; member in struct:_device_data
|
/illumos-gate/usr/src/boot/sys/boot/common/ |
H A D | disk.c | 208 /* Open slice with BSD or VTOC label */ 282 int rc, slice, partition; local 296 slice = dev->d_slice; 305 DEBUG("%s unit %d, slice %d, partition %d => %p (cached)", 321 DEBUG("%s unit %d, slice %d, partition %d => %p", 340 } else if (slice >= 0) { 342 if (slice == 0) 345 rc = ptable_getpart(od->table, &part, slice); 349 slice = part.index; 362 * If d_partition < 0 and we are looking at a BSD/VTOC slice, 487 int unit, slice, partition; local [all...] |
/illumos-gate/usr/src/boot/sys/boot/uboot/common/ |
H A D | main.c | 176 * Parse a device string into type, unit, slice and partition numbers. A 182 * The returned values for slice and partition are interpreted by 190 * <type_name><unit>:<slice> DEV_TYP_STOR 191 * <type_name><unit>:<slice>. DEV_TYP_STOR 192 * <type_name><unit>:<slice>.<partition> DEV_TYP_STOR 199 get_load_device(int *type, int *unit, int *slice, int *partition) argument 207 *slice = 0; 252 /* No slice and partition specification. */ 256 /* Only DEV_TYP_STOR devices can have a slice specification. */ 263 *slice 310 char slice[32]; local [all...] |
/illumos-gate/usr/src/cmd/powertop/common/ |
H A D | powertop.h | 148 int slice; member in struct:suggestion
|
/illumos-gate/usr/src/cmd/lvm/metassist/layout/ |
H A D | layout_stripe.c | 449 * If the othervols list is not empty, the slice components 453 * If sufficient slice components can be found, the stripe 508 * slice selected as a stripe component will be oversized 531 * 3rd B_TRUE: add an extra cylinder to the resulting slice, this is 564 /* add the component slice to the used list */ 570 /* no possible slice */ 612 * slice components. 616 * for each requested slice. 618 * The net size of the stripe is determined by the slice 649 /* slice component 931 devconfig_t *slice = (devconfig_t *)(iter->obj); local [all...] |
H A D | layout.c | 454 * Convert slice and disk names to preferred names. 496 * PURPOSE: Utility function to convert any slice or disk drive 767 /* move moddisk's slice list to disk set comp list */ 828 * creates a devconfig_t component for each slice 834 * used to get to the slice. 859 /* slice on disk that we don't care about */ 865 /* create output slice struct for the removed slice */ 905 * devconfig_t component for each slice in the list 910 * used to get to the slice 924 devconfig_t *slice = mods->slice_devcfg; local [all...] |