Searched defs:slice (Results 1 - 25 of 28) sorted by relevance

12

/osnet-11/usr/src/lib/libdiskmgt/common/
H A Dinuse_dump.c30 * 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 Dinuse_zpool.c68 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 Dinuse_lu.c53 char *slice; member in struct:lu_list
72 inuse_lu(char *slice, nvlist_t *attrs, int *errp) argument
79 if (slice == NULL) {
85 * every slice, but we can't just cache it since there is no event
104 if (strcmp(slice, listp->slice) == 0) {
129 if ((sp->slice = strdup(devname)) == NULL) {
135 free(sp->slice);
156 free((void *)listp->slice);
H A Dinuse_fs.c69 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 Dinuse_mnt.c75 inuse_mnt(char *slice, nvlist_t *attrs, int *errp) argument
81 if (slice == NULL) {
107 if (libdiskmgt_str_eq(slice, listp->special)) {
H A Dinuse_vxvm.c68 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 Dinuse_svm.c55 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...]
H A Dentry.c652 * Convenience function to get slice stats
655 dm_get_slice_stats(char *slice, nvlist_t **dev_stats, int *errp) argument
662 if (slice == NULL) {
670 devp = dm_get_descriptor_by_name(DM_SLICE, slice, errp);
679 * Checks for overlapping slices. If the given device is a slice, and it
680 * overlaps with any non-backup slice on the disk, return true with a detailed
686 dm_descriptor_t slice = NULL; local
699 slice = dm_get_descriptor_by_name(DM_SLICE, slicename, errp);
700 if (slice == NULL)
707 media = dm_get_associated_descriptors(slice, DM_MEDI
1298 char slice[MAXPATHLEN]; local
[all...]
/osnet-11/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_disk.c98 (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 Dlibzfs_jni_diskmgt.c50 static void get_slice_use(dm_descriptor_t slice, char *name,
53 dm_descriptor_t slice, uint32_t blocksize, int *error);
55 static int slice_in_use(dmgt_slice_t *slice, int *error);
56 static int slice_too_small(dmgt_slice_t *slice);
269 /* For each slice... */
273 /* Get slice */
274 dmgt_slice_t *slice = local
290 sap[nslices] = slice;
376 dmgt_slice_t *slice = slices[i]; local
383 if (slice
484 get_slice_use(dm_descriptor_t slice, char *name, char **used_name, char **used_by, int *error) argument
537 get_slice(dm_descriptor_t slice, uint32_t blocksize, int *error) argument
624 slice_too_small(dmgt_slice_t *slice) argument
639 slice_in_use(dmgt_slice_t *slice, int *error) argument
746 dmgt_free_slice(dmgt_slice_t *slice) argument
[all...]
/osnet-11/usr/src/lib/libdscfg/common/
H A Dcfg_local.c69 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);
H A Dcfg.c3491 int slice; local
3505 if ((slice = read_vtoc(fd, &vtoc)) < 0)
3508 if (vtoc.v_part[slice].p_start < CFG_VTOC_SIZE)
3526 if ((slice = read_vtoc(rfd, &vtoc)) < 0) {
3531 if (vtoc.v_part[slice].p_start < CFG_VTOC_SIZE)
/osnet-11/usr/src/cmd/hal/utils/
H A Dfsutils.c57 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;
/osnet-11/usr/src/grub/grub2/grub-core/loader/i386/
H A Dmultiboot_mbi.c741 grub_uint32_t biosdev, slice = ~0, part = ~0; local
759 slice = dev->disk->partition->parent->number;
762 slice = dev->disk->partition->number;
767 bootdev = ((biosdev & 0xff) << 24) | ((slice & 0xff) << 16)
H A Dbsd.c181 grub_uint32_t * slice, grub_uint32_t * part)
191 *slice = 0xff;
199 *slice = dev->disk->partition->parent->number + 1;
202 *slice = dev->disk->partition->number + 1;
1470 grub_uint32_t unit, slice, part; local
1515 grub_bsd_get_device (&freebsd_biosdev, &unit, &slice, &part);
1516 freebsd_bootdev = (FREEBSD_B_DEVMAGIC + ((slice + 1) << FREEBSD_B_SLICESHIFT) +
179 grub_bsd_get_device(grub_uint32_t * biosdev, grub_uint32_t * unit, grub_uint32_t * slice, grub_uint32_t * part) argument
/osnet-11/usr/src/lib/fm/topo/modules/common/disk/common/
H A Ddisk_common.c753 char *ctds, *slice; local
760 /* trim the dsk/rdsk and slice off the public name */
762 ((slice = strrchr(ctds, 's')) != NULL))
763 *slice = '\0';
776 out: if (ctds && slice)
777 *slice = 's';
/osnet-11/usr/src/grub/grub2/grub-core/loader/
H A Dmultiboot_mbi2.c72 static grub_uint32_t biosdev, slice, part; variable
818 tag->slice = slice;
1068 slice = ~0;
1086 slice = dev->disk->partition->parent->number;
1089 slice = dev->disk->partition->number;
/osnet-11/usr/src/cmd/powertop/common/
H A Dpowertop.h220 int slice; member in struct:suggestion
/osnet-11/usr/src/grub/grub2/include/
H A Dmultiboot2.h195 multiboot_uint32_t slice; member in struct:multiboot_tag_bootdev
/osnet-11/usr/src/cmd/hal/hald/solaris/
H A Ddevinfo_storage.c52 char *slice; member in struct:devinfo_storage_minor
72 static struct devinfo_storage_minor *devinfo_storage_new_minor(char *maindev_path, char *slice,
834 free (m->slice);
842 devinfo_storage_new_minor(char *maindev_path, char *slice, char *devlink, dev_t dev, int dosnum) argument
851 * For volume's devfs_path we'll use minor_path/slice instead of
854 pathlen = strlen (maindev_path) + strlen (slice) + 2;
856 snprintf(devpath, pathlen, "%s/%s", maindev_path, slice);
860 m->slice = strdup (slice);
890 char *slice; local
1063 char *slice = m->slice; local
1072 "%s/%s", hal_device_get_udi (parent), slice); local
1128 const char *slice; local
1451 char *part, *slice, *disk; local
[all...]
/osnet-11/usr/src/lib/libzfs/common/
H A Dlibzfs_vdev.c197 dm_descriptor_t *drive, *media, *slice; local
233 if ((slice = dm_get_associated_descriptors(*media, DM_SLICE,
249 for (i = 0; slice[i] != NULL; i++) {
250 char *name = dm_get_name(slice[i], &err);
258 dm_free_descriptors(slice);
489 * an entire disk (minus the slice number).
554 char *query, *slice, *dp = NULL; local
559 if ((slice = strchr(tmp, 's')) != NULL)
560 *slice = '\0';
992 * know that slice
[all...]
H A Dlibzfs_import.c152 * preserve slice numbers even if the disks have been reorganized, and
1296 rdsk_node_t *slice; local
1366 slice = zfs_alloc(hdl, sizeof (rdsk_node_t));
1367 slice->rn_path = zfs_strdup(hdl, devpath);
1368 slice->rn_rawpath = zfs_strdup(hdl, rawpath);
1369 slice->rn_avl = &slice_cache;
1370 slice->rn_hdl = hdl;
1371 slice->rn_nozpool = B_FALSE;
1372 avl_add(&slice_cache, slice);
1397 slice
[all...]
H A Dlibzfs_pool.c799 * Don't start the slice at the default block of 34; many storage
1153 "cache device must be a disk or disk slice"));
1322 "cache device must be a disk or disk slice"));
3353 * trailing 's[01]' slice name.
3374 int slice, len; local
3378 * that. If this is not a "wholedisk" vdev then append the slice.
3389 slice = strtol(ptr + 1, NULL, 10);
3393 slice + 'a');
4083 * have a backup slice). V_UNASSIGNED is supposed to be used only
4100 * a specific slice
[all...]
/osnet-11/usr/src/lib/lvm/libmeta/common/
H A Dmeta_name.c1139 uint_t slice; local
1146 for (slice = 0; (slice < dnp->parts.parts_len); ++slice)
1147 metafreename(&dnp->parts.parts_val[slice]);
1569 * get raw slice and drive names
1591 /* get slice name */
1690 * get our slice number - works only with names that end in s%u -
1707 /* build slice name */
1721 /* make sure we have at least our slice */
1740 parse_ctd( char *uname, uint_t *slice) argument
2522 uint_t slice; local
2710 uint_t slice; local
2852 uint_t slice; local
3824 char *ctd, *slice; local
[all...]
/osnet-11/usr/src/lib/libuefi_rt/common/
H A Dlibuefi_rt_path.c1934 dm_descriptor_t slice; local
1951 if ((slice = dm_get_descriptor_by_name(DM_SLICE, drive_path,
1960 nvp = dm_get_attributes(slice, &err);
1961 dm_free_descriptor(slice);
1990 EPRINT("drive has no slice number: %s\n", drive);
1991 dm_free_descriptor(slice);

Completed in 80 milliseconds

12