path: store the udev device instead of just the devnode
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 20 Nov 2014 03:50:57 +0000 (13:50 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 25 Nov 2014 06:33:01 +0000 (16:33 +1000)
commit429d206bea8196b21bc4cf69f957c47e58265983
treed5a01e8758df0a6ad1d552ce1089e1413bce472f
parent5f703f48b07dcdc1a5457f9153bd74836e880a2e
path: store the udev device instead of just the devnode

Long-term plan to use more of udev_device here is to better protect us against
re-opening a different device that happens to have the same devnode.

This now also prints an error message for invalid devices, the log tests are
adjusted.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
src/path.c
src/path.h
test/log.c