From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] Update writing udev rules documentation
Date: Tue, 06 Jun 2006 16:19:36 +0000 [thread overview]
Message-ID: <1149610776.8120.8.camel@pim.off.vrfy.org> (raw)
In-Reply-To: <4481B0C5.80301@gentoo.org>
On Sun, 2006-06-04 at 12:57 +0200, Remco wrote:
> > The patch isn't very readable, if anyone wants to review the changes I
> > suggest you just look at the online version as almost all of it has been
> > rewritten:
> > http://www.reactivated.net/writing_udev_rules.html
> >
> > Comments appreciated.
> >
>
> Under 'About this document'
>
> I don't think hotplug is a requirement nowadays.
Right, almost no recent distro release uses it.
> Under 'Built-in persistent naming schemes'
>
> I'm not sure this is true but
> '/dev/disk/by-id/usb-Prolific_Technology_Inc._USB_Mass_Storage_Device-part1'
> sounds semi-persistent to me. Imagine you've got two of these memory
> sticks, what names do they get, and how can they be differentiated ? Since I
> don't see a unique id, and unless udev has some trick up it's sleeve, I
> suppose the second device detected will either overwrite the link created
> by the first, or it won't create a link at all.
Sure, by-id is a device property and if you have two identical devices
without any unique property (serial number) the last one discovered
overwrites the link. That's intentional and you better use the
filesystem properties like label or uuid in such case.
> Under 'Putting your rules into action':
>
> Maybe it's time to replace udevstart with udevtrigger ? Or at least mention
> the udevtrigger/udevsettle combo.
Udevstart is not installed by default and will be removed some day. I
would not even mention it.
> I don't know if it's worthwhile mentioning that if a rule gets changed and
> udevtrigger is run, the new device node / symlinks will be created
> alongside the older existing one(s). Anything created by the old rules will
> stay in place. The old stuff either needs to be removed manually or it will
> disappear when the /dev tree is built from scratch. (probably only after a
> reboot)
No, symlinks are removed if udevtrigger is run a second time for the
same device.
>
> Under 'Logging'
>
> AFAICT udev_log is used to set the logging severity. Normally setting it to
> 'err' is probably recommended, 'info' is useful for debugging and will dump
> a lot of information to syslog. If I remember correctly, for this to work,
> some option needs to be set to 'yes' during the build. (like 'make
> USE_LOG=yes' or something similar)
No, that's the default.
Kay
_______________________________________________
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
next prev parent reply other threads:[~2006-06-06 16:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-03 15:54 [PATCH] Update writing udev rules documentation Daniel Drake
2006-06-03 16:09 ` Andrey Borzenkov
2006-06-03 16:40 ` Daniel Drake
2006-06-03 23:38 ` Nick
2006-06-04 10:57 ` Remco
2006-06-04 16:24 ` Remco
2006-06-05 1:15 ` MUNEDA Takahiro
2006-06-06 12:24 ` Bryan Kadzban
2006-06-06 16:19 ` Kay Sievers [this message]
2006-06-09 21:52 ` Daniel Drake
2006-06-09 21:58 ` Daniel Drake
2006-06-09 22:34 ` Kay Sievers
2006-07-10 1:37 ` sean
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1149610776.8120.8.camel@pim.off.vrfy.org \
--to=kay.sievers@vrfy.org \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).