[Pkg-xen-devel] Bug#705490: Bug#705490: Uses deprecated RUN+="socket:"

Michael Biebl biebl at debian.org
Tue Apr 16 17:35:24 UTC 2013


Am 16.04.2013 18:55, schrieb Michael Biebl:
> Hi Ian,
> 
> Am 16.04.2013 12:04, schrieb Ian Campbell:
>> On Mon, 2013-04-15 at 18:22 +0200, Michael Biebl wrote:
>>> Please update your package accordingly. 
>>
>> So what is the appropriate transformation?
> 
> As said in the bug report, one should use
> udev_monitor_new_from_netlink() [1] nowadays to get a udev_monitor
> context and listen for udev events.
> 
> I haven't looked very closely, but the only place where
> /org/xen/xend/udev_event is used, is in
> tools/python/xen/xend/server/udevevent.py. I would start there.

I had a very brief look at udevevent.py (beware I'm not a python hacker)
It reads from the socket defined in xend.rules:
 unix.UnixDgramListener(UDEV_EVENT_PATH, UdevEventProtocol)
and then manually parses the events.

I would assume, the simplest way to address this is to use pyudev [1]
and rewrite the script to use pyudev.Monitor [2].

Hope that helps,
Michael


[1] http://pyudev.readthedocs.org/en/latest/
[2] http://pyudev.readthedocs.org/en/latest/guide.html#monitoring-devices
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20130416/62dfb586/attachment.pgp>


More information about the Pkg-xen-devel mailing list