Commit graph

293 commits

Author SHA1 Message Date
Kay Sievers 3a9fc64167 volume_id: set reiser instead of reiserfs for filesystem type
Thanks to Theodore Ts'o <tytso@mit.edu> for the hint and a test image.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-18 05:06:10 +02:00
Kay Sievers 0e5f8a1fcc scsi_id: switch temporary node creation to /dev
/tmp is not writable on most systems, so just use /dev to create a
temporary node. If called from a udev rule, "-d $tempnode" should be
used and udev will create a temporary node and pass the name before
calling scsi_id.
Also remove gen_scsi_id_udev_rules.sh per Patrick's request, as it's
no longer needed with the persistent disk links.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-18 04:49:23 +02:00
Kay Sievers 3515c0ad00 ata_id: open volume O_NONBLOCK
Opticals like that and should be ok for disks too, as long as we
don't read().

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-16 21:23:36 +02:00
John Hull 4b12433517 edd_id: check that EDD id is unique
The attached patch adds a check to edd_id.c to verify that the MBR
signature on the device node passed to the program is unique to only
that disk.

Signed-off-by: John Hull <john_hull@dell.com>
2005-09-16 21:10:12 +02:00
Marco d'Itri 77914dfeda run_directory: fix typo in "make install" 2005-09-16 21:05:15 +02:00
Edward Goggin 50be140174 scsi_id: derive a UID for a SCSI-2 not compliant with the page 83
This patch is to enable the use of scsi_id to derive a UID for a SCSI-2
device which is not compliant with the page 83 inquiry reply format for
either SPC-2 or SPC-3.  In this case, the page 83 reply does not
contain a list of  Identification descriptors but a single binary encoded
hexa-decimal Vendor Specified Identifier.

The update is being driven by the need for scsi_id to support older
model EMC Symmetrix hardware, that is, models 4, 5, and 6.
2005-09-14 20:23:48 +02:00
Kay Sievers 85701baede add install test to 'make buildtest'
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-14 17:29:27 +02:00
Kay Sievers db28d2ea4f EXTRAS: cleanup and sync all Makefiles
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-14 17:00:02 +02:00
Kay Sievers 726b21604a volume_id: fix error handling with failing read()
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-14 14:29:59 +02:00
Jürg Billeter 1ac216b198 EXTRAS/Makefile: fix install targets to match main Makefile 2005-09-14 14:27:28 +02:00
Kay Sievers 852cc0f58d remove chassis_id program
Broken and unmaintained!

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-12 14:28:59 +02:00
Duncan Sands 609435bad6 firmware_helper: fix write count 2005-09-09 12:38:58 +02:00
Kay Sievers aab571f362 fix useless but funny name_cdrom.pl script to work again
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-08 12:24:18 +02:00
Kay Sievers fc04985839 delete cdromsymlinks* - obsoleted by cdrom_id and IMPORT rules
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-08 03:34:34 +02:00
Kay Sievers 077ed27c55 add edd_id tool to match BIOS EDD disk information
Thanks to:
    John Hull <John_Hull@Dell.com>
    Matt Domsch <Matt_Domsch@Dell.com>

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-06 12:18:04 +02:00
Kay Sievers 7596a56298 scsi_id: rename SYSFS to LIBSYSFS
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-31 23:36:25 +02:00
Kay Sievers 0e47c219fc Makefile: remove all the duplicated rules
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-30 17:03:25 +02:00
Kay Sievers e79952c598 vol_id: ID_LABEL_SAFE will no longer contain fancy characters
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-28 23:16:56 +02:00
Thierry Vignaud c4ef16f92c switch to '==' in raid-devfs.sh 2005-08-26 14:52:57 +02:00
Kay Sievers cf7cad9dc9 path_id: remove SUSE specific PATH
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-25 00:40:41 +02:00
Amir Shalem 440103fcfc fix typo in firmware_helper
The wrong string is being nullifed.
2005-08-25 00:39:45 +02:00
Kay Sievers 8d77c6a383 volume_id: don't probe for mac_partition_maps
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-25 00:37:46 +02:00
Kay Sievers c907c823c3 *_id: fix zero length in set_str()
Thanks to Olaf Hering <olh@suse.de>

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-22 11:37:12 +02:00
Kay Sievers e331c54dc5 fix typo in cdrom_id syslog
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-18 04:54:59 +02:00
Kay Sievers 5097a6ca42 Merge rsync://rsync.kernel.org/pub/scm/linux/hotplug/udev 2005-08-18 04:48:43 +02:00
Greg Kroah-Hartman a961dcbf0d cdrom_id: change err() to info() to help with debugging problems
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-17 16:10:32 -07:00
Greg Kroah-Hartman fc046d4d08 Always open the cdrom drive in non-blocking mode in cdrom_id
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-17 16:09:03 -07:00
Kay Sievers f7a144a5be vol_id: fix sloppy error handling
vol_id segfaults if read() fails on broken devices reporting
the wrong size.

