Lines Matching refs:media

575 	dm_descriptor_t	*media = NULL;
590 /* add real slices from disk's media... */
591 media = dm_get_associated_descriptors(disk, DM_MEDIA, &error);
592 (void) add_descriptors_to_free(media);
595 /* if there's no media, this is a removeable drive */
596 if (media != NULL && *media != NULL) {
598 /* examine media's slices... */
600 slices = dm_get_associated_descriptors(*media,
618 free(media);
621 print_get_assoc_desc_error(disk, gettext("media"), error);
1354 * current type value for the media on which
1360 * PURPOSE: Retrieves the media type for the disk.
1362 * Get the media associate with the input disk descriptor
1377 print_get_assoc_desc_error(disk, gettext("media"), error);
1379 /* disk should have exactly 1 media */
1388 /* no media: removeable drive */
1574 * The label type is actually a property of the media
1575 * associated with the disk, so retrieve the media and
1633 /* get disk's media */
1634 dm_descriptor_t *media;
1635 media = dm_get_associated_descriptors(disk, DM_MEDIA, &error);
1636 (void) add_descriptors_to_free(media);
1638 print_get_assoc_desc_error(disk, gettext("media"), error);
1639 } else if ((media != NULL) && (*media != NULL)) {
1640 /* get media's partitions */
1643 media[0], DM_PARTITION, &error);
1646 print_get_assoc_desc_error(media[0],
1667 free(media);
1670 /* if there was no media, it was a removeable drive */
1691 * these attributes are actually on the media,
1692 * not the disk... so get the media descriptor
1695 dm_descriptor_t *media;
1697 media = dm_get_associated_descriptors(disk, DM_MEDIA, &error);
1698 (void) add_descriptors_to_free(media);
1701 print_get_assoc_desc_error(disk, gettext("media"), error);
1702 } else if ((media != NULL) && (*media != NULL)) {
1703 /* if there's no media, it is a removeable drive */
1704 error = get_cached_attributes(media[0], &attrs);
1706 free(media);
1737 * these attributes are actually on the media,
1738 * not the disk... so get the media descriptor
1749 dm_descriptor_t *media;
1751 media = dm_get_associated_descriptors(disk, DM_MEDIA, &error);
1752 (void) add_descriptors_to_free(media);
1755 print_get_assoc_desc_error(disk, gettext("media"), error);
1756 } else if ((media == NULL) || (*media == NULL)) {
1757 print_get_assoc_desc_error(disk, gettext("media"), error);
1760 error = get_cached_attributes(media[0], &attrs);
1761 free(media);
2051 /* ignore non fixed media drives */
2613 * device known as the "media". The media concept exists to
2614 * model drives with removeable disk media. For the purposes
2616 * media can mostly be ignored.
2623 dm_descriptor_t *media = NULL;
2634 media = dm_get_associated_descriptors(slice, DM_MEDIA, &error);
2635 (void) add_descriptors_to_free(media);
2638 print_get_assoc_desc_error(slice, gettext("media"), error);
2639 } else if ((media == NULL) || (*media == NULL)) {
2640 print_get_assoc_desc_error(slice, gettext("media"), error);
2648 /* slice should have exactly 1 media */
2649 for (i = 0; (media[i] != NULL) && (*diskp == NULL); i++) {
2650 /* get disk from media */
2652 disks = dm_get_associated_descriptors(media[i], DM_DRIVE, &error);
2661 if (media != NULL) {
2662 free(media);