diff for duplicates of <20051101225357.GA13215@us.ibm.com> diff --git a/a/1.txt b/N1/1.txt index 8c628e6..3d48f2c 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -22,13 +22,13 @@ somehow doubt the change is that simple. Then, we could have rules like: -KERNEL=="sd*[!0-9]|sr*|dasd*[!0-9]", ENV{ID_SERIAL}=="?*", ENV{ID_FULL_PATH}="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}" -ENV{ID_FULL_PATH}=="?*", SYMLINK+="$env{ID_FULL_PATH}" +KERNEL="sd*[!0-9]|sr*|dasd*[!0-9]", ENV{ID_SERIAL}="?*", ENV{ID_FULL_PATH}="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}" +ENV{ID_FULL_PATH}="?*", SYMLINK+="$env{ID_FULL_PATH}" And for each device that we want to give a user specified name, use (would also need partition specific rules): -ENV{ID_FULL_PATH}=="disk/by-id/scsi-360a98000686f68656c6e7a416f4b6849" SYMLINK+="media-files" +ENV{ID_FULL_PATH}="disk/by-id/scsi-360a98000686f68656c6e7a416f4b6849" SYMLINK+="media-files" And similar for the other disk/by-* methods. @@ -38,7 +38,7 @@ Is my rule just wrong, or is there a better method? Running with udev 069 on FC rawhide, with these rules: -SYMLINK=="*foo*" SYMLINK+="user/bar" +SYMLINK="*foo*" SYMLINK+="user/bar" KERNEL="sdm" ENV{VAL1}="somevalue" KERNEL="sdm" ENV{VAL2}="$env{VAL1}" @@ -46,8 +46,8 @@ KERNEL="sdm" ENV{VAL2}="$env{VAL1}" KERNEL="sdm" SYMLINK+="user/show-val1-$env{VAL1}" KERNEL="sdm" SYMLINK+="user/show-val2-$env{VAL2}" -ENV{VAL1}=="somevalue" SYMLINK+="user/val1" -ENV{VAL2}=="somevalue" SYMLINK+="user/val2" +ENV{VAL1}="somevalue" SYMLINK+="user/val1" +ENV{VAL2}="somevalue" SYMLINK+="user/val2" Do not work as might be expected: since the env values are not expanded, the last rule never matches, and user/val2 link is never created. The @@ -61,3 +61,14 @@ lrwxrwxrwx 1 root root 6 Nov 1 14:18 show-val2-somevalue -> ../sdm lrwxrwxrwx 1 root root 6 Nov 1 14:18 val1 -> ../sdm -- Patrick Mansfield + + +------------------------------------------------------- +SF.Net email is sponsored by: +Tame your development challenges with Apache's Geronimo App Server. Download +it for free - -and be entered to win a 42" plasma tv or your very own +Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php +_______________________________________________ +Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net +Linux-hotplug-devel@lists.sourceforge.net +https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel diff --git a/a/content_digest b/N1/content_digest index 66a7a0d..13e1e46 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "From\0Patrick Mansfield <patmans@us.ibm.com>\0" "Subject\0udev user specified or human readable /dev names\0" - "Date\0Tue, 1 Nov 2005 14:53:57 -0800\0" + "Date\0Tue, 01 Nov 2005 22:53:57 +0000\0" "To\0linux-hotplug-devel@lists.sourceforge.net" " dm-devel@redhat.com\0" "\00:1\0" @@ -29,13 +29,13 @@ "\n" "Then, we could have rules like:\n" "\n" - "KERNEL==\"sd*[!0-9]|sr*|dasd*[!0-9]\", ENV{ID_SERIAL}==\"?*\", ENV{ID_FULL_PATH}=\"disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}\"\n" - "ENV{ID_FULL_PATH}==\"?*\", SYMLINK+=\"$env{ID_FULL_PATH}\"\n" + "KERNEL=\"sd*[!0-9]|sr*|dasd*[!0-9]\", ENV{ID_SERIAL}=\"?*\", ENV{ID_FULL_PATH}=\"disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}\"\n" + "ENV{ID_FULL_PATH}=\"?*\", SYMLINK+=\"$env{ID_FULL_PATH}\"\n" "\n" "And for each device that we want to give a user specified name, use (would\n" "also need partition specific rules):\n" "\n" - "ENV{ID_FULL_PATH}==\"disk/by-id/scsi-360a98000686f68656c6e7a416f4b6849\" SYMLINK+=\"media-files\"\n" + "ENV{ID_FULL_PATH}=\"disk/by-id/scsi-360a98000686f68656c6e7a416f4b6849\" SYMLINK+=\"media-files\"\n" "\n" "And similar for the other disk/by-* methods.\n" "\n" @@ -45,7 +45,7 @@ "\n" "Running with udev 069 on FC rawhide, with these rules:\n" "\n" - "SYMLINK==\"*foo*\" SYMLINK+=\"user/bar\"\n" + "SYMLINK=\"*foo*\" SYMLINK+=\"user/bar\"\n" "\n" "KERNEL=\"sdm\" ENV{VAL1}=\"somevalue\"\n" "KERNEL=\"sdm\" ENV{VAL2}=\"$env{VAL1}\"\n" @@ -53,8 +53,8 @@ "KERNEL=\"sdm\" SYMLINK+=\"user/show-val1-$env{VAL1}\"\n" "KERNEL=\"sdm\" SYMLINK+=\"user/show-val2-$env{VAL2}\"\n" "\n" - "ENV{VAL1}==\"somevalue\" SYMLINK+=\"user/val1\"\n" - "ENV{VAL2}==\"somevalue\" SYMLINK+=\"user/val2\"\n" + "ENV{VAL1}=\"somevalue\" SYMLINK+=\"user/val1\"\n" + "ENV{VAL2}=\"somevalue\" SYMLINK+=\"user/val2\"\n" "\n" "Do not work as might be expected: since the env values are not expanded,\n" "the last rule never matches, and user/val2 link is never created. The\n" @@ -67,6 +67,17 @@ "lrwxrwxrwx 1 root root 6 Nov 1 14:18 show-val2-somevalue -> ../sdm\n" "lrwxrwxrwx 1 root root 6 Nov 1 14:18 val1 -> ../sdm\n" "\n" - -- Patrick Mansfield + "-- Patrick Mansfield\n" + "\n" + "\n" + "-------------------------------------------------------\n" + "SF.Net email is sponsored by:\n" + "Tame your development challenges with Apache's Geronimo App Server. Download\n" + "it for free - -and be entered to win a 42\" plasma tv or your very own\n" + "Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php\n" + "_______________________________________________\n" + "Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net\n" + "Linux-hotplug-devel@lists.sourceforge.net\n" + https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel -c0be4a9613c63595ff09db2f7c61d746f27c7e19abfc14448ae63b764f5349ec +2cd437ef5215ba4afe4303247c2e69ed11923247ce9bf14fd915607b45a090df
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.