Thanks to Erhard Schultchen for the debugging.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-17 16:58:19 +02:00
Kay Sievers b5d88a0cfe Merge rsync://rsync.kernel.org/pub/scm/linux/hotplug/udev 2005-08-13 02:16:54 +02:00
Kay Sievers 853ccc433c fix more compiler warnings ...
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-13 00:18:44 +02:00
Greg Kroah-Hartman 903a36495f added the cdrom.h #defines directly into the cdrom_id.c file
This solves the problem with building the file against old kernel header
files.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-12 11:37:56 -07:00
Greg KH 5a64cea1e1 fix klibc build issue in cdrom_id.c
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11 14:38:33 -07:00
Greg KH 8ee99e3279 changed cdrom_id exports to be easier to understand and consistant with other _id programs.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11 14:04:24 -07:00
Greg KH 8f6919e639 Created cdrom_id program to make it easier to determine cdrom types
Based on the framework from ata_id by Kay.
Now we can drop the cdsymlinks.sh and .c files

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11 13:59:21 -07:00
Kay Sievers 27f877e60f allow logging of all output from executed tools
If USE_DEBUG=true and udev_log="debug", all output of the forked
programs to stdout and stderr is send to syslog.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-11 17:32:59 +02:00
Kay Sievers d47fd445bd trivial text cleanups
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09 22:11:44 +02:00
Kay Sievers a37610d0f8 remove example rules and put the dev.d stuff into the run_directory folder
The distro rules are the best example you can get and the use of
dev.d/ is no longer recommended.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09 20:11:26 +02:00
Kay Sievers 6214290df5 more distro rules updates
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-09 19:17:25 +02:00
Kay Sievers bebbc31b90 add firmware_helper to load firmware
From: Bill Nottingham <notting@redhat.com>

Changed reading of firmware blob to mmap and let firmware_helper
follow the setting of the log level with UDEV_LOG.
2005-08-09 19:00:37 +02:00
Greg Kroah-Hartman 97b7aa1f78 Added horrible (but fun) path_id script to extras.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-01 16:37:41 -07:00
Kay Sievers 70721db6d7 fix GGC signed pointer warnings and switch volume_id to stdint
Solaris uses volume_id now and they fiddled around with configure scripts
to map the linux kernel int types. Adding the types locally to volume_id
breaks the klibc build, so just switch to these ugly types and forget it. :)

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-01 01:33:36 +02:00
Kay Sievers e8d569b414 move code to its own files
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-22 12:35:58 -04:00
Hannes Reinecke 33aa91b1be usb_id: fix typo 2005-07-19 14:36:34 -04:00
Hannes Reinecke 46f01c6dc4 add ID_BUS to *_id programs 2005-07-19 11:18:19 -04:00
Hannes Reinecke bf375e3af6 create_floppy_devices: add tool to create floppy nodes based on sysfs info 2005-07-19 11:14:12 -04:00
Andre Masella 6a5aac78f4 volume_id: add OCFS (Oracle Cluster File System) support 2005-07-17 09:54:40 -04:00
Kay Sievers 422d5becc3 add padding to rules structure
Some architectures really want well alingned structures.
Thanks to Jim Gifford <maillist@jg555.com> for help finding it.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-17 09:40:29 -04:00
Greg KH 04b90b7e25 Really commit the udev_run_devd changes... 2005-07-14 15:24:59 -07:00
Greg KH 78e21e3ed4 Fixed udev_run_devd to run the /etc/dev.d/DEVNAME/ files too
Note, this assumes that you are putting your device nodes in /dev/, the
better thing to do is use the RUN= rule and not rely on this program at all.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-07-14 15:19:37 -07:00
Kay Sievers b0f57eb066 volume_id: remove s390 dasd handling, it is dasd_id now
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-13 12:01:53 +02:00
Hannes Reinecke 15e5209b8e dasd_id: add s390 disk-label prober
Signed-off-by: Hannes Reinecke <hare@suse.de>
2005-07-13 11:35:51 +02:00
Kay Sievers 5f84d7264d trivial fixes for *_id programs
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-13 11:23:21 +02:00
Kay Sievers e03bce6321 ata_id: check for empty serial number
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12 11:41:09 +02:00
Kay Sievers 4431072fb8 compile dasd only on s390
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-12 11:39:56 +02:00
Hannes Reinecke b4a2906bf1 fix usb_id and let scsi_id ignore "illegal request" 2005-07-08 03:29:19 +02:00
Kay Sievers 7618e112b4 add usb_id program to generate usb-storage device identifiers
Signed-off-by: Hannes Reinecke <hare@suse.de>
2005-07-04 17:02:25 +02:00
Kay Sievers aaff09a30a add ID_TYPE to the id probers
Export the type of device from ata_id and scsi_id, also strip
leading and trailing whitespace and substitute consecutive
whitespace with a single underline char.

