Report ashift of L2ARC devices in zdb
commit608741d062fe4b92c8018fff96b24a9629c08bcb
authorGeorge Amanakis <gamanakis@gmail.com>
Mon, 2 Oct 2023 23:57:09 +0000 (3 01:57 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 3 Oct 2023 16:06:07 +0000 (3 09:06 -0700)
treea5c4e1887fe81055be981c5108b395013008247b
parent3079bf2e6c0733b9bccac573324871f49dd6d503
Report ashift of L2ARC devices in zdb

Commit 8af1104f does not actually store the ashift of cache devices in
their label. However, in order to facilitate reporting the ashift
through zdb, we enable this in the present commit. We also document
how the retrieval of the ashift is done.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes #15331
cmd/zdb/zdb.c
module/zfs/vdev_label.c