Home
last modified time | relevance | path

Searched refs:udis (Results 1 – 5 of 5) sorted by relevance

/titanic_41/usr/src/cmd/rmvolmgr/
H A Drmm_common.c256 char **udis; in rmm_hal_volume_findby() local
266 if ((udis = libhal_manager_find_device_string_match(hal_ctx, property, in rmm_hal_volume_findby()
275 if (libhal_device_query_capability(hal_ctx, udis[i], "volume", in rmm_hal_volume_findby()
277 v = libhal_volume_from_udi(hal_ctx, udis[i]); in rmm_hal_volume_findby()
282 libhal_device_query_capability(hal_ctx, udis[i], "storage", in rmm_hal_volume_findby()
300 drive = libhal_drive_from_udi(hal_ctx, udis[i_drive]); in rmm_hal_volume_findby()
303 libhal_free_string_array(udis); in rmm_hal_volume_findby()
357 char **udis; in rmm_print_volume_nicknames() local
370 if ((udis = libhal_find_device_by_capability(hal_ctx, "storage", in rmm_print_volume_nicknames()
377 if ((d = libhal_drive_from_udi(hal_ctx, udis[i])) == NULL) { in rmm_print_volume_nicknames()
[all …]
H A Drmvolmgr.c531 char **udis = NULL; in rmm_mount_all() local
539 if ((udis = libhal_find_device_by_capability(hal_ctx, "volume", in rmm_mount_all()
547 if (libhal_device_get_property_bool(hal_ctx, udis[i], in rmm_mount_all()
549 dprintf("mount_all: %s already mounted\n", udis[i]); in rmm_mount_all()
552 if (!volume_should_mount(udis[i])) { in rmm_mount_all()
555 if ((v = rmm_managed_alloc(hal_ctx, udis[i])) == NULL) { in rmm_mount_all()
558 if (rmm_action(hal_ctx, udis[i], INSERT, &v->aa, 0, 0, 0)) { in rmm_mount_all()
567 if (udis != NULL) { in rmm_mount_all()
568 libhal_free_string_array(udis); in rmm_mount_all()
/titanic_41/usr/src/cmd/hal/tools/
H A Dhal_find_by_capability.c76 char **udis; in main() local
160 udis = libhal_find_device_by_capability (hal_ctx, capability, &num_udis, &error); in main()
176 printf ("%s\n", udis[i]); in main()
179 libhal_free_string_array (udis); in main()
H A Dhal_find_by_property.c80 char **udis; in main() local
167 udis = libhal_manager_find_device_string_match (hal_ctx, key, value, &num_udis, &error); in main()
183 printf ("%s\n", udis[i]); in main()
186 libhal_free_string_array (udis); in main()
/titanic_41/usr/src/lib/hal/libhal-storage/common/
H A Dlibhal-storage.c1709 char **udis; in libhal_drive_find_all_volumes() local
1717 udis = NULL; in libhal_drive_find_all_volumes()
1727 if ((udis = libhal_manager_find_device_string_match (hal_ctx, "block.storage_device", in libhal_drive_find_all_volumes()
1739 if (strcmp (udis[i], drive_udi) == 0) in libhal_drive_find_all_volumes()
1741 result[*num_volumes] = strdup (udis[i]); in libhal_drive_find_all_volumes()
1748 libhal_free_string_array (udis); in libhal_drive_find_all_volumes()