X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=extras%2Fpath_id%2Fpath_id.8;h=9dc59659799fe060d983b2555edf3d43ce92b315;hp=e55914de31a48056f6cacc3c0aecde20af27341a;hb=1340a9e9ec72bde2eac873167920739883ada650;hpb=8127859217bcc4db6f42f8d549f157df93a44557 diff --git a/extras/path_id/path_id.8 b/extras/path_id/path_id.8 index e55914de3..9dc596597 100644 --- a/extras/path_id/path_id.8 +++ b/extras/path_id/path_id.8 @@ -1,25 +1,14 @@ .TH PATH_ID 8 "April 2007" "" "Linux Administrator's Manual" .SH NAME -path_id \- udev callout to provide the shortest possible unique hardware path -to a device for the Linux Persistent Device Naming scheme +path_id \- udev callout to create a device path based unique name +for a device to implement the Linux Persistent Device Naming scheme .SH SYNOPSIS -DEVPATH=; path_id - path_id .SH "DESCRIPTION" .B path_id -is normally called from a udev rule, to provide udev a unique hardware path for -a device. Udev can use this information to create symlinks in /dev/ to the real -device node. -.SH EXAMPLES -For all block devices on a system: - -.nf -for i in `find /sys/class/block` -do - DEVPATH="`echo $i | sed -e 's@^/sys\|/dev@@g'`"; path_id -done -.fi +is normally called from a udev rule, to create a unique name, based on +the device properties along the chain of parent devices. Udev uses this +information to create a persistent symlink to the real device node. .SH SEE ALSO .BR udev (7) .SH AUTHORS