Lines Matching defs:desc
66 static int has_slices(descriptor_t *desc, int *errp);
69 partition_get_assoc_descriptors(descriptor_t *desc, dm_desc_type_t type,
72 if (!desc_ok(desc)) {
79 return (media_get_assocs(desc, errp));
81 if (!has_slices(desc, errp)) {
87 return (slice_get_assocs(desc, errp));
96 * For a media desc. we just get all the partitions, but for a slice desc.
100 partition_get_assocs(descriptor_t *desc, int *errp)
112 if (get_parts(desc->p.disk, iparts, pname, sizeof (pname)) != 0) {
134 * If this is a slice desc. we need the first active solaris partition
137 if (desc->type == DM_SLICE) {
171 /* the media name comes from the slice desc. */
173 desc->p.disk, part_name, desc->secondary_name,
210 /* the media name comes from the media desc. */
212 desc->p.disk, part_name, desc->name, errp);
295 partition_get_name(descriptor_t *desc)
297 return (desc->name);
727 has_slices(descriptor_t *desc, int *errp)
734 if (get_parts(desc->p.disk, iparts, NULL, 0) != 0) {
739 p = strrchr(desc->name, 'p');
741 p = desc->name;