forked from martinpitt/umockdev
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include udev properties in emulated netlink messages
Current systemd by and large does not read the /uevent file any more, but entirely relies on udevd sending the properties in the udev netlink events. Pass the properties to uevent_sender_send(), massage them from a newline separated (as in our uevent file) to a nul separated (as expected by the udev netlink message) array. In Testbed.uevent(), read the current properties from the /uevent file. This is all rather hackish right now and cries for a more thorough rewrite. But this is a relatively unintrusive and quick bandaid which helps users for the time being. Test this both with the libudev and with the gudev (through Python) APIs. Fixes martinpitt#164
- Loading branch information
1 parent
14875e8
commit b781cf6
Showing
6 changed files
with
40 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters