Lines Matching refs:d

75 static void devinfo_volume_preprobing_done(HalDevice *d, gpointer userdata1, gpointer userdata2);
76 static void devinfo_volume_hotplug_begin_add (HalDevice *d, HalDevice *parent, DevinfoDevHandler *h…
77 static void devinfo_storage_hotplug_begin_add (HalDevice *d, HalDevice *parent, DevinfoDevHandler *…
78 static void devinfo_storage_probing_done (HalDevice *d, guint32 exit_type, gint return_code, char *…
79 const gchar *devinfo_volume_get_prober (HalDevice *d, int *timeout);
80 const gchar *devinfo_storage_get_prober (HalDevice *d, int *timeout);
87 static void devinfo_storage_set_nicknames (HalDevice *d);
168 HalDevice *d; in devinfo_ide_host_add() local
170 d = hal_device_new (); in devinfo_ide_host_add()
172 devinfo_set_default_properties (d, parent, node, devfs_path); in devinfo_ide_host_add()
173 hal_device_property_set_string (d, "info.product", "IDE host controller"); in devinfo_ide_host_add()
174 hal_device_property_set_string (d, "info.subsystem", "ide_host"); in devinfo_ide_host_add()
175 hal_device_property_set_int (d, "ide_host.number", 0); /* XXX */ in devinfo_ide_host_add()
177 devinfo_add_enqueue (d, devfs_path, &devinfo_ide_handler); in devinfo_ide_host_add()
179 return (d); in devinfo_ide_host_add()
185 HalDevice *d; in devinfo_ide_device_add() local
187 d = hal_device_new(); in devinfo_ide_device_add()
189 devinfo_set_default_properties (d, parent, node, devfs_path); in devinfo_ide_device_add()
195 devinfo_add_enqueue (d, devfs_path, &devinfo_ide_handler); in devinfo_ide_device_add()
197 return (devinfo_ide_storage_add (d, node, devfs_path)); in devinfo_ide_device_add()
203 HalDevice *d; in devinfo_ide_storage_add() local
213 d = hal_device_new (); in devinfo_ide_storage_add()
215 devinfo_set_default_properties (d, parent, node, devfs_path); in devinfo_ide_storage_add()
216 hal_device_property_set_string (d, "info.category", "storage"); in devinfo_ide_storage_add()
220 hal_device_set_udi (d, udi); in devinfo_ide_storage_add()
221 hal_device_property_set_string (d, "info.udi", udi); in devinfo_ide_storage_add()
222 PROP_STR(d, node, s, "devid", "info.product"); in devinfo_ide_storage_add()
224 hal_device_add_capability (d, "storage"); in devinfo_ide_storage_add()
225 hal_device_property_set_string (d, "storage.bus", "ide"); in devinfo_ide_storage_add()
226 hal_device_property_set_int (d, "storage.lun", 0); in devinfo_ide_storage_add()
227 hal_device_property_set_string (d, "storage.drive_type", "disk"); in devinfo_ide_storage_add()
229 PROP_BOOL(d, node, i, "hotpluggable", "storage.hotpluggable"); in devinfo_ide_storage_add()
230 PROP_BOOL(d, node, i, "removable-media", "storage.removable"); in devinfo_ide_storage_add()
232 hal_device_property_set_bool (d, "storage.media_check_enabled", FALSE); in devinfo_ide_storage_add()
235 hal_device_property_set_bool (d, "storage.requires_eject", FALSE); in devinfo_ide_storage_add()
237 hal_device_add_capability (d, "block"); in devinfo_ide_storage_add()
239 devinfo_storage_minors (d, node, (char *)devfs_path, FALSE); in devinfo_ide_storage_add()
241 return (d); in devinfo_ide_storage_add()
251 HalDevice *d; in devinfo_scsi_add() local
259 d = hal_device_new (); in devinfo_scsi_add()
261 devinfo_set_default_properties (d, parent, node, devfs_path); in devinfo_scsi_add()
262 hal_device_property_set_string (d, "info.subsystem", "scsi"); in devinfo_scsi_add()
266 hal_device_set_udi (d, udi); in devinfo_scsi_add()
267 hal_device_property_set_string (d, "info.udi", udi); in devinfo_scsi_add()
269 hal_device_property_set_int (d, "scsi.host", in devinfo_scsi_add()
271 hal_device_property_set_int (d, "scsi.bus", 0); in devinfo_scsi_add()
272 PROP_INT(d, node, i, "target", "scsi.target"); in devinfo_scsi_add()
273 PROP_INT(d, node, i, "lun", "scsi.lun"); in devinfo_scsi_add()
274 hal_device_property_set_string (d, "info.product", "SCSI Device"); in devinfo_scsi_add()
276 devinfo_add_enqueue (d, devfs_path, &devinfo_scsi_handler); in devinfo_scsi_add()
278 return (devinfo_scsi_storage_add (d, node, devfs_path)); in devinfo_scsi_add()
284 HalDevice *d; in devinfo_scsi_storage_add() local
289 d = hal_device_new (); in devinfo_scsi_storage_add()
291 devinfo_set_default_properties (d, parent, node, devfs_path); in devinfo_scsi_storage_add()
292 hal_device_property_set_string (d, "info.category", "storage"); in devinfo_scsi_storage_add()
296 hal_device_set_udi (d, udi); in devinfo_scsi_storage_add()
297 hal_device_property_set_string (d, "info.udi", udi); in devinfo_scsi_storage_add()
298 PROP_STR(d, node, s, "inquiry-product-id", "info.product"); in devinfo_scsi_storage_add()
300 hal_device_add_capability (d, "storage"); in devinfo_scsi_storage_add()
302 hal_device_property_set_int (d, "storage.lun", in devinfo_scsi_storage_add()
304 PROP_BOOL(d, node, i, "hotpluggable", "storage.hotpluggable"); in devinfo_scsi_storage_add()
305 PROP_BOOL(d, node, i, "removable-media", "storage.removable"); in devinfo_scsi_storage_add()
306 hal_device_property_set_bool (d, "storage.requires_eject", FALSE); in devinfo_scsi_storage_add()
317 hal_device_property_set_bool (d, "storage.media_check_enabled", in devinfo_scsi_storage_add()
324 hal_device_property_set_string (d, "storage.drive_type", s); in devinfo_scsi_storage_add()
327 hal_device_add_capability (d, "storage.cdrom"); in devinfo_scsi_storage_add()
328 hal_device_property_set_bool (d, "storage.no_partitions_hint", TRUE); in devinfo_scsi_storage_add()
329 hal_device_property_set_bool (d, "storage.requires_eject", TRUE); in devinfo_scsi_storage_add()
333 hal_device_add_capability (d, "block"); in devinfo_scsi_storage_add()
335 devinfo_storage_minors (d, node, devfs_path, FALSE); in devinfo_scsi_storage_add()
337 return (d); in devinfo_scsi_storage_add()
376 HalDevice *d; in devinfo_blkdev_add() local
384 d = hal_device_new (); in devinfo_blkdev_add()
386 devinfo_set_default_properties (d, parent, node, devfs_path); in devinfo_blkdev_add()
387 hal_device_property_set_string (d, "info.subsystem", "pseudo"); in devinfo_blkdev_add()
391 hal_device_set_udi (d, udi); in devinfo_blkdev_add()
392 hal_device_property_set_string (d, "info.udi", udi); in devinfo_blkdev_add()
393 hal_device_property_set_string (d, "info.product", "Block Device"); in devinfo_blkdev_add()
395 devinfo_add_enqueue (d, devfs_path, &devinfo_blkdev_handler); in devinfo_blkdev_add()
397 return (devinfo_blkdev_storage_add (d, node, devfs_path)); in devinfo_blkdev_add()
403 HalDevice *d; in devinfo_blkdev_storage_add() local
409 d = hal_device_new (); in devinfo_blkdev_storage_add()
411 devinfo_set_default_properties (d, parent, node, devfs_path); in devinfo_blkdev_storage_add()
412 hal_device_property_set_string (d, "info.category", "storage"); in devinfo_blkdev_storage_add()
416 hal_device_set_udi (d, udi); in devinfo_blkdev_storage_add()
417 hal_device_property_set_string (d, "info.udi", udi); in devinfo_blkdev_storage_add()
419 hal_device_add_capability (d, "storage"); in devinfo_blkdev_storage_add()
421 hal_device_property_set_int (d, "storage.lun", 0); in devinfo_blkdev_storage_add()
423 PROP_BOOL(d, node, i, "hotpluggable", "storage.hotpluggable"); in devinfo_blkdev_storage_add()
424 PROP_BOOL(d, node, i, "removable-media", "storage.removable"); in devinfo_blkdev_storage_add()
426 hal_device_property_set_bool (d, "storage.requires_eject", FALSE); in devinfo_blkdev_storage_add()
427 hal_device_property_set_bool (d, "storage.media_check_enabled", TRUE); in devinfo_blkdev_storage_add()
428 hal_device_property_set_string (d, "storage.drive_type", "disk"); in devinfo_blkdev_storage_add()
430 hal_device_add_capability (d, "block"); in devinfo_blkdev_storage_add()
432 devinfo_storage_minors (d, node, devfs_path, FALSE); in devinfo_blkdev_storage_add()
434 return (d); in devinfo_blkdev_storage_add()
449 HalDevice *d = NULL; in devinfo_floppy_add() local
489 d = hal_device_new (); in devinfo_floppy_add()
491 devinfo_set_default_properties (d, parent, node, devfs_path); in devinfo_floppy_add()
492 hal_device_property_set_string (d, "info.category", "storage"); in devinfo_floppy_add()
493 hal_device_add_capability (d, "storage"); in devinfo_floppy_add()
494 hal_device_property_set_string (d, "storage.bus", "platform"); in devinfo_floppy_add()
495 hal_device_property_set_bool (d, "storage.hotpluggable", FALSE); in devinfo_floppy_add()
496 hal_device_property_set_bool (d, "storage.removable", TRUE); in devinfo_floppy_add()
497 hal_device_property_set_bool (d, "storage.requires_eject", TRUE); in devinfo_floppy_add()
498 hal_device_property_set_bool (d, "storage.media_check_enabled", FALSE); in devinfo_floppy_add()
499 hal_device_property_set_string (d, "storage.drive_type", "floppy"); in devinfo_floppy_add()
501 hal_device_add_capability (d, "block"); in devinfo_floppy_add()
502 hal_device_property_set_bool (d, "block.is_volume", FALSE); in devinfo_floppy_add()
503 hal_device_property_set_int (d, "block.major", major(dev)); in devinfo_floppy_add()
504 hal_device_property_set_int (d, "block.minor", minor(dev)); in devinfo_floppy_add()
505 hal_device_property_set_string (d, "block.device", devlink); in devinfo_floppy_add()
507 hal_device_property_set_string (d, "block.solaris.raw_device", raw); in devinfo_floppy_add()
510 devinfo_add_enqueue (d, devfs_path, &devinfo_storage_handler); in devinfo_floppy_add()
513 devinfo_floppy_add_volume(d, node); in devinfo_floppy_add()
519 return (d); in devinfo_floppy_add()
546 devinfo_floppy_rescan_probing_done (HalDevice *d, guint32 exit_type, gint return_code, in devinfo_floppy_rescan_probing_done() argument
554 if (!hal_device_property_get_bool (d, "storage.removable.media_available")) { in devinfo_floppy_rescan_probing_done()
555 HAL_INFO (("no floppy media", hal_device_get_udi (d))); in devinfo_floppy_rescan_probing_done()
559 "info.parent", hal_device_get_udi (d))) != NULL) && in devinfo_floppy_rescan_probing_done()
565 HAL_INFO (("floppy media found", hal_device_get_udi (d))); in devinfo_floppy_rescan_probing_done()
567 if ((devfs_path = hal_device_property_get_string(d, "solaris.devfs_path")) == NULL) { in devinfo_floppy_rescan_probing_done()
568 HAL_INFO (("no devfs_path", hal_device_get_udi (d))); in devinfo_floppy_rescan_probing_done()
578 devinfo_floppy_add_volume (d, node); in devinfo_floppy_rescan_probing_done()
599 HalDevice *d = NULL; in devinfo_lofi_add_major() local
614 d = hal_device_new (); in devinfo_lofi_add_major()
616 devinfo_set_default_properties (d, parent, node, devfs_path); in devinfo_lofi_add_major()
617 hal_device_property_set_string (d, "info.subsystem", "pseudo"); in devinfo_lofi_add_major()
621 hal_device_set_udi (d, udi); in devinfo_lofi_add_major()
622 hal_device_property_set_string (d, "info.udi", udi); in devinfo_lofi_add_major()
624 devinfo_add_enqueue (d, devfs_path, &devinfo_lofi_handler); in devinfo_lofi_add_major()
626 d = lofi_d; in devinfo_lofi_add_major()
638 return (d); in devinfo_lofi_add_major()
657 devinfo_lofi_add_minor(d, node, minor_path, devlink, dev); in devinfo_lofi_add_major()
665 return (d); in devinfo_lofi_add_major()
671 HalDevice *d; in devinfo_lofi_add_minor() local
679 d = hal_device_new (); in devinfo_lofi_add_minor()
681 devinfo_set_default_properties (d, parent, node, minor_path); in devinfo_lofi_add_minor()
682 hal_device_property_set_string (d, "info.category", "storage"); in devinfo_lofi_add_minor()
683 hal_device_add_capability (d, "storage"); in devinfo_lofi_add_minor()
684 hal_device_property_set_string (d, "storage.bus", "lofi"); in devinfo_lofi_add_minor()
685 hal_device_property_set_bool (d, "storage.hotpluggable", TRUE); in devinfo_lofi_add_minor()
686 hal_device_property_set_bool (d, "storage.removable", FALSE); in devinfo_lofi_add_minor()
687 hal_device_property_set_bool (d, "storage.requires_eject", FALSE); in devinfo_lofi_add_minor()
688 hal_device_property_set_string (d, "storage.drive_type", "disk"); in devinfo_lofi_add_minor()
689 hal_device_add_capability (d, "block"); in devinfo_lofi_add_minor()
690 hal_device_property_set_int (d, "block.major", major(dev)); in devinfo_lofi_add_minor()
691 hal_device_property_set_int (d, "block.minor", minor(dev)); in devinfo_lofi_add_minor()
692 hal_device_property_set_string (d, "block.device", devlink); in devinfo_lofi_add_minor()
694 hal_device_property_set_string (d, "block.solaris.raw_device", raw); in devinfo_lofi_add_minor()
696 hal_device_property_set_bool (d, "block.is_volume", FALSE); in devinfo_lofi_add_minor()
698 devinfo_add_enqueue (d, minor_path, &devinfo_storage_handler); in devinfo_lofi_add_minor()
702 devinfo_volume_add (d, node, m); in devinfo_lofi_add_minor()
711 devinfo_volume_add (d, node, m); in devinfo_lofi_add_minor()
723 HalDevice *d = NULL; in devinfo_lofi_remove_minor() local
730 d = HAL_DEVICE (i->data); in devinfo_lofi_remove_minor()
736 if (d == NULL) { in devinfo_lofi_remove_minor()
741 if ((devfs_path = hal_device_property_get_string (d, in devinfo_lofi_remove_minor()
743 HAL_INFO (("devfs_path not found %s", hal_device_get_udi (d))); in devinfo_lofi_remove_minor()
747 if (d != NULL) { in devinfo_lofi_remove_minor()
748 devinfo_remove_branch ((char *)devfs_path, d); in devinfo_lofi_remove_minor()
980 HalDevice *d; in devinfo_volume_add() local
990 d = hal_device_new (); in devinfo_volume_add()
992 devinfo_set_default_properties (d, parent, node, devfs_path); in devinfo_volume_add()
993 hal_device_property_set_string (d, "info.category", "volume"); in devinfo_volume_add()
997 hal_device_set_udi (d, udi); in devinfo_volume_add()
998 hal_device_property_set_string (d, "info.udi", udi); in devinfo_volume_add()
999 hal_device_property_set_string (d, "info.product", slice); in devinfo_volume_add()
1001 hal_device_add_capability (d, "volume"); in devinfo_volume_add()
1002 hal_device_add_capability (d, "block"); in devinfo_volume_add()
1003 hal_device_property_set_int (d, "block.major", major (dev)); in devinfo_volume_add()
1004 hal_device_property_set_int (d, "block.minor", minor (dev)); in devinfo_volume_add()
1005 hal_device_property_set_string (d, "block.device", devlink); in devinfo_volume_add()
1007 hal_device_property_set_string (d, "block.solaris.raw_device", raw); in devinfo_volume_add()
1009 hal_device_property_set_string (d, "block.solaris.slice", slice); in devinfo_volume_add()
1010 hal_device_property_set_bool (d, "block.is_volume", TRUE); /* XXX */ in devinfo_volume_add()
1012 hal_device_property_set_string (d, "block.storage_device", hal_device_get_udi (parent)); in devinfo_volume_add()
1015 hal_device_property_set_string (d, "volume.fstype", ""); in devinfo_volume_add()
1016 hal_device_property_set_string (d, "volume.fsusage", ""); in devinfo_volume_add()
1017 hal_device_property_set_string (d, "volume.fsversion", ""); in devinfo_volume_add()
1018 hal_device_property_set_string (d, "volume.uuid", ""); in devinfo_volume_add()
1019 hal_device_property_set_string (d, "volume.label", ""); in devinfo_volume_add()
1020 hal_device_property_set_string (d, "volume.mount_point", ""); in devinfo_volume_add()
1021 hal_device_property_set_bool (d, "volume.is_mounted", FALSE); in devinfo_volume_add()
1023 hal_device_property_set_bool (d, "volume.is_disc", TRUE); in devinfo_volume_add()
1024 hal_device_add_capability (d, "volume.disc"); in devinfo_volume_add()
1026 hal_device_property_set_bool (d, "volume.is_disc", FALSE); in devinfo_volume_add()
1030 hal_device_property_set_bool (d, "volume.is_partition", TRUE); in devinfo_volume_add()
1031 hal_device_property_set_int (d, "volume.partition.number", dosnum); in devinfo_volume_add()
1033 hal_device_property_set_bool (d, "volume.is_partition", FALSE); in devinfo_volume_add()
1037 hal_device_property_set_int (d, "volume.block_size", 512); in devinfo_volume_add()
1039 devinfo_add_enqueue (d, devfs_path, &devinfo_volume_handler); in devinfo_volume_add()
1041 return (d); in devinfo_volume_add()
1045 devinfo_volume_preprobing_done (HalDevice *d, gpointer userdata1, gpointer userdata2) in devinfo_volume_preprobing_done() argument
1055 if (hal_device_property_get_bool (d, "info.ignore")) { in devinfo_volume_preprobing_done()
1056 HAL_INFO (("Preprobing merged info.ignore==TRUE %s", hal_device_get_udi (d))); in devinfo_volume_preprobing_done()
1063 block_device = (char *)hal_device_property_get_string (d, "block.device"); in devinfo_volume_preprobing_done()
1064 storage_udi = hal_device_property_get_string (d, "block.storage_device"); in devinfo_volume_preprobing_done()
1065 slice = hal_device_property_get_string(d, "block.solaris.slice"); in devinfo_volume_preprobing_done()
1068 HAL_INFO (("Malformed volume properties %s", hal_device_get_udi (d))); in devinfo_volume_preprobing_done()
1073 HAL_INFO (("Storage device not found %s", hal_device_get_udi (d))); in devinfo_volume_preprobing_done()
1092 HAL_INFO (("Not probing slice %s", hal_device_get_udi (d))); in devinfo_volume_preprobing_done()
1097 HAL_INFO(("Probing udi=%s", hal_device_get_udi (d))); in devinfo_volume_preprobing_done()
1098 hald_runner_run (d, in devinfo_volume_preprobing_done()
1107 hal_device_store_remove (hald_get_tdl (), d); in devinfo_volume_preprobing_done()
1108 g_object_unref (d); in devinfo_volume_preprobing_done()
1113 devinfo_volume_hotplug_begin_add (HalDevice *d, HalDevice *parent, DevinfoDevHandler *handler, void… in devinfo_volume_hotplug_begin_add() argument
1115 HAL_INFO(("Preprobing volume udi=%s", hal_device_get_udi (d))); in devinfo_volume_hotplug_begin_add()
1118 HAL_INFO (("no parent %s", hal_device_get_udi (d))); in devinfo_volume_hotplug_begin_add()
1128 hal_device_store_add (hald_get_tdl (), d); in devinfo_volume_hotplug_begin_add()
1131 di_search_and_merge (d, DEVICE_INFO_TYPE_PREPROBE); in devinfo_volume_hotplug_begin_add()
1134 hal_util_callout_device_preprobe (d, devinfo_volume_preprobing_done, end_token, handler); in devinfo_volume_hotplug_begin_add()
1139 g_object_unref (d); in devinfo_volume_hotplug_begin_add()
1144 devinfo_storage_hotplug_begin_add (HalDevice *d, HalDevice *parent, DevinfoDevHandler *handler, voi… in devinfo_storage_hotplug_begin_add() argument
1156 HAL_INFO (("Preprobing udi=%s", hal_device_get_udi (d))); in devinfo_storage_hotplug_begin_add()
1159 HAL_INFO (("no parent %s", hal_device_get_udi (d))); in devinfo_storage_hotplug_begin_add()
1166 drive_type = hal_device_property_get_string (d, "storage.drive_type"); in devinfo_storage_hotplug_begin_add()
1191 HAL_INFO (("no physical device %s", hal_device_get_udi (d))); in devinfo_storage_hotplug_begin_add()
1193 hal_device_property_set_string (d, "storage.physical_device", hal_device_get_udi (phys_d)); in devinfo_storage_hotplug_begin_add()
1194 hal_device_property_set_string (d, "storage.bus", phys_bus); in devinfo_storage_hotplug_begin_add()
1200 hal_device_store_add (hald_get_tdl (), d); in devinfo_storage_hotplug_begin_add()
1203 di_search_and_merge (d, DEVICE_INFO_TYPE_PREPROBE); in devinfo_storage_hotplug_begin_add()
1206 hal_util_callout_device_preprobe (d, devinfo_callouts_preprobing_done, end_token, handler); in devinfo_storage_hotplug_begin_add()
1211 g_object_unref (d); in devinfo_storage_hotplug_begin_add()
1216 devinfo_storage_probing_done (HalDevice *d, guint32 exit_type, gint return_code, char **error, gpoi… in devinfo_storage_probing_done() argument
1220 HAL_INFO (("devinfo_storage_probing_done %s", hal_device_get_udi (d))); in devinfo_storage_probing_done()
1225 hal_device_store_remove (hald_get_tdl (), d); in devinfo_storage_probing_done()
1226 g_object_unref (d); in devinfo_storage_probing_done()
1231 devinfo_storage_set_nicknames (d); in devinfo_storage_probing_done()
1234 di_search_and_merge (d, DEVICE_INFO_TYPE_INFORMATION); in devinfo_storage_probing_done()
1235 di_search_and_merge (d, DEVICE_INFO_TYPE_POLICY); in devinfo_storage_probing_done()
1237 hal_util_callout_device_add (d, devinfo_callouts_add_done, end_token, NULL); in devinfo_storage_probing_done()
1241 devinfo_storage_get_prober (HalDevice *d, int *timeout) in devinfo_storage_get_prober() argument
1248 devinfo_volume_get_prober (HalDevice *d, int *timeout) in devinfo_volume_get_prober() argument
1258 devinfo_storage_rescan_probing_done (HalDevice *d, guint32 exit_type, gint return_code, char **erro… in devinfo_storage_rescan_probing_done() argument
1266 HAL_INFO (("devinfo_storage_rescan_probing_done %s", hal_device_get_udi (d))); in devinfo_storage_rescan_probing_done()
1268 devfs_path_orig = hal_device_property_get_string (d, "solaris.devfs_path"); in devinfo_storage_rescan_probing_done()
1286 HAL_INFO (("di_init %s failed %d %s", devfs_path, errno, hal_device_get_udi (d))); in devinfo_storage_rescan_probing_done()
1290 devinfo_storage_minors (d, node, (char *)devfs_path, TRUE); in devinfo_storage_rescan_probing_done()
1309 devinfo_storage_device_rescan (HalDevice *d) in devinfo_storage_device_rescan() argument
1319 HAL_INFO (("devinfo_storage_device_rescan udi=%s", hal_device_get_udi (d))); in devinfo_storage_device_rescan()
1321 if (hal_device_property_get_bool (d, "block.is_volume")) { in devinfo_storage_device_rescan()
1326 drive_type = hal_device_property_get_string (d, "storage.drive_type"); in devinfo_storage_device_rescan()
1329 media_available = !hal_device_property_get_bool (d, "storage.removable") || in devinfo_storage_device_rescan()
1330 hal_device_property_get_bool (d, "storage.removable.media_available"); in devinfo_storage_device_rescan()
1333 HAL_INFO (("media gone %s", hal_device_get_udi (d))); in devinfo_storage_device_rescan()
1336 "block.storage_device", hal_device_get_udi (d)); in devinfo_storage_device_rescan()
1352 HAL_INFO (("rescanning floppy %s", hal_device_get_udi (d))); in devinfo_storage_device_rescan()
1354 hald_runner_run (d, in devinfo_storage_device_rescan()
1360 HAL_INFO (("media available %s", hal_device_get_udi (d))); in devinfo_storage_device_rescan()
1362 hald_runner_run (d, in devinfo_storage_device_rescan()
1430 devinfo_storage_cleanup_mountpoint_cb (HalDevice *d, guint32 exit_type, in devinfo_storage_cleanup_mountpoint_cb() argument
1446 HalDevice *d; in devinfo_storage_mnttab_event() local
1472 d = HAL_DEVICE (v->data); in devinfo_storage_mnttab_event()
1473 major = hal_device_property_get_int (d, "block.major"); in devinfo_storage_mnttab_event()
1474 minor = hal_device_property_get_int (d, "block.minor"); in devinfo_storage_mnttab_event()
1480 is_partition = hal_device_property_get_bool (d, "volume.is_partition"); in devinfo_storage_mnttab_event()
1481 partition_number = hal_device_property_get_int (d, "volume.partition.number"); in devinfo_storage_mnttab_event()
1482 fstype = hal_device_property_get_string (d, "volume.fstype"); in devinfo_storage_mnttab_event()
1494 hal_device_property_set_bool (d, "volume.is_mounted", TRUE); in devinfo_storage_mnttab_event()
1495 hal_device_property_set_bool (d, "volume.is_mounted_read_only", in devinfo_storage_mnttab_event()
1497 hal_device_property_set_string (d, "volume.mount_point", m.mnt_mountp); in devinfo_storage_mnttab_event()
1501 hal_device_get_udi (d), m.mnt_mountp)); in devinfo_storage_mnttab_event()
1508 d = HAL_DEVICE (v->data); in devinfo_storage_mnttab_event()
1509 mount_point = g_strdup (hal_device_property_get_string (d, "volume.mount_point")); in devinfo_storage_mnttab_event()
1516 hal_device_property_set_bool (d, "volume.is_mounted", FALSE); in devinfo_storage_mnttab_event()
1517 hal_device_property_set_bool (d, "volume.is_mounted_read_only", FALSE); in devinfo_storage_mnttab_event()
1518 hal_device_property_set_string (d, "volume.mount_point", ""); in devinfo_storage_mnttab_event()
1521 HAL_INFO (("set %s to unmounted", hal_device_get_udi (d))); in devinfo_storage_mnttab_event()
1532 hald_runner_run_method (d, in devinfo_storage_mnttab_event()
1551 devinfo_volume_force_unmount_cb (HalDevice *d, guint32 exit_type, in devinfo_volume_force_unmount_cb() argument
1557 …unmount_cb for udi='%s', exit_type=%d, return_code=%d", hal_device_get_udi (d), exit_type, return_… in devinfo_volume_force_unmount_cb()
1571 hal_util_callout_device_remove (d, devinfo_callouts_remove_done, end_token, NULL); in devinfo_volume_force_unmount_cb()
1575 devinfo_volume_force_unmount (HalDevice *d, void *end_token) in devinfo_volume_force_unmount() argument
1582 mount_point = hal_device_property_get_string (d, "volume.mount_point"); in devinfo_volume_force_unmount()
1585 hal_util_callout_device_remove (d, devinfo_callouts_remove_done, end_token, NULL); in devinfo_volume_force_unmount()
1589 HAL_INFO (("devinfo_volume_force_unmount for udi='%s'", hal_device_get_udi (d))); in devinfo_volume_force_unmount()
1591 hald_runner_run_method (d, in devinfo_volume_force_unmount()
1601 devinfo_volume_hotplug_begin_remove (HalDevice *d, char *devfs_path, void *end_token) in devinfo_volume_hotplug_begin_remove() argument
1603 if (hal_device_property_get_bool (d, "volume.is_mounted")) { in devinfo_volume_hotplug_begin_remove()
1604 devinfo_volume_force_unmount (d, end_token); in devinfo_volume_hotplug_begin_remove()
1606 hal_util_callout_device_remove (d, devinfo_callouts_remove_done, end_token, NULL); in devinfo_volume_hotplug_begin_remove()
1629 devinfo_storage_get_legacy_media(HalDevice *d) in devinfo_storage_get_legacy_media() argument
1633 if (hal_device_has_capability (d, "storage.cdrom")) { in devinfo_storage_get_legacy_media()
1635 } else if (((drive_type = hal_device_property_get_string (d, in devinfo_storage_get_legacy_media()
1638 } else if (hal_device_property_get_bool (d, "storage.removable") || in devinfo_storage_get_legacy_media()
1639 hal_device_property_get_bool (d, "storage.hotpluggable")) { in devinfo_storage_get_legacy_media()
1647 devinfo_storage_foreach_nick (HalDeviceStore *store, HalDevice *d, gpointer user_data) in devinfo_storage_foreach_nick() argument
1653 media_type = hal_device_property_get_string (d, "storage.solaris.legacy.media_type"); in devinfo_storage_foreach_nick()
1654 media_num = hal_device_property_get_int (d, "storage.solaris.legacy.media_num"); in devinfo_storage_foreach_nick()
1663 devinfo_storage_append_nickname (HalDevice *d, const char *media_type, int media_num) in devinfo_storage_append_nickname() argument
1668 hal_device_property_strlist_append (d, "storage.solaris.nicknames", media_type); in devinfo_storage_append_nickname()
1671 hal_device_property_strlist_append (d, "storage.solaris.nicknames", buf); in devinfo_storage_append_nickname()
1675 devinfo_storage_set_nicknames (HalDevice *d) in devinfo_storage_set_nicknames() argument
1684 if ((media = devinfo_storage_get_legacy_media (d)) < 0) { in devinfo_storage_set_nicknames()
1707 hal_device_property_set_string (d, "storage.solaris.legacy.media_type", media_type); in devinfo_storage_set_nicknames()
1708 hal_device_property_set_int (d, "storage.solaris.legacy.media_num", media_num); in devinfo_storage_set_nicknames()
1712 hal_device_property_set_string (d, "storage.solaris.legacy.symdev", buf); in devinfo_storage_set_nicknames()
1713 devinfo_storage_append_nickname(d, media_type, media_num); in devinfo_storage_set_nicknames()
1717 devinfo_storage_append_nickname(d, "cd", media_num); in devinfo_storage_set_nicknames()
1718 devinfo_storage_append_nickname(d, "sr", media_num); in devinfo_storage_set_nicknames()
1720 devinfo_storage_append_nickname(d, "fd", media_num); in devinfo_storage_set_nicknames()
1721 devinfo_storage_append_nickname(d, "diskette", media_num); in devinfo_storage_set_nicknames()
1722 devinfo_storage_append_nickname(d, "rdiskette", media_num); in devinfo_storage_set_nicknames()