1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 08:26:52 +03:00
systemd/extras
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
..
chassis_id [PATCH] Add README for chassis_id 2005-04-26 21:35:13 -07:00
dbus [PATCH] udev_selinux changes 2005-04-26 21:35:15 -07:00
multipath-tools [PATCH] make spotless 2005-04-26 21:35:10 -07:00
scsi_id [PATCH] make spotless 2005-04-26 21:35:10 -07:00
selinux [PATCH] udev_selinux changes 2005-04-26 21:35:15 -07:00
volume_id [PATCH] udev callout for reading filesystem labels 2005-04-26 21:35:17 -07:00
ide-devfs.sh [PATCH] devfs.sh-ide-floppy 2005-04-26 21:35:15 -07:00
name_cdrom.pl [PATCH] udev - switch callout part selector to {attribute} 2005-04-26 21:32:28 -07:00
scsi-devfs.sh [PATCH] SCSI logical and physical names for udev 2005-04-26 21:35:10 -07:00
start_udev [PATCH] make start_udev use udevstart binary 2005-04-26 21:35:07 -07:00