diff for duplicates of <20051102003531.GA15854@us.ibm.com> diff --git a/a/1.txt b/N1/1.txt index 25a4623..21d7430 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -3,7 +3,7 @@ On Wed, Nov 02, 2005 at 01:05:31AM +0100, Kay Sievers wrote: > > If we could set and compare environment variables > -> Sure we can do that with ENV. '=' sets, '==' compares. +> Sure we can do that with ENV. '=' sets, '=' compares. > > > or compare SYMLINK, > @@ -12,7 +12,7 @@ On Wed, Nov 02, 2005 at 01:05:31AM +0100, Kay Sievers wrote: Yes, perhaps: -SYMLINK == "* disk/by-id/scsi-360a98000686f68656c6e7a416f4b6849 *" SYMLINK+="user/name" +SYMLINK = "* disk/by-id/scsi-360a98000686f68656c6e7a416f4b6849 *" SYMLINK+="user/name" I like the above better than using other env variables, it is easier to read. @@ -29,8 +29,8 @@ read. > > > > 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}" > > Hmm, why this indirection? Can't you just use ID_SERIAL and ID_BUS in > the second rule again? @@ -44,7 +44,7 @@ But it still would not match, per the issue below, right? > > Running with udev 069 on FC rawhide, with these rules: > > -> > SYMLINK=="*foo*" SYMLINK+="user/bar" +> > SYMLINK="*foo*" SYMLINK+="user/bar" > > SYMLINK lists can't be matched until now. @@ -55,10 +55,21 @@ You mean it is possible with current udev? > > The value does not get expanded at the time you assign it, so the later compare > will look like: -> 'somevalue' == '$env{VAL1}' +> 'somevalue' = '$env{VAL1}' > > which does not match. Right ... so should udev be changed to avoid that problem? -- 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 81361be..9542764 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -2,7 +2,7 @@ "ref\020051102000531.GB17207@vrfy.org\0" "From\0Patrick Mansfield <patmans@us.ibm.com>\0" "Subject\0Re: udev user specified or human readable /dev names\0" - "Date\0Tue, 1 Nov 2005 16:35:31 -0800\0" + "Date\0Wed, 02 Nov 2005 00:35:31 +0000\0" "To\0Kay Sievers <kay.sievers@vrfy.org>\0" "Cc\0linux-hotplug-devel@lists.sourceforge.net" " dm-devel@redhat.com\0" @@ -13,7 +13,7 @@ "\n" "> > If we could set and compare environment variables\n" "> \n" - "> Sure we can do that with ENV. '=' sets, '==' compares.\n" + "> Sure we can do that with ENV. '=' sets, '=' compares.\n" "> \n" "> > or compare SYMLINK,\n" "> \n" @@ -22,7 +22,7 @@ "\n" "Yes, perhaps:\n" "\n" - "SYMLINK == \"* disk/by-id/scsi-360a98000686f68656c6e7a416f4b6849 *\" SYMLINK+=\"user/name\"\n" + "SYMLINK = \"* disk/by-id/scsi-360a98000686f68656c6e7a416f4b6849 *\" SYMLINK+=\"user/name\"\n" "\n" "I like the above better than using other env variables, it is easier to\n" "read.\n" @@ -39,8 +39,8 @@ "> > \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" "> Hmm, why this indirection? Can't you just use ID_SERIAL and ID_BUS in\n" "> the second rule again?\n" @@ -54,7 +54,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" "> SYMLINK lists can't be matched until now.\n" "\n" @@ -65,12 +65,23 @@ "> \n" "> The value does not get expanded at the time you assign it, so the later compare\n" "> will look like:\n" - "> 'somevalue' == '$env{VAL1}'\n" + "> 'somevalue' = '$env{VAL1}'\n" "> \n" "> which does not match.\n" "\n" "Right ... so should udev be changed to avoid that problem?\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 -0ccc86e7090bbc2182f70e791c6146a76e0715c9daec2929d188d7d479f212b5 +e48e35fe6410b47f54648adaa61b96ddcaa30e603140b30bd93d3dfcbe87f3d0
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.