zfs/tests/zfs-tests/tests/functional/l2arc
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
..
cleanup.ksh Add L2ARC arcstats for MFU/MRU buffers and buffer content type 2020-09-14 10:10:44 -07:00
l2arc.cfg Non-l2arc pool reads shouldn't be l2arc misses 2020-10-20 11:39:52 -07:00
l2arc_arcstats_pos.ksh tests: don't fail if no fio or python3.sysctl 2022-04-01 17:55:45 -07:00
l2arc_l2miss_pos.ksh tests: don't fail if no fio or python3.sysctl 2022-04-01 17:55:45 -07:00
l2arc_mfuonly_pos.ksh arc_read()/arc_access() refactoring and cleanup 2022-12-22 12:10:24 -08:00
persist_l2arc_001_pos.ksh Store the L2ARC device ashift in the vdev label 2023-06-14 08:01:17 -07:00
persist_l2arc_002_pos.ksh tests: review every awk(1) invocation 2022-04-01 17:57:55 -07:00
persist_l2arc_003_neg.ksh tests: don't fail if no fio or python3.sysctl 2022-04-01 17:55:45 -07:00
persist_l2arc_004_pos.ksh tests: review every awk(1) invocation 2022-04-01 17:57:55 -07:00
persist_l2arc_005_pos.ksh tests: review every awk(1) invocation 2022-04-01 17:57:55 -07:00
setup.ksh Non-l2arc pool reads shouldn't be l2arc misses 2020-10-20 11:39:52 -07:00