Lines Matching refs:udi

41 static char			*udi;  variable
128 libhal_device_emit_condition (ctx, udi, "EjectPressed", "", &error); in sysevent_dev_handler()
136 force_unmount (LibHalContext *ctx, const char *udi) in force_unmount() argument
150 msg = dbus_message_new_method_call ("org.freedesktop.Hal", udi, in force_unmount()
154 HAL_DEBUG (("Could not create dbus message for %s", udi)); in force_unmount()
165 device_file = libhal_device_get_property_string (ctx, udi, "block.device", &error); in force_unmount()
174 HAL_DEBUG (("Could not append args to dbus message for %s", udi)); in force_unmount()
179 HAL_DEBUG (("Unmount failed for %s: %s : %s\n", udi, error.name, error.message)); in force_unmount()
184 HAL_DEBUG (("Unmount failed for %s\n%s : %s\n", udi, error.name, error.message)); in force_unmount()
188 HAL_DEBUG (("Succesfully unmounted udi '%s'", udi)); in force_unmount()
201 unmount_childs (LibHalContext *ctx, const char *udi) in unmount_childs() argument
211 ctx, "block.storage_device", udi, &num_volumes, &error)) != NULL) { in unmount_childs()
324 if ((udi = getenv ("UDI")) == NULL) in main()
350 if (!libhal_device_addon_is_ready (ctx, udi, &error)) { in main()
355 …oing addon-storage for %s (bus %s) (drive_type %s) (udi %s)\n", device_file, bus, drive_type, udi); in main()
391 libhal_device_set_property_bool (ctx, udi, "storage.removable.media_available", FALSE, &error); in main()
395 unmount_childs (ctx, udi); in main()
398 libhal_device_rescan (ctx, udi, &error); in main()
406 libhal_device_set_property_bool (ctx, udi, "storage.removable.media_available", TRUE, &error); in main()
410 libhal_device_rescan (ctx, udi, &error); in main()
418 unmount_childs (ctx, udi); in main()