diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-04-30 23:26:33 -0700 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:35:17 -0700 |
commit | 3611d5820c0fc0863d15c04884b05c9e04492f45 (patch) | |
tree | 594698488dc499c4ba88afa07087d7c03efa93de /namedev.c | |
parent | e13fa59953d64e478025fd1200bb5fd0baf671b2 (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 'namedev.c')
0 files changed, 0 insertions, 0 deletions