OSDN Git Service

If we can't parse part of the device link, skip it and set DEV_ABBREV_ONLY
authorPeter Jones <pjones@redhat.com>
Wed, 20 Jun 2018 21:00:24 +0000 (17:00 -0400)
committerPeter Jones <pjones@redhat.com>
Wed, 20 Jun 2018 21:23:22 +0000 (17:23 -0400)
commitbc215d06720b346ba0d888a6149cf90f544a90ad
treef3ca9b4296df3444b63ca2a810d9d133f22320eb
parentd8637ea2b540fc9d16f1d1c1312e49a24082eefe
If we can't parse part of the device link, skip it and set DEV_ABBREV_ONLY

If we can't parse some part of the device symlink, we can't write a full
device path, but we can write an abbreviated HD() or File() path.  So if
we've exausted all possibilities, skip to the next node, set
DEV_ABBREV_ONLY in the device's flags, and try parsing again.  Then when
creator.c checks if that flag conflicts, it'll throw an error if it
does.

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