From: Hannes Reinecke <hare@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-27 17:04:56 +02:00
Kay Sievers 34129109a1 add -x to scsi_id to export the queried values in env format
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-27 02:51:49 +02:00
Kay Sievers b8476286d6 store the imported device information in the udevdb
Any program can query with udevinfo for persistent device
attributes evaluated on device discovery now.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-26 18:55:24 +02:00
Kay Sievers 208f6aba21 rename udev_volume_id to vol_id and add --export option
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-26 01:54:47 +02:00
Kay Sievers 670e470543 add ata_id to read serial numbers from ATA drives
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-25 23:54:28 +02:00
Kay Sievers c07669bd66 udev: handle all events - not only class and block devices
Handle all events with rules. If udev is expected to handle hotplug.d/
the exernal helper must be called.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-05 15:55:29 +02:00
Kay Sievers c2401132bf volume_id: use udev-provided log-level
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-05 05:17:21 +02:00
Kay Sievers 6a522681e1 udev: move dev.d/ handling to external helper
Modern rules are expected to call notification and postprocessing with    
the RUN key. For compatibility the current behavior can be emulated
with an external helper.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-05 05:11:29 +02:00
Darren Salt d514329ee2 [PATCH] update cdsymlinks to latest version
diff -ur udev-057.orig/extras/cdsymlinks.c udev-057/extras/cdsymlinks.c
2005-05-20 12:59:17 -07:00
kay.sievers@vrfy.org 5160379804 [PATCH] udev_volume_id: fix endianess macros 2005-04-26 23:55:00 -07:00
kay.sievers@vrfy.org 92ebb398ed [PATCH] klibc: use klcc wrapper instead of our own Makefile 2005-04-26 23:53:53 -07:00
kay.sievers@vrfy.org 7d227c5f34 [PATCH] volume_id: version 43 2005-04-26 23:53:53 -07:00
hare@suse.de cc44094d63 [PATCH] volume_id: Fix label/uuid reading for reiserfs
Well, I just asked our resident reiserfs guru (thx mason :-).
Reiser v3.5 does not support labels nor uuids.
2005-04-26 23:53:18 -07:00
kay.sievers@vrfy.org afa3c553b1 [PATCH] volume_id: version 42 2005-04-26 23:53:17 -07:00
kay.sievers@vrfy.org 7c492da7f7 [PATCH] volume_id: version 41 2005-04-26 23:53:17 -07:00
tklauser@access.unizh.ch 9066c16ada [PATCH] The following patch fixes some warnings when compiling volume_id 2005-04-26 23:53:17 -07:00
tklauser@access.unizh.ch e296b1476e [PATCH] The following patch fixes a warning when compiling chassis_id 2005-04-26 23:53:17 -07:00
kay.sievers@vrfy.org 138068d690 [PATCH] fix ia64 compile 2005-04-26 23:51:00 -07:00
kay.sievers@vrfy.org 845d4751ac [PATCH] udev_volume_id: version 39 2005-04-26 23:51:00 -07:00
kay.sievers@vrfy.org 6c18b1fb87 [PATCH] rename LOG to USE_LOG in all places 2005-04-26 23:48:48 -07:00
kay.sievers@vrfy.org 30c6b4c9a2 [PATCH] udev_volume_id: volume_id v38 2005-04-26 23:48:48 -07:00
patmans@us.ibm.com 4e05e4238b [PATCH] update scsi_id to work with libsysfs changes
Update scsi_id to work with the libsysfs changes in udev: use
sysfs_get_classdev_attr and sysfs_get_device_attr in place of
sysfs_read_attribute_value.
2005-04-26 23:39:48 -07:00
tklauser@access.unizh.ch 8d1b4df219 [PATCH] udev_volume_id: add Reiser4 support 2005-04-26 23:36:13 -07:00
kay.sievers@vrfy.org e4d4a557e5 [PATCH] udev_volume_id: volume_id v35 2005-04-26 23:36:13 -07:00
patmans@us.ibm.com 07544a93d6 [PATCH] scsi_id changes for use with udev %N and %p
Changes to scsi_id to support the udev %N and %p substitutions:

