chiark / gitweb /
[PATCH] add %P modifier to query the node name of the parent device
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Thu, 10 Feb 2005 08:03:55 +0000 (09:03 +0100)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 06:31:03 +0000 (23:31 -0700)
commit69aa6dfb7081de376769cf712d1a8832f4346516
treef16b036de774445577556e4005e48da3312bb464
parent866bb54704e9d955318e0dd6089acfb67d36bfd2
[PATCH] add %P modifier to query the node name of the parent device

Events for partition devies may want to read the main block device
name to compose it's own name or read a disklabel from the main device.

SUBSYSTEM="block", KERNEL="*[1-9]", NAME="%P-p%n"
will append the partition number to the name of the main block device.
namedev.c
test/udev-test.pl
udev.8.in