]> git.neil.brown.name Git - mdadm.git/commit
Detail: fix --detail --export for uuid_zero
authorKinga Stefaniuk <kinga.stefaniuk@intel.com>
Tue, 23 Jul 2024 13:38:41 +0000 (15:38 +0200)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Wed, 24 Jul 2024 10:10:22 +0000 (12:10 +0200)
commit5be749ce416852e7acbb2415be380be358859612
tree52041859d1edc4918620df6af88213d85c94e994
parentea9f178e1f8b2bba06b3b987ac5bb418abfde3f4
Detail: fix --detail --export for uuid_zero

Mentioned commit (see Fixes) causes that devices with UUID
equal to uuid_zero was not recognized properly. For few devices
the first one was taken always, and the same information was
printed. It caused regression, when few containers were created,
symlinks were generated only for the first one.

Add checking if uuid is uuid_zero and, if yes, use devname to
differentiate devices.

Fixes: 60c19530dd7c ("Detail: remove duplicated code")
Signed-off-by: Kinga Stefaniuk <kinga.stefaniuk@intel.com>
Detail.c