Abort udev_enumerate_new if udev obj is null

https://bugs.freedesktop.org/show_bug.cgi?id=58289
systemd commit e68893075083a7461b1572233d23fdb23541d630

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
save a line of code

This mainly just helps keep diff's between eudev and systemd a little more clean, but it
does drop one line of duplicate code.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Fix missing endian wrappers

https://bugs.freedesktop.org/show_bug.cgi?id=58067
systemd commit f4443fa5976eca51661947dd4df60847213f27fa

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Honor DEVUID, DEVGID in addition to DEVMODE

New behaviour in udev-197
systemd commit 1edefa4f1d7bae6cc19aa4a97238400c5a04f7a4
Author: Kay Sievers <kay@vrfy.org>

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Port new net_id capabilities from systemd-udev-197

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Handle scsi Hyper-V devices properly

Hyper-V has an abstract bus, which gets renumbered on guest
startup. So instead of the bus numbers we should be using
the device GUIDs, which can be retrieved from the 'device_id'
sysfs attribute.

systemd commit a24d03b8ee2ca62cd1273e27cf4e79ddcc0fbb1c
Author: Hannes Reinecke <hare@suse.de>

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Add missing ':' to getopt_long 'e'

Parameter -e is set without additional argument in getopt
and this leads to segfault when calling 'udevd -e'.

systemd commit 5bbbe461fd4d133eac49f41210e2fd4846f577d8
Author: Lukas Nykryn <lnykryn@redhat.com>

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Cleanup of spacing to help with diffs

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Set device node permissions only at "add" events

New behavioural change -- has potential to fix bugs..?

systemd commit 48a849ee17fb25e0001bfcc0f28a4aa633d016a1
Author: Kay Sievers <kay@vrfy.org>

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Make blkid optional

Embedded systems may not want to include util-linux when they do
not intend to use blkid functionality

Modified from original author's commit to not install
60-persistent-storage.rules if blkid is disabled

systemd commit f553b3b1074151200187df916427a1468186435e
Original author: Anders Olofsson <Anders.Olofsson@axis.com>

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>