zfs/tests/zfs-tests/tests
George Amanakis 8af1104f83
Store the L2ARC device ashift in the vdev label
If this is not done, and the pool has an ashift other than the default
(at the moment 9) then the following happens:

1) vdev_alloc() assigns the ashift of the pool to L2ARC device, but
   upon export it is not stored anywhere
2) at the first import, vdev_open() sees an vdev_ashift() of 0 and
   assigns the logical_ashift, which is 9
3) reading the contents of L2ARC, including the header fails
4) L2ARC buffers are not restored in ARC.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes #14313 
Closes #14963
2023-06-14 08:01:17 -07:00
..
functional Store the L2ARC device ashift in the vdev label 2023-06-14 08:01:17 -07:00
perf More adaptive ARC eviction 2023-03-08 11:17:23 -08:00
Makefile.am zdb: add -B option to generate backup stream 2023-06-05 11:54:42 -07:00