- Update version from .7 to .8

- change TMP_DIR back to /tmp

- if DEVPATH is set assume hotplug_mode (use syslog for logging, and does
  not output some warnings)

- Always output a newline after the id is printed

- Allow command line options to override settings when hotplug_mode is set

- update man page

- update generator script to use the %N and %p substitutions.
2005-04-26 23:35:15 -07:00
kay.sievers@vrfy.org d384abd2bd [PATCH] udev_volume_id: fix typo 2005-04-26 23:34:04 -07:00
kay.sievers@vrfy.org 27753a3cf7 [PATCH] udev_volume_id: remove temporary node creation and parent handling
udev can create the temporary node for us now. (On bootup we don't
know where a writable filesystem is mounted). Also the parent handling
is not needed anymore, cause udev is able to pass us the node name
of the parent device.
2005-04-26 23:31:05 -07:00
kay.sievers@vrfy.org 866bb54704 [PATCH] udev_volume_id: remove __packed__ from dasd structure as it does not work 2005-04-26 23:31:02 -07:00
greg@kroah.com 3a030b511f [PATCH] fix example comment in ide-devfs.sh 2005-04-26 23:28:12 -07:00
kay.sievers@vrfy.org bce52be81e [PATCH] udev_volume_id: fix dasd disklabel reading with -l option 2005-04-26 23:27:03 -07:00
kay.sievers@vrfy.org 9d4791b66a [PATCH] udev_volume_id: volume_id version 034 2005-04-26 23:26:14 -07:00
md@Linux.IT 882b97455b [PATCH] raid-devfs.sh: devfs names for hardware RAID controllers 2005-04-26 23:24:20 -07:00
md@Linux.IT fd3eeb7502 [PATCH] scsi_id: when udevstart is started, /tmp is not writeable. 2005-04-26 23:24:20 -07:00
md@Linux.IT 0c50db890e [PATCH] cdsymlinks.sh: trivial fix, the variable is initialized to '', not 0 2005-04-26 23:24:20 -07:00
kay.sievers@vrfy.org d9cf0b0a7c [PATCH] udev_volume_id: rename probe_ibm into probe_dasd 2005-04-26 23:24:19 -07:00
kay.sievers@vrfy.org 7979e3d4b7 [PATCH] udev_volume_id: volume_id version 032 2005-04-26 23:24:19 -07:00
kay.sievers@vrfy.org 51df9ee496 [PATCH] Makefile: add some more warnings and prepare for clean gcc4 compile 2005-04-26 23:24:19 -07:00
kay.sievers@vrfy.org 1134a81b98 [PATCH] fix -Wsign-compare warnings 2005-04-26 23:24:19 -07:00
kay.sievers@vrfy.org 9172c95c77 [PATCH] chassis_id: clean compilation and fix bad function parameter passing
Adding prototypes for functions resulted in an error, cause:
  table_find_disk(disk_snum, &chassis_num, &slot_num);

