Project

General

Profile

Actions

Bug #8253

closed

zdb -l doesn't show L2, L3 labels

Added by Alexander Stetsenko over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
zfs - Zettabyte File System
Start date:
2017-05-19
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
zfs, zdb
Gerrit CR:

Description

zdb shows labels L0, L1, but L2, L3 empty.

The bug was introduced by this changes:
https://github.com/illumos/illumos-gate/commit/64723e361134b2a2c45341334174f9d34002f8d0

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

The fix:
Moving open64 call above stat64 (as it was before the change) fixes the issue.


Related issues

Is duplicate of illumos gate - Bug #8108: zdb -l fails to read labels 2 and 3ClosedYuri Pankov2017-04-25

Actions
Actions

Also available in: Atom PDF