From 69aa6dfb7081de376769cf712d1a8832f4346516 Mon Sep 17 00:00:00 2001 From: "kay.sievers@vrfy.org" Date: Thu, 10 Feb 2005 09:03:55 +0100 Subject: [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. --- udev.8.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'udev.8.in') diff --git a/udev.8.in b/udev.8.in index 51c55bc5a6..3fb4bdb8da 100644 --- a/udev.8.in +++ b/udev.8.in @@ -218,6 +218,9 @@ all remaining parts of the result string are substituted: The name of a created temporary device node to provide access to the device from a external program. .TP +.B %P +The node name of the parent device. +.TP .BI %s{ filename } The content of a sysfs attribute. .TP -- cgit v1.2.3-54-g00ecf