hal/hald Makefile.am,1.28,1.29
David Zeuthen
david at freedesktop.org
Sun Aug 1 12:13:58 PDT 2004
Update of /cvs/hal/hal/hald
In directory pdx:/tmp/cvs-serv22767/hald
Modified Files:
Makefile.am
Log Message:
2004-08-01 David Zeuthen <david at fubar.dk>
Patch from Kay Sievers <kay.sievers at vrfy.org>
* hald/Makefile.am:
* hald/linux/block_class_device.c: (block_class_pre_process),
(block_class_compute_udi):
* hald/linux/drive_id/drive_id.c: (dump), (set_str), (scsi_inq),
(probe_scsi), (probe_ata), (drive_id_probe), (drive_id_open_fd),
(drive_id_open_node), (drive_id_open_dev_t), (drive_id_close):
* hald/linux/drive_id/drive_id.h:
Here is the code, that reads the serial number of a drive,
directly connected to an ATA or SCSI bus. HAL probes for the
values and adds: storage.serial, storage.firmware_version,
storage.revision if available.
Note: This will only work on native interfaces. For devices behind
USB, it's not possible to get any of these values. There are some
bridges out there, which are capable to set the USB-values itself,
to the values from a ATA Inquiry, but unfortunally, most of the
bridges out there, don't do it. "USB storage compliance" mandates
a unique serial number, but most of the vendors seems not to care
about it.
I changed the compute_udi for block devices. If we get a serial
number or a uuid we use it to compute the udi.
Index: Makefile.am
===================================================================
RCS file: /cvs/hal/hal/hald/Makefile.am,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- Makefile.am 24 Jun 2004 21:47:48 -0000 1.28
+++ Makefile.am 1 Aug 2004 19:13:55 -0000 1.29
@@ -69,7 +69,8 @@
linux/libsysfs/sysfs_utils.c
hald_SOURCES += \
- linux/volume_id/volume_id.h linux/volume_id/volume_id.c
+ linux/volume_id/volume_id.h linux/volume_id/volume_id.c \
+ linux/drive_id/drive_id.h linux/drive_id/drive_id.c
hald_LDADD = @PACKAGE_LIBS@
More information about the hal-commit
mailing list