Reviewed by: George Wilson <george.wil...@delphix.com>
Reviewed by: Prashanth Sreenivasa <p...@delphix.com>

These changes were added to help debug issue #9187.

Essentially, in the original bug, vdev_validate() seems to fails in
vdev_label_read_config() and prints "failed reading config". This could
happen because either:
1. The labels are actually corrupt and zio_wait() fails for all of them
2. The labels were discarded because they didn't pass the txg check.

Beyond 9187, having debug info when case 2 happens could be useful in
other scenarios, such as zpool import.

Upstream bug: DLPX-47360
You can view, comment on, or merge this pull request online at:

  https://github.com/openzfs/openzfs/pull/565

-- Commit Summary --

  * 9189 Add debug to vdev_label_read_config when txg check fails

-- File Changes --

    M usr/src/uts/common/fs/zfs/vdev.c (3)
    M usr/src/uts/common/fs/zfs/vdev_label.c (12)

-- Patch Links --

https://github.com/openzfs/openzfs/pull/565.patch
https://github.com/openzfs/openzfs/pull/565.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openzfs/openzfs/pull/565

------------------------------------------
openzfs-developer
Archives: 
https://openzfs.topicbox.com/groups/developer/discussions/Te94f00f79c207fc1-M78bcd916974974d300aaf15d
Powered by Topicbox: https://topicbox.com

Reply via email to