summaryrefslogtreecommitdiff
path: root/udevstart.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-04-30 23:26:33 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:17 -0700
commit3611d5820c0fc0863d15c04884b05c9e04492f45 (patch)
tree594698488dc499c4ba88afa07087d7c03efa93de /udevstart.c
parente13fa59953d64e478025fd1200bb5fd0baf671b2 (diff)
[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.
Diffstat (limited to 'udevstart.c')
0 files changed, 0 insertions, 0 deletions