is called but the function is defined as:
  int table_find_disk(char *serialnumber , int *host_num, int *chassis_num, int *slot_num)

which can obviously not work correctly.

Using popen() is not klibc compatible, so skip the compilation if
a klibc compile is requested.
2005-04-26 23:24:19 -07:00
kay.sievers@vrfy.org c033fd9f01 [PATCH] udev_volume_id: new version of volume_id
Every filesystem has its own subdirectory.
The IBM dasd label reading is included into volume_id.
2005-04-26 23:24:19 -07:00
cborntra@de.ibm.com 61b24e5e19 [PATCH] udev_volume_id: fix -d option
The -d option in udev_allows to go from a partition to the underlying disk
for s390 dasd labels. If the device is already the disk itself, finding the 
parent will fail, therefore -d on /sys/block/dasda/ for example gives no 
result at all.
2005-04-26 23:21:58 -07:00
kay.sievers@vrfy.org eb064000ca [PATCH] udev_volume_id: fix FAT label reading 2005-04-26 23:21:58 -07:00
kay.sievers@vrfy.org 240ce55179 [PATCH] udev_volume_id: version 27
Fix FAT label reading bug for very large volumes.
Recognize FAT label at Win98 formatted volumes.
Read iso9660 joliet descriptor for unicode labels.
Support uuid/label of swap partitions.
2005-04-26 23:21:58 -07:00
greg@kroah.com ce5c75b8e1 [PATCH] fix udev_volume_id build error.
bah, when will I remember to check the extras _before_ I do a release...
2005-04-26 23:17:47 -07:00
kay.sievers@vrfy.org c2fe814e30 [PATCH] udev_volume_id: links sysfs.a instead of all objects
cuts down the size from:
  dynamically linked: 48.030 -> 45.187
  statically linked:  149.177 ->  142.362
2005-04-26 23:13:47 -07:00
greg@kroah.com c93053663f [PATCH] fix udev_volume_id so it will now build properly. 2005-04-26 23:13:47 -07:00
Greg KH 5e7d9f4060 more merge fixups 2005-04-26 23:10:15 -07:00
Greg KH 97adaace4f more fixups 2005-04-26 22:54:32 -07:00
sschweizer@gmail.com 8a0dc204e9 [PATCH] Allow GROUP to have modifiers in it 2005-04-26 22:43:36 -07:00
kay.sievers@vrfy.org a5d00f9d37 [PATCH] Add support for highpoint ataraid to volume_id to suppress 2005-04-26 22:09:26 -07:00
kay.sievers@vrfy.org a9ce604122 [PATCH] Patches from Harald Hoyer <harald@redhat.com>. 2005-04-26 22:09:26 -07:00
kay.sievers@vrfy.org ff694eca17 [PATCH] fix debug in volume id / fix clashing global var name
Here we get the logging for udev_volume_id working if it is compiled
with DEBUG=true. Also fixed is a name clash with a global variable.
2005-04-26 22:06:44 -07:00
kay.sievers@vrfy.org 1b1ba93365 [PATCH] volume_id fix
I've been told that open() should not pass O_NONBLOCK.
2005-04-26 22:06:43 -07:00
kay.sievers@vrfy.org 7a947ce515 [PATCH] big cleanup of internal udev api
Here is the first patch to cleanup the internal processing of the
various stages of an udev event. It should not change any behavior,
but if your system depends on udev, please always test it before reboot :)

We pass only one generic structure around between add, remove,
namedev, db and dev_d handling and make all relevant data available
to all internal stages. All udev structures are renamed to "udev".

We replace the fake parameter by a flag in the udev structure.

We open the class device in the main binaries and not in udev_add, to
make it possible to use libsysfs for udevstart directory crawling.

The last sleep parameters are removed.
2005-04-26 22:02:46 -07:00
patmans@us.ibm.com b337e60790 [PATCH] update udev to scsi_id 0.7
Update udev's scsi_id to version 0.7, this fixes a bad bug in scsi_id on
64 bit systems.
2005-04-26 22:02:45 -07:00
greg@kroah.com 79db6912cf [PATCH] add very nice cdsymlinks scripts.
These are from Darren Salt <linux@youmustbejoking.demon.co.uk>
2005-04-26 22:02:45 -07:00
greg@kroah.com 29afcc5f11 [PATCH] add some helper scripts for dvb and input devices. 2005-04-26 22:02:45 -07:00
greg@kroah.com 396bb4c3d3 [PATCH] let the extras/ programs build "pretty" also 2005-04-26 22:02:45 -07:00
patmans@us.ibm.com 125930b454 [PATCH] pass SYSFS setting down for extras builds
Modify SYSFS to specify the full path, and pass it down for the extras
builds.

Change the scsi_id Makefile so it will work with and without udev.
2005-04-26 22:02:45 -07:00
greg@kroah.com c008fe93f5 [PATCH] fix up error in building extras and libsysfs 2005-04-26 21:58:15 -07:00
greg@kroah.com 71144b744a [PATCH] delete extras/multipath-tools as per the author's request
This is now a standalone package.
2005-04-26 21:37:03 -07:00
kay.sievers@vrfy.org 33eae955e2 [PATCH] update volume_id
Here is an update to the latest volume_id which fixes a few bugs with
FAT volumes.
2005-04-26 21:37:03 -07:00
harald@redhat.com ff213aecf6 [PATCH] cleanup PATCH for extras/chassis_id/Makefile
for "make install"
2005-04-26 21:37:02 -07:00
greg@kroah.com 186f7b2362 [PATCH] update comments in scsi-devfs.sh 2005-04-26 21:37:02 -07:00
patmans@us.ibm.com 01f950e2eb [PATCH] update udev to include scsi_id 0.6
Here's a patch updating udev's copy of scsi_id to version 0.6.
2005-04-26 21:37:02 -07:00
kay.sievers@vrfy.org 9e8a3a095d [PATCH] volume-id build fix and update
Let's try it another way:

We define BLKGETSIZE64 in udev-volume_id.c now, cause including <fs.h>
does also not work with klibc. This hopefully fixes your compile problem
too.

Also included is an update to udev_volume_id with the latest fixes for
volume_id. It adds a simple logging file to map the debug function, that
we can use exactly the same files in HAL and udev.
2005-04-26 21:37:01 -07:00
kay.sievers@vrfy.org c506c4087e [PATCH] update udev_volume_id
Here is an update for the volume_id callout to catch up to the latest
and greatest:

o It is able to skip the label reading of linux raid members, which are
  otherwise recognized as a normal filesystem.

o It reads FAT labels stored in the directory instead of the
  superblock (Windows only writes in the directory).

o The NTFS uuid is the right one now.

o It reads all the Apple HFS(+) formats with the labels.

o UFS volumes are recognized but no labels are extracted.

o We use CFLAGS+=-D_FILE_OFFSET_BITS=64 instead of lsee64() which may fix
  a bug mentioned on the klibc mailing list.

A lot of other new features are only used in HAL and not needed in this
simple callout. But if someone stumbles over it and want's to send a patch
for some exotic formats, we better keep it up to date :)
2005-04-26 21:37:00 -07:00
tao@kernel.org b9e3301c3b [PATCH] Minor POSIX-fixes for udev
The attached patch contains a few patches against udev, to remove
use of various XSI:isms and bash:isms, and to change two scripts form
/bin/bash to /bin/sh.  None of the bash-scripts in test/ uses any
bash-specific functions as far as I know, but I didn't touch them since
they aren't used runtime.

Rationale:
* Both of the /bin/bash-scripts are totally free from bashisms, hence they
  don't need to be /bin/bash; using /bin/sh instead helps (mainly)
  embedded-people

