OSDN Git Service

libefiboot: figure out nvme device paths better.
authorPeter Jones <pjones@redhat.com>
Wed, 18 Nov 2015 22:33:34 +0000 (17:33 -0500)
committerPeter Jones <pjones@redhat.com>
Wed, 18 Nov 2015 22:33:34 +0000 (17:33 -0500)
commit3f5c2df68a098810b5bf1cbaed4c31c59c14bf3f
treefe4a1d5a3ae59bd6b79413cce52a8c190daee366
parent7e8a669450b4093493644baeb029cc2ed35752e2
libefiboot: figure out nvme device paths better.

Figure out that an nvme device is the nvme device and make the path to a
partition correctly.

Something is also wrong on the failure path there - we should fail with
an error if we legit can't figure out a device path and never get valid
sizes etc., not write a bogus HD() paths filled with zeros.

Signed-off-by: Peter Jones <pjones@redhat.com>
src/linux.c