Lines Matching refs:udi
40 static char *udi;
127 libhal_device_emit_condition (ctx, udi, "EjectPressed", "", &error);
135 force_unmount (LibHalContext *ctx, const char *udi)
149 msg = dbus_message_new_method_call ("org.freedesktop.Hal", udi,
153 HAL_DEBUG (("Could not create dbus message for %s", udi));
164 device_file = libhal_device_get_property_string (ctx, udi, "block.device", &error);
173 HAL_DEBUG (("Could not append args to dbus message for %s", udi));
178 HAL_DEBUG (("Unmount failed for %s: %s : %s\n", udi, error.name, error.message));
183 HAL_DEBUG (("Unmount failed for %s\n%s : %s\n", udi, error.name, error.message));
187 HAL_DEBUG (("Succesfully unmounted udi '%s'", udi));
200 unmount_childs (LibHalContext *ctx, const char *udi)
210 ctx, "block.storage_device", udi, &num_volumes, &error)) != NULL) {
325 if ((udi = getenv ("UDI")) == NULL)
357 if (!libhal_device_addon_is_ready (ctx, udi, &error)) {
362 printf ("Doing addon-storage for %s (bus %s) (drive_type %s) (udi %s)\n", device_file, bus, drive_type, udi);
398 libhal_device_set_property_bool (ctx, udi, "storage.removable.media_available", FALSE, &error);
402 unmount_childs (ctx, udi);
405 libhal_device_rescan (ctx, udi, &error);
413 libhal_device_set_property_bool (ctx, udi, "storage.removable.media_available", TRUE, &error);
417 libhal_device_rescan (ctx, udi, &error);
425 unmount_childs (ctx, udi);