Home
last modified time | relevance | path

Searched refs:dm_descriptor_t (Results 1 – 24 of 24) sorted by relevance

/titanic_41/usr/src/cmd/lvm/metassist/layout/
H A Dlayout_device_util.h48 extern int set_display_name(dm_descriptor_t desc, char *name);
49 extern int get_display_name(dm_descriptor_t slice, char **name);
51 extern int slice_get_by_name(char *name, dm_descriptor_t *slicep);
52 extern int disk_get_by_name(char *name, dm_descriptor_t *diskp);
53 extern int hba_get_by_name(char *name, dm_descriptor_t *hbap);
59 dm_descriptor_t *diskp);
65 extern int hba_is_multiplex(dm_descriptor_t hba, boolean_t *bool);
67 extern int hba_set_n_avail_disks(dm_descriptor_t hba, uint16_t val);
68 extern int hba_get_n_avail_disks(dm_descriptor_t hba, uint16_t *val);
70 extern int hba_get_type(dm_descriptor_t hba, char **type);
[all …]
H A Dlayout_device_util.c65 dm_descriptor_t disk,
70 dm_descriptor_t disk,
75 dm_descriptor_t disk,
79 dm_descriptor_t disk,
83 dm_descriptor_t disk,
87 dm_descriptor_t disk,
91 dm_descriptor_t disk,
95 dm_descriptor_t disk,
102 dm_descriptor_t slice,
107 dm_descriptor_t slice,
[all …]
H A Dlayout_device_cache.h85 extern int add_cached_descriptor(char *name, dm_descriptor_t desc);
86 extern dm_descriptor_t find_cached_descriptor(char *name);
88 extern int add_cached_name(dm_descriptor_t desc, char *name);
89 extern int get_name(dm_descriptor_t desc, char **name);
92 extern int get_cached_attributes(dm_descriptor_t desc, nvlist_t **list);
94 extern int new_descriptor(dm_descriptor_t *desc);
95 extern int add_descriptors_to_free(dm_descriptor_t *desc_list);
H A Dlayout_device_cache.c91 dm_descriptor_t desc;
113 dm_descriptor_t desc;
118 static char *find_cached_name(dm_descriptor_t desc);
121 static int add_descriptor_to_free(dm_descriptor_t desc);
225 dm_descriptor_t desc) in add_cached_descriptor()
285 dm_descriptor_t
292 dm_descriptor_t desc = (dm_descriptor_t)0; in find_cached_descriptor()
363 dm_descriptor_t desc, in add_cached_name()
428 dm_descriptor_t desc) in find_cached_name()
470 dm_descriptor_t desc, in get_name()
[all …]
H A Dlayout_slice.h70 dm_descriptor_t src_slice_desc;
85 dm_descriptor_t src_slice_desc,
106 dm_descriptor_t slice,
115 extern int is_used_slice(dm_descriptor_t slice, boolean_t *is_used);
118 extern int add_used_slice(dm_descriptor_t slice);
120 extern int disk_has_used_slice(dm_descriptor_t disk, boolean_t *inuse);
126 extern int add_reserved_slice(dm_descriptor_t slice);
127 extern int is_reserved_slice(dm_descriptor_t slice, boolean_t *is_rsvd);
H A Dlayout_slice.c52 dm_descriptor_t *chosen);
55 dm_descriptor_t slice,
60 dm_descriptor_t slice,
66 dm_descriptor_t slice,
72 dm_descriptor_t slice,
77 dm_descriptor_t slice,
90 dm_descriptor_t oslice,
96 dm_descriptor_t oslice,
117 dm_descriptor_t disk;
126 static int add_used_slice_list_entry(char *slicename, dm_descriptor_t disk);
[all …]
H A Dlayout_discovery.c81 dm_descriptor_t hba,
82 dm_descriptor_t alias,
83 dm_descriptor_t disk);
116 dm_descriptor_t slice,
117 dm_descriptor_t disk,
124 dm_descriptor_t slice,
125 dm_descriptor_t disk,
131 dm_descriptor_t slice,
132 dm_descriptor_t disk,
151 dm_descriptor_t disk,
[all …]
H A Dlayout_validate.c190 dm_descriptor_t desc);
309 dm_descriptor_t slice = (uintptr_t)iter->obj; in validate_request_sizes()
511 dm_descriptor_t slice = (uintptr_t)iter->obj; in get_space_available_for_request()
673 dm_descriptor_t slice = (uintptr_t)iter->obj; in validate_reserved_slices()
808 dm_descriptor_t slice = (dm_descriptor_t)0; in validate_device_array()
809 dm_descriptor_t disk = (dm_descriptor_t)0; in validate_device_array()
810 dm_descriptor_t hba = (dm_descriptor_t)0; in validate_device_array()
815 if (hba == (dm_descriptor_t)0) { in validate_device_array()
817 if (disk == (dm_descriptor_t)0) { in validate_device_array()
829 if (slice != (dm_descriptor_t)0) { in validate_device_array()
[all …]
H A Dlayout_request.c217 dm_descriptor_t desc,
251 dm_descriptor_t disk,
923 dm_descriptor_t slice = (dm_descriptor_t)0; in slice_is_available()
932 if (slice == (dm_descriptor_t)0) { in slice_is_available()
982 dm_descriptor_t disk = (uintptr_t)iter->obj; in get_disks_for_target()
1102 dm_descriptor_t hba = (uintptr_t)iter->obj; in select_hbas_with_n_disks()
1115 dm_descriptor_t disk = (uintptr_t)iter2->obj; in select_hbas_with_n_disks()
1199 dm_descriptor_t hba, in hba_get_avail_disks_and_space()
1215 dm_descriptor_t disk = (uintptr_t)iter->obj; in hba_get_avail_disks_and_space()
1283 dm_descriptor_t disk, in disk_get_avail_space()
[all …]
H A Dlayout_dlist_util.c419 dm_descriptor_t desc1, desc2; in compare_slices_on_same_hba()
428 assert(desc1 != (dm_descriptor_t)0); in compare_slices_on_same_hba()
429 assert(desc2 != (dm_descriptor_t)0); in compare_slices_on_same_hba()
438 dm_descriptor_t hba1 = (uintptr_t)itr1->obj; in compare_slices_on_same_hba()
442 dm_descriptor_t hba2 = (uintptr_t)itr2->obj; in compare_slices_on_same_hba()
H A Dlayout.c81 dm_descriptor_t disk;
517 dm_descriptor_t disk = (dm_descriptor_t)0; in convert_device_names()
586 dm_descriptor_t disk) in add_modified_disk()
654 dm_descriptor_t disk = (dm_descriptor_t)0; in collect_modified_disks()
740 dm_descriptor_t disk = moddisk->disk; in add_modified_disks_to_diskset()
849 dm_descriptor_t disk = (dm_descriptor_t)0; in get_removed_slices_for_disks()
926 dm_descriptor_t disk; in get_modified_slices_for_disks()
936 (mods->src_slice_desc != (dm_descriptor_t)0)) { in get_modified_slices_for_disks()
1000 assert(disk != (dm_descriptor_t)0); in compare_disk_to_moddisk_disk()
H A Dlayout_request.h44 extern int add_modified_disk(devconfig_t *request, dm_descriptor_t diskx);
61 dm_descriptor_t desc,
87 dm_descriptor_t hba,
H A Dlayout_discovery.h82 extern int get_aliases(dm_descriptor_t desc, dlist_t **aliases);
83 extern int set_alias(dm_descriptor_t desc, char *alias);
H A Dlayout_svm_util.h69 dm_descriptor_t disk, char *diskset, boolean_t *bool);
71 dm_descriptor_t disk, char *diskset, boolean_t *bool);
H A Dlayout_svm_util.c97 dm_descriptor_t disk,
101 dm_descriptor_t disk,
702 dm_descriptor_t slice = (dm_descriptor_t)0; in add_diskset_hsp_spare()
705 if (slice == (dm_descriptor_t)0) { in add_diskset_hsp_spare()
787 dm_descriptor_t disk = (uintptr_t)iter->obj; in get_disks_in_diskset()
820 dm_descriptor_t disk, in is_disk_in_diskset()
833 dm_descriptor_t disk, in is_disk_in_local_diskset()
885 dm_descriptor_t disk, in is_disk_in_named_diskset()
951 dm_descriptor_t disk, in is_disk_in_other_diskset()
2074 dm_descriptor_t disk; in is_reserved_replica_slice_index()
H A Dlayout_mirror.c128 dm_descriptor_t disk,
1378 dm_descriptor_t hba = (uintptr_t)iter->obj; in compose_stripe_per_hba()
1440 dm_descriptor_t hba1 = (uintptr_t)iter1->obj; in compose_stripe_per_hba()
1753 dm_descriptor_t hba = (uintptr_t)iter->obj; in compose_stripes_within_hba()
1907 dm_descriptor_t hba = (uintptr_t)iter->obj; in compose_concat_per_hba()
2127 dm_descriptor_t hba = (uintptr_t)iter->obj; in compose_concats_within_hba()
2208 dm_descriptor_t diskp = (uintptr_t)iter->obj; in remove_used_disks()
2254 dm_descriptor_t disk, in volume_shares_disk()
2273 dm_descriptor_t odisk = NULL; in volume_shares_disk()
2318 dm_descriptor_t hba = (uintptr_t)iter->obj; in select_mpxio_hbas()
H A Dlayout_stripe.c645 dm_descriptor_t rqst_slice = NULL; in populate_explicit_stripe()
798 dm_descriptor_t hba = (uintptr_t)iter->obj; in compose_stripe_within_hba()
986 dm_descriptor_t comp_disk; in compute_usable_stripe_capacity()
H A Dlayout_concat.c313 dm_descriptor_t hba = (uintptr_t)iter->obj; in compose_concat_within_hba()
545 dm_descriptor_t rqst_slice = NULL; in populate_explicit_concat()
H A Dlayout_hsp.c703 dm_descriptor_t aslice = (uintptr_t)iter2->obj; in remove_undersized_slices()
796 dm_descriptor_t disk = NULL; in find_spare_for_component()
/titanic_41/usr/src/lib/libdiskmgt/common/
H A Dlibdiskmgt.h180 typedef uint64_t dm_descriptor_t; typedef
423 void dm_free_descriptors(dm_descriptor_t *desc_list);
424 void dm_free_descriptor(dm_descriptor_t desc);
428 dm_descriptor_t *dm_get_descriptors(dm_desc_type_t type, int filter[],
430 dm_descriptor_t *dm_get_associated_descriptors(dm_descriptor_t desc,
433 dm_descriptor_t dm_get_descriptor_by_name(dm_desc_type_t desc_type,
435 char *dm_get_name(dm_descriptor_t desc, int *errp);
436 dm_desc_type_t dm_get_type(dm_descriptor_t desc);
437 nvlist_t *dm_get_attributes(dm_descriptor_t desc, int *errp);
438 nvlist_t *dm_get_stats(dm_descriptor_t desc, int stat_type,
[all …]
H A Dentry.c62 static dm_descriptor_t *ptr_array_to_desc_array(descriptor_t **ptrs, int *errp);
63 static descriptor_t **desc_array_to_ptr_array(dm_descriptor_t *da, int *errp);
68 dm_free_descriptor(dm_descriptor_t desc) in dm_free_descriptor()
83 dm_free_descriptors(dm_descriptor_t *desc_list) in dm_free_descriptors()
109 dm_descriptor_t *
110 dm_get_associated_descriptors(dm_descriptor_t desc, dm_desc_type_t type, in dm_get_associated_descriptors()
195 dm_get_attributes(dm_descriptor_t desc, int *errp) in dm_get_attributes()
253 dm_descriptor_t
256 dm_descriptor_t desc = NULL; in dm_get_descriptor_by_name()
298 dm_descriptor_t *
[all …]
/titanic_41/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_diskmgt.c39 static char *get_device_name(dm_descriptor_t device, int *error);
40 static dmgt_disk_t *get_disk(dm_descriptor_t disk, int *error);
41 static char **get_disk_aliases(dm_descriptor_t disk, char *name, int *error);
42 static int get_disk_online(dm_descriptor_t disk, int *error);
44 static dmgt_slice_t **get_disk_slices(dm_descriptor_t media,
46 static dmgt_slice_t **get_disk_usable_slices(dm_descriptor_t media,
48 static void get_disk_size(dm_descriptor_t media, char *name,
50 static void get_slice_use(dm_descriptor_t slice, char *name,
53 dm_descriptor_t slice, uint32_t blocksize, int *error);
69 get_device_name(dm_descriptor_t device, int *error) in get_device_name()
[all …]
/titanic_41/usr/src/cmd/zpool/
H A Dzpool_vdev.c185 check_disk(const char *name, dm_descriptor_t disk, int force, int isspare) in check_disk()
187 dm_descriptor_t *drive, *media, *slice; in check_disk()
258 dm_descriptor_t desc; in check_device()
/titanic_41/usr/src/cmd/format/
H A Dcheckdev.c283 dm_descriptor_t *slices = NULL; in checkdevinuse()