* local and source are bash:isms (well, they exist in several other
  shells as well, but they aren't part of POSIX or any of its extensions)

* -a in tests is an XSI-extension, not part of strict POSIX, and is
  easily replaced by &&
  | http://www.opengroup.org/onlinepubs/009695399/utilities/test.html

* Use of fgrep is deprecated in POSIX in favour of grep -F (though fgrep
  will remain in use for a long time...)
  | http://www.opengroup.org/onlinepubs/009695399/utilities/grep.html

The fgrep-change isn't really necessary, since fgrep can always be
implemented as a shell-script, but the rest of the changes would really
be appreciated.
2005-04-26 21:36:59 -07:00
trini@kernel.crashing.org a4f5eb034b [PATCH] clean up start_udev a bit
First, update extras/start_udev.  udevstart always internally set
UDEV_NO_SLEEP as well as setting the ACTION variable, so that only needs
to be done in the run_udev script case.

Signed-off-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
2005-04-26 21:36:59 -07:00
kay.sievers@vrfy.org b99f344fde [PATCH] update udev_volume_id
volume_id is now able to read NTFS labels. Not very exciting, but we
keep up to date with the version in HAL. Also __packed__ was needed for
the structs, cause the gcc 3.4 compiled version was no longer working
properly.
2005-04-26 21:36:21 -07:00
patmans@us.ibm.com 062db23d5e [PATCH] update udev scsi_id to scsi_id 0.5
This patch syncs the scsi_id in the udev tree to version 0.5.
2005-04-26 21:36:21 -07:00
atul.sabharwal@intel.com c5d046b6c7 [PATCH] Patch for chassis_id exras module 2005-04-26 21:36:21 -07:00
greg@kroah.com bd2598afb6 [PATCH] delete udev_selinux as it doesn't work properly and is the wrong way to do it... 2005-04-26 21:35:17 -07:00
greg@kroah.com d7a4f62d3d [PATCH] Deleted the udev_dbus extra as it didn't really work properly and HAL has a real solution now. 2005-04-26 21:35:17 -07:00
kay.sievers@vrfy.org cde5a756ce [PATCH] udev_volume_id update
Here is a update to extras/volume_id/*

o The device is now specified by the DEVPATH in the environment,
  it's no longer needed to pass the major/minor to the callout.

o leading spaces and slashes are now removed from the returned string
  and spaces are replaced by underscore, to not to confuse udev.

o Arnd Bergmann <arnd@arndb.de> provided the code to recognize s390
  dasd disk labels. The -d switch tries to read the main block device
  instead of the partition.
2005-04-26 21:35:17 -07:00
kay.sievers@vrfy.org 599b626127 [PATCH] udev callout for reading filesystem labels
On Fri, Apr 30, 2004 at 03:29:54PM -0700, Greg KH wrote:
> On Thu, Apr 29, 2004 at 11:04:46PM +0200, Kay Sievers wrote:
> > Hi,
> > here is a small udev toy, which enables udev to name partitions by
> > its filesystem label or uuid's.
> >
> > The following udev rule:
> >
> >   KERNEL="sd*", PROGRAM="/sbin/udev_volume_id -M%M -m%m -u", SYMLINK="%c"
> >
> > creates a symlink with the uuid read from the filesystem. If no label or
> > uuid is found the program exits with nonzero and the rule will fail.
> >
> > ext2, ext3, reiserfs, xfs, jfs, vfat, msdos volume labels are supported,
> > ntfs and swap partitions can be recognized.
> >
> > It's possible to compile with klibc and the static binary takes 13kb.
>
> Very nice, I was wondering who was going to use that library to make
> such a tool.  This is even better as we can use klibc for it.

Here is a update, which supports iso9660 and udf labels.
Not very useful in the udev case, but I've added it for hal,
so we just catch up with the latest version.
2005-04-26 21:35:17 -07:00
kay.sievers@vrfy.org 3611d5820c [PATCH] udev callout for reading filesystem labels
here is a small udev toy, which enables udev to name partitions by
its filesystem label or uuid's.

The following udev rule:

  KERNEL="sd*", PROGRAM="/sbin/udev_volume_id -M%M -m%m -u", SYMLINK="%c"

creates a symlink with the uuid read from the filesystem. If no label or
uuid is found the program exits with nonzero and the rule will fail.

ext2, ext3, reiserfs, xfs, jfs, vfat, msdos volume labels are supported,
ntfs and swap partitions can be recognized.

It's possible to compile with klibc and the static binary takes 13kb.
2005-04-26 21:35:17 -07:00
kay.sievers@vrfy.org b2983b9d4a [PATCH] udev_selinux changes
Here is the fix for extras/seliux/*
 o install the binary in /sbin/
 o add symlink to /etc/dev.d/ with suffix .dev
 o removed the undefined udev_log variable
 o fixed compiler warnings
2005-04-26 21:35:15 -07:00
md@Linux.IT af5b5178fa [PATCH] devfs.sh-ide-floppy 2005-04-26 21:35:15 -07:00
kay.sievers@vrfy.org eab52c2443 [PATCH] udev_dbus changes
On Sun, Apr 11, 2004 at 03:51:07AM +0200, Kay Sievers wrote:
> Here we change extras/dbus/* to
>   o install the binary in /etc/dev.d
>   o append .dev to the binary
>   o add David's copyright
>   o add the listener script to watch the sent dbus messages
>   o removed the undefined udev_log variable
>   o switch printf() to dbg()

Here we install the binary in /usr/sbin/ and symlink it to
/etc/dev.d/ with the .dev suffix.
2005-04-26 21:35:15 -07:00
sjoerd@spring.luon.net 4b06c852cb [PATCH] DEVNODE -> DEVNAME transition fixes
It seems that the transition from DEVNODE to DEVNAME wasn't done
  everywhere. This broke udev_dbus for me.

  Attached patch does the transition in the places it wasn't done yet.
2005-04-26 21:35:15 -07:00
atul.sabharwal@intel.com c1f8ea9562 [PATCH] Add README for chassis_id 2005-04-26 21:35:13 -07:00
greg@kroah.com 0bcdc8498c [PATCH] clean up chassis_id coding style. 2005-04-26 21:35:13 -07:00
atul.sabharwal@intel.com fa5acd760d [PATCH] Add chassis_id program to extras directory 2005-04-26 21:35:13 -07:00
md@Linux.IT c2818554ce [PATCH] small ide-devfs.sh fix
The file may not exist and errors would be spewed on the console.
2005-04-26 21:35:12 -07:00
greg@kroah.com 0384e43ad9 [PATCH] move udev_selinux into extras/selinux 2005-04-26 21:35:11 -07:00
greg@kroah.com 357f44a534 [PATCH] move udev_dbus to extras/dbus
Should build now, but might have linking problems.
2005-04-26 21:35:11 -07:00
rgooch@ras.ucalgary.ca c641a99c6f [PATCH] SCSI logical and physical names for udev
Hi, Greg. Appended is scsi-devfs.sh, a script for udev to implement
devfs-style names for SCSI hard discs, CD-ROM's and generic devices.
This has been tested with both hard discs and CD-ROM's. The SCSI
generic support should be OK for when there is sysfs/udev support for
SCSI generic devices. SCSI tapes are not yet implemented because I
don't have one to test with.

In addition, this script supports physical names, based on PCI bus
location, both longhand (/udev/bus/pci/...) and shorthand
(/udev/sd/pci/*).
2005-04-26 21:35:10 -07:00
olh@suse.de 2761f9b951 [PATCH] make spotless
klibc has a target make spotless, this patch makes it possible to clean
the whole udev tree and start from scratch.
2005-04-26 21:35:10 -07:00
greg@kroah.com a3b37a073d [PATCH] Added multipath-tools 0.1.1 release 2005-04-26 21:35:09 -07:00
greg@kroah.com 49f9acf384 [PATCH] deleted current extras/multipath directory 2005-04-26 21:35:09 -07:00
greg@kroah.com 27abdb46ff [PATCH] make start_udev use udevstart binary 2005-04-26 21:35:07 -07:00
christophe.varoqui@free.fr cbd2ea21e4 [PATCH] multipath update 2005-04-26 21:35:06 -07:00
md@Linux.IT b7b6562729 [PATCH] remove usage of expr in ide-devfs.sh
fix_expr: remove usage of expr in ide-devfs.sh, because it may be in
/usr/bin and not available at early boot time.
2005-04-26 21:35:06 -07:00