mirror_zfs/tests/zfs-tests
Sean Eric Fagan f109c7bb98
Add the --file-layout (-f) option to zdb(8)
Displays the physical raidz block layout for a given file.
This leverages the internal vdev_raidz_map_alloc() function to find
the map of how the block data is laid out across the child disks.

The column entry for each row looks like:
+------------+
|  D2     43 |
|     6020da |
+------------+
representing here the logical data column 2 that is 43 sectors high
starting at sector 0x6020da.

With -H, the output is a list of disks, LBAs, and block counts,
given in 512 byte block values.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: sean.fagan@klarasystems.com
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Don Brady <don.brady@klarasystems.com>
Co-authored-by: Sean Fagan <sean.fagan@klarasystems.com>
Closes #18264
2026-03-12 14:41:23 -07:00
..
callbacks CI: Add Alpine Linux 3.23 runner to the pipeline (#18087) 2025-12-30 09:29:48 -08:00
cmd Move range_tree, btree, highbit64 to common code 2026-02-22 11:43:51 -08:00
include draid: fix data corruption after disk clear 2026-03-11 14:54:20 -07:00
tests Add the --file-layout (-f) option to zdb(8) 2026-03-12 14:41:23 -07:00
.gitignore autoconf: use include directives instead of recursing down cmd 2022-05-10 10:18:38 -07:00
Makefile.am build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00