Searched refs:slice (Results 1 - 25 of 86) sorted by relevance

1234

/illumos-gate/usr/src/uts/sun4u/starcat/sys/post/
H A Dscat_pa_space.h64 * The slice to exp mapping is not always 1-1, swaps may occur
67 * The slice number will always be a valid expander board
69 * The PA in these macros is 64-bit, the slice is 8 bit, unsigned.
72 #define SLICE128G_2_PA_BASE(slice) (((uint64_t)((slice) & 0x1F)) << 37)
/illumos-gate/usr/src/cmd/lvm/metassist/layout/
H A Dlayout_slice.h57 * src_slice_desc is the dm_descriptor_t of the slice which provided the
59 * taking space from some other "source" slice).
60 * slice_devconfig is the devconfig_t struct with the modified slice properties.
61 * times_modified is the number of times the slice has been modified
106 dm_descriptor_t slice,
113 * accessors for the list of used slice names for named diskset.
115 extern int is_used_slice(dm_descriptor_t slice, boolean_t *is_used);
118 extern int add_used_slice(dm_descriptor_t slice);
126 extern int add_reserved_slice(dm_descriptor_t slice);
127 extern int is_reserved_slice(dm_descriptor_t slice, boolean_
[all...]
H A Dlayout_device_util.h49 extern int get_display_name(dm_descriptor_t slice, char **name);
102 extern int slice_get_hbas(dm_descriptor_t slice, dlist_t **list);
103 extern int slice_get_disk(dm_descriptor_t slice, dm_descriptor_t *diskp);
104 extern int slice_get_size(dm_descriptor_t slice, uint64_t *val);
105 extern int slice_get_index(dm_descriptor_t slice, uint32_t *val);
106 extern int slice_get_size_in_blocks(dm_descriptor_t slice, uint64_t *val);
107 extern int slice_get_start_block(dm_descriptor_t slice, uint64_t *val);
108 extern int slice_get_start(dm_descriptor_t slice, uint64_t *val);
110 extern int slice_set_size(dm_descriptor_t slice, uint64_t size);
111 extern int slice_set_size_in_blocks(dm_descriptor_t slice, uint64_
[all...]
H A Dlayout_slice.c55 dm_descriptor_t slice,
60 dm_descriptor_t slice,
66 dm_descriptor_t slice,
72 dm_descriptor_t slice,
77 dm_descriptor_t slice,
163 * unused_disk - if true, the chosen slice must be from an
165 * nbytes_is_min - if true, the chosen slice may be larger than
168 * **chosen - pointer to hold the chosen slice
173 * PURPOSE: Choosen a slice from the list of those available.
193 * see if it is possible select the slice fro
217 dm_descriptor_t slice = NULL; local
305 dm_descriptor_t slice = (uintptr_t)iter->obj; local
556 create_devconfig_for_slice( dm_descriptor_t slice, devconfig_t **nslice) argument
951 devconfig_t *slice = NULL; local
1306 dm_descriptor_t slice = (uintptr_t)iter->obj; local
1363 dm_descriptor_t slice = (uintptr_t)iter->obj; local
1440 slice_on_unique_hba( dm_descriptor_t slice, dlist_t *used, dlist_t *used_hbas, boolean_t *unique) argument
1533 slice_on_unique_disk( dm_descriptor_t slice, dlist_t *used, dlist_t *used_disks, boolean_t *unique) argument
1610 slice_has_same_disk_geom( dm_descriptor_t slice, dlist_t *used, boolean_t *has_same_geom) argument
1709 slice_on_similar_bus( dm_descriptor_t slice, dlist_t *used, boolean_t *on_smlr_bus) argument
1832 slice_has_n_paths( dm_descriptor_t slice, uint16_t npaths, boolean_t *has_n_paths) argument
1963 is_used_slice( dm_descriptor_t slice, boolean_t *is_used) argument
1993 add_used_slice( dm_descriptor_t slice) argument
2063 remove_used_slice_by_name( char *slice) argument
2178 add_reserved_slice( dm_descriptor_t slice) argument
2209 is_reserved_slice( dm_descriptor_t slice, boolean_t *is_reserved) argument
[all...]
H A Dlayout_device_util.c102 dm_descriptor_t slice,
107 dm_descriptor_t slice,
127 dm_descriptor_t slice);
130 dm_descriptor_t slice,
147 * RETURNS: boolean_t - B_TRUE - if name follows an alternate slice
178 * RETURNS: boolean_t - B_TRUE - if name follows an alternate slice
224 * RETURNS: boolean_t - B_TRUE - if name represents a slice from the DID
228 * PURPOSE: Determines if the input name is a slice from the DID namespace.
302 * RETURNS: boolean_t - B_TRUE - if name represents a slice from the CTD
306 * PURPOSE: Determines if the input name is a slice nam
1057 disk_add_virtual_slice( dm_descriptor_t disk, dm_descriptor_t slice) argument
2306 slice_set_size( dm_descriptor_t slice, uint64_t size) argument
2340 slice_set_size_in_blocks( dm_descriptor_t slice, uint64_t size) argument
2364 slice_set_start_block( dm_descriptor_t slice, uint64_t start) argument
2390 slice_get_start_block( dm_descriptor_t slice, uint64_t *val) argument
2398 slice_get_size_in_blocks( dm_descriptor_t slice, uint64_t *val) argument
2406 slice_get_start( dm_descriptor_t slice, uint64_t *val) argument
2427 slice_get_size( dm_descriptor_t slice, uint64_t *val) argument
2450 slice_get_index( dm_descriptor_t slice, uint32_t *val) argument
2491 slice_get_uint64_attribute( dm_descriptor_t slice, char *attr, uint64_t *val) argument
2528 slice_set_attribute( dm_descriptor_t slice, char *attr, uint64_t val) argument
2577 virtual_slice_get_disk( dm_descriptor_t slice, dm_descriptor_t *diskp) argument
2619 slice_get_disk( dm_descriptor_t slice, dm_descriptor_t *diskp) argument
2689 slice_get_hbas( dm_descriptor_t slice, dlist_t **list) argument
3025 slice_get_by_name( char *name, dm_descriptor_t *slice) argument
3183 dm_descriptor_t slice = (dm_descriptor_t)0; local
[all...]
H A Dlayout_discovery.c56 * cannot be accessed. An example would be a slice that has
58 * cached handle for it, but the slice no longer exists.
109 dlist_t *sliceinfo; /* list with info about each slice with usage */
116 dm_descriptor_t slice,
124 dm_descriptor_t slice,
131 dm_descriptor_t slice,
164 dm_descriptor_t slice,
360 * free slice classification usage and lists, items are char*
656 * the slice -- ENODEV is returned. Any such slices will be
657 * added to the bad slice lis
686 dm_descriptor_t slice = (uintptr_t)iter1->obj; local
1110 dm_descriptor_t slice = (uintptr_t)iter2->obj; local
1277 dm_descriptor_t slice = (uintptr_t)iter2->obj; local
1326 dm_descriptor_t slice = (uintptr_t)iter2->obj; local
1615 update_slice_attributes( dm_descriptor_t slice, uint64_t stblk, uint64_t nblks, uint64_t nbytes) argument
1744 check_slice_usage( char *dsname, dm_descriptor_t slice, dm_descriptor_t disk, boolean_t *avail, dlist_t **bad, dlist_t **classes) argument
1929 check_svm_slice_usage( char *dsname, dm_descriptor_t slice, dm_descriptor_t disk, boolean_t *used, dlist_t **classes) argument
1989 save_slice_classification( char *dsname, dm_descriptor_t slice, dm_descriptor_t disk, char *usage, char *usage_detail, dlist_t **classes) argument
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/inuse/
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_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_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/lib/libzfs_jni/common/
H A Dlibzfs_jni_diskmgt.c52 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...]
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);
/illumos-gate/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_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 Ddisks_private.h257 int inuse_mnt(char *slice, nvlist_t *attrs, int *errp);
258 int inuse_svm(char *slice, nvlist_t *attrs, int *errp);
259 int inuse_lu(char *slice, nvlist_t *attrs, int *errp);
260 int inuse_active_zpool(char *slice, nvlist_t *attrs, int *errp);
261 int inuse_exported_zpool(char *slice, nvlist_t *attrs, int *errp);
262 int inuse_dump(char *slice, nvlist_t *attrs, int *errp);
263 int inuse_vxvm(char *slice, nvlist_t *attrs, int *errp);
264 int inuse_fs(char *slice, nvlist_t *attrs, int *errp);
H A Dinuse_lu.c57 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 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);
/illumos-gate/usr/src/cmd/devinfo/
H A Ddevinfo.c131 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/boot/sys/boot/i386/common/
H A Ddrv.h36 unsigned int slice; member in struct:dsk
/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/boot/sys/i386/include/
H A Dbootinfo.h109 #define MAKEBOOTDEV(type, slice, unit, partition) \
110 (((type) << B_TYPESHIFT) | ((slice) << B_SLICESHIFT) | \
/illumos-gate/usr/src/boot/sys/boot/uboot/common/
H A Dmain.c176 * 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...]

Completed in 134 milliseconds

1234