FreeBSD Bugzilla – Attachment 171520 Details for
Bug 210354
[patch] sysutils/hal - k3b, brasero does not find optical drive
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch-hald_freebsd_hf-scsi.c
my-patch-hald_freebsd_hf-scsi.c.txt (text/plain), 1.79 KB, created by
Ivan Klymenko
on 2016-06-17 19:21:32 UTC
(
hide
)
Description:
patch-hald_freebsd_hf-scsi.c
Filename:
MIME Type:
Creator:
Ivan Klymenko
Created:
2016-06-17 19:21:32 UTC
Size:
1.79 KB
patch
obsolete
>--- ./hald/freebsd/hf-scsi.c.orig 2009-08-24 15:42:29.000000000 +0300 >+++ ./hald/freebsd/hf-scsi.c 2016-06-17 22:08:33.332871000 +0300 >@@ -223,7 +223,7 @@ > hal_device_copy_property(parent, "scsi.lun", device, "storage.lun"); > /* do not stop here, in case it's an umass device */ > } >- else if (! strcmp(bus, "usb")) >+ else if (hal_device_has_property(parent, "scsi_host.freebsd.driver") && ! strcmp(hal_device_property_get_string(parent, "scsi_host.freebsd.driver"), "umass")) > { > hal_device_property_set_string(device, "storage.bus", "usb"); > hal_device_property_set_string(device, "storage.originating_device", hal_device_get_udi(parent)); >@@ -301,7 +301,7 @@ > > driver = hal_device_property_get_string(child, "freebsd.driver"); > /* ATAPI devices: CD-ROM (acd), tape (ast) or floppy (afd) */ >- if (! driver || (strcmp(driver, "acd") && strcmp(driver, "ast") && strcmp(driver, "afd"))) >+ if (! driver || (strcmp(driver, "acd") && strcmp(driver, "ast") && strcmp(driver, "afd") && strcmp(driver, "cd"))) > continue; > > phys_device = hal_device_property_get_string(child, "storage.originating_device"); >@@ -508,6 +508,16 @@ > if (! parent || ! hal_device_property_get_bool(parent, "info.ignore")) > { > device = hf_scsi_bus_device_new(parent, match); >+ /* >+ * Due to synchronization problems, the SCSI bus could be >+ * created before the USB interface. Mark it as a USB mass >+ * storage device to ensure it is detected as such. >+ */ >+ if (! strcmp(match->dev_name, "umass-sim")) >+ { >+ hal_device_property_set_string(device, "scsi_host.freebsd.driver", "umass"); >+ hal_device_property_set_int(device, "scsi_host.freebsd.unit", match->unit_number); >+ } > hf_device_preprobe_and_add(device); > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 210354
:
171520
|
175067