zdb -l doesn't show L2, L3 labels
zdb shows labels L0, L1, but L2, L3 empty.
The bug was introduced by this changes:
The reason is open64 call was moved bellow stat64 one, as result stat64 returns zero in st_size.
Because of 0 size vdev_label_offset call returns invalid value and zdb failed to read labels L2, L3
Moving open64 call above stat64 (as it was before the change) fixes the issue.
Updated by Electric Monk over 4 years ago
- Status changed from New to Closed
commit 22c8b9583d07895c16549075a53668d7bc988cf3 Author: Yuri Pankov <email@example.com> Date: 2017-06-08T01:57:55.000Z 8108 zdb -l fails to read labels 2 and 3 Reviewed by: Matthew Ahrens <firstname.lastname@example.org> Reviewed by: Toomas Soome <email@example.com> Reviewed by: Igor Kozhukhov <firstname.lastname@example.org> Reviewed by: Andrew Stormont <email@example.com> Approved by: Robert Mustacchi <firstname.lastname@example.org>