zfs/tests/zfs-tests/tests/functional
George Amanakis f28cd347c4 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-26 13:59:36 -07:00
..
acl egrep -> grep -E 2023-01-19 12:50:25 -08:00
alloc_class Refine special_small_blocks property validation 2023-05-27 18:23:33 -07:00
arc Make dbufstat work on FreeBSD 2020-10-08 09:40:23 -07:00
atime Replace ZoL with OpenZFS where applicable 2021-05-10 12:16:46 -07:00
bootfs ZTS: Standardize use of destroy_dataset in cleanup 2021-11-02 09:51:32 -07:00
btree ZTS: Fix ksh path in btree tests 2020-01-15 16:23:29 -08:00
cache ZTS: Fix and change testcase cache_010_neg 2020-04-13 10:50:41 -07:00
cachefile Fix typos in tests/ 2019-09-02 18:14:53 -07:00
casenorm ZTS: Standardize use of destroy_dataset in cleanup 2021-11-02 09:51:32 -07:00
channel_program ZTS: Standardize use of destroy_dataset in cleanup 2021-11-02 09:51:32 -07:00
chattr Update ZTS to work on FreeBSD 2019-12-18 12:29:43 -08:00
checksum ZTS: Add L1 corruption test 2020-11-05 17:16:25 -08:00
clean_mirror ZTS: clean_mirror and scrub_mirror cleanup 2018-07-09 12:46:14 -07:00
cli_root Add the ability to uninitialize 2023-05-26 10:09:04 -07:00
cli_user egrep -> grep -E 2023-01-19 12:50:25 -08:00
compression Add zstd support to zfs 2020-08-20 10:30:06 -07:00
cp_files Fix ENOSPC in "Handle zap_add() failures in ..." 2018-04-18 14:19:50 -07:00
crtime ZTS: Add tests for creation time 2021-09-14 14:32:16 -07:00
ctime Update ZTS to work on FreeBSD 2019-12-18 12:29:43 -08:00
deadman ZTS: deadman_sync fix 2022-03-07 15:17:49 -08:00
delegate Clarify comments in config/*.m4, vdev_geom.c, zfs_allow_*.ksh 2020-06-22 09:46:37 -07:00
devices ZTS: devices_001_pos and devices_002_neg 2019-12-27 12:11:27 -08:00
events ZTS: add zed_fd_spill to verify the fds ZEDLETs inherit 2021-04-19 15:12:45 -07:00
exec Enable remaining tests 2017-05-22 12:34:32 -04:00
fallocate Corrected oversight in ZERO_RANGE behavior 2022-04-21 16:58:07 -07:00
fault zed: mark disks as REMOVED when they are removed 2023-03-27 11:32:09 -07:00
features ZTS: Standardize use of destroy_dataset in cleanup 2021-11-02 09:51:32 -07:00
grow ZTS: Adopt OpenZFS test analysis script 2018-06-20 14:03:13 -07:00
history ZTS: Avoid piping send directly to /dev/null 2022-02-10 11:04:57 -08:00
hkdf Use abs_top_builddir when referencing libraries 2020-07-10 14:26:32 -07:00
inheritance Add options to zfs redundant_metadata property 2022-11-01 12:25:58 -07:00
inuse ZTS: Eliminate partitioning from zpool_create etc 2020-02-20 08:10:13 -08:00
io ZTS: Fix io_uring support check 2022-07-27 13:38:56 -07:00
l2arc Store the L2ARC device ashift in the vdev label 2023-06-26 13:59:36 -07:00
large_files ZTS: Another round of changes for FreeBSD 2020-03-06 09:31:32 -08:00
largest_pool ZTS: Standardize use of destroy_dataset in cleanup 2021-11-02 09:51:32 -07:00
libzfs Use abs_top_builddir when referencing libraries 2020-07-10 14:26:32 -07:00
limits Linux 4.10 compat: has_capability() 2020-07-19 09:56:21 -07:00
link_count ZTS: Add zts-report exceptions for FreeBSD 2020-03-04 15:09:40 -08:00
log_spacemap ZTS: Catalog tunable names for tests in tunables.cfg 2020-01-14 14:57:28 -08:00
migration ZTS: Fix a few defaults 2020-01-31 08:51:23 -08:00
mmap Speed up WB_SYNC_NONE when a WB_SYNC_ALL occurs simultaneously 2023-06-05 10:59:02 -07:00
mmp ZTS: Catalog tunable names for tests in tunables.cfg 2020-01-14 14:57:28 -08:00
mount ZTS: Catalog tunable names for tests in tunables.cfg 2020-01-14 14:57:28 -08:00
mv_files ZTS: Provide an alternative to shuf for FreeBSD 2020-01-09 09:31:17 -08:00
nestedfs OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
no_space Fix ENOSPC when unlinking multiple files from full pool 2022-03-08 11:46:03 -08:00
nopwrite ZTS: Standardize use of destroy_dataset in cleanup 2021-11-02 09:51:32 -07:00
online_offline Add subcommand to wait for background zfs activity to complete 2019-09-13 18:09:06 -07:00
pam pam: implement a zfs_key pam module 2020-06-24 18:45:44 -07:00
pool_checkpoint Add physical device size to SIZE column in 'zpool list -v' 2022-09-15 10:23:01 -07:00
pool_names Allow pool names that look like Solaris disk names 2021-04-07 13:24:46 -07:00
poolversion Fix some ZFS Test Suite issues 2017-09-25 10:32:34 -07:00
privilege ZTS: Move privilege tests to sunos.run 2020-02-21 08:52:44 -08:00
procfs ZTS: Standardize use of destroy_dataset in cleanup 2021-11-02 09:51:32 -07:00
projectquota ZTS: Standardize use of destroy_dataset in cleanup 2021-11-02 09:51:32 -07:00
pyzfs Removed Python 2 and Python 3.5- support 2023-04-13 15:59:45 -07:00
quota ZTS: Standardize use of destroy_dataset in cleanup 2021-11-02 09:51:32 -07:00
raidz Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
redacted_send ZTS: Avoid unset $tmpdir in redacted_panic 2021-09-14 14:31:01 -07:00
redundancy egrep -> grep -E 2023-01-19 12:50:25 -08:00
refquota ZTS: Catalog tunable names for tests in tunables.cfg 2020-01-14 14:57:28 -08:00
refreserv ZTS: Fix refreserv_raidz.ksh 2022-02-16 17:58:55 -08:00
removal ZTS: fix removal_condense_export test case 2021-04-14 13:23:08 -07:00
rename_dirs Enable remaining tests 2017-05-22 12:34:32 -04:00
replacement egrep -> grep -E 2023-01-19 12:50:25 -08:00
reservation Remove basename(1). Clean up/shorten some coreutils pipelines 2022-02-16 17:58:55 -08:00
rootpool Update ZTS to work on FreeBSD 2019-12-18 12:29:43 -08:00
rsend ZTS: send-c_volume is flaky 2023-05-27 18:21:49 -07:00
scrub_mirror ZTS: clean_mirror and scrub_mirror cleanup 2018-07-09 12:46:14 -07:00
simd Linux 5.16 compat: don't use XSTATE_XSAVE to save FPU state 2022-02-16 17:58:55 -08:00
slog ZTS: Fix faulty slog_replay_fs_001 test 2020-02-20 08:11:51 -08:00
snapshot ZTS: Fix rollback_003_pos.ksh 2022-02-16 17:58:55 -08:00
snapused ZTS: Standardize use of destroy_dataset in cleanup 2021-11-02 09:51:32 -07:00
sparse ZTS: Adopt OpenZFS test analysis script 2018-06-20 14:03:13 -07:00
suid Fix clearing set-uid and set-gid bits on a file when replying a write 2022-02-16 17:58:55 -08:00
threadsappend ZTS: Adopt OpenZFS test analysis script 2018-06-20 14:03:13 -07:00
tmpfile Mark functions as static 2020-06-18 12:20:38 -07:00
trim Remove duplicate code in l2arc_evict() 2023-06-26 13:59:36 -07:00
truncate Update ZTS to work on FreeBSD 2019-12-18 12:29:43 -08:00
upgrade ZTS: Fix upgrade_readonly_pool 2019-10-03 09:39:13 -07:00
user_namespace Fix "file is executable, but no shebang" warnings 2018-04-06 16:34:21 -07:00
userquota Handle and detect #13709's unlock regression (#14161) 2022-12-01 12:39:43 -08:00
vdev_zaps egrep -> grep -E 2023-01-19 12:50:25 -08:00
write_dirs Fix typos 2020-06-09 21:24:09 -07:00
xattr ZTS: Fix xattr_002_neg passing too soon 2021-05-10 12:09:42 -07:00
zpool_influxdb Add zpool_influxdb command 2020-10-09 09:29:21 -07:00
zvol ZTS: Fix zvol_misc_volmode test 2022-02-16 17:58:56 -08:00
Makefile.am Linux 5.16 compat: don't use XSTATE_XSAVE to save FPU state 2022-02-16 17:58:55 -08:00