zfs/tests/zfs-tests/tests/functional
George Amanakis 63a26454ba
Introduce a flag to skip comparing the local mac when raw sending
Raw receiving a snapshot back to the originating dataset is currently
impossible because of user accounting being present in the originating
dataset.

One solution would be resetting user accounting when raw receiving on
the receiving dataset. However, to recalculate it we would have to dirty
all dnodes, which may not be preferable on big datasets.

Instead, we rely on the os_phys flag
OBJSET_FLAG_USERACCOUNTING_COMPLETE to indicate that user accounting is
incomplete when raw receiving. Thus, on the next mount of the receiving
dataset the local mac protecting user accounting is zeroed out.
The flag is then cleared when user accounting of the raw received
snapshot is calculated.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes #12981 
Closes #10523
Closes #11221
Closes #11294
Closes #12594
Issue #11300
2022-01-21 11:41:17 -08:00
..
acl Fix regression in POSIX mode behavior 2021-03-19 22:50:46 -07:00
alloc_class ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08:00
arc ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08:00
atime Replace ZoL with OpenZFS where applicable 2021-05-07 17:20:37 -07:00
bootfs ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06: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 Disable normalization implicitly when setting "utf8only=off" 2021-10-29 16:59:18 -07:00
channel_program ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08:00
chattr Update ZTS to work on FreeBSD 2019-12-18 12:29:43 -08:00
checksum Enable edonr in FreeBSD 2021-11-16 12:40:10 -07:00
clean_mirror ZTS: clean_mirror and scrub_mirror cleanup 2018-07-09 12:46:14 -07:00
cli_root Fix problem with zdb -d 2022-01-20 10:28:55 -07:00
cli_user ZTS: zfs_list_004_neg should not check paths that belong to ZFS 2021-11-11 08:46:44 -07:00
compression Added test for being able to read various variants of zstd 2021-09-20 09:08:20 -06: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-08-17 10:25:58 -07:00
ctime tests: fix unused, remove argsused 2021-12-21 12:05:12 -08:00
deadman ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08:00
delegate ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08:00
devices ZTS: devices_001_pos and devices_002_neg 2019-12-27 12:11:27 -08:00
events ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08:00
exec Enable remaining tests 2017-05-22 12:34:32 -04:00
fallocate ZTS: Enable punch-hole tests on FreeBSD 2021-08-30 13:33:32 -07:00
fault ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08:00
features ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08: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 2021-12-17 12:39:10 -08:00
hkdf tests: fix unused, remove argsused 2021-12-21 12:05:12 -08:00
inheritance Fixes for make dist 2020-06-26 14:20:02 -07:00
inuse ZTS: Eliminate partitioning from zpool_create etc 2020-02-20 08:10:13 -08:00
io Add basic io_uring test 2021-01-23 15:42:42 -08:00
l2arc Fixes in persistent L2ARC 2021-07-26 12:30:24 -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-10-25 15:13:50 -06:00
libzfs tests: fix unused, remove argsused 2021-12-21 12:05:12 -08: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: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08:00
migration ZTS: Fix a few defaults 2020-01-31 08:51:23 -08:00
mmap Fix lseek(SEEK_DATA/SEEK_HOLE) mmap consistency 2021-11-07 14:27:44 -07:00
mmp ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -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 ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08:00
nopwrite ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
online_offline ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08:00
pam pam_zfs_key: tests: check if zfs load-key works on short passphrases 2021-11-30 11:52:21 -08:00
pool_checkpoint ZTS: pool_checkpoint improvements 2021-04-03 08:33:22 -07:00
pool_names ZTS: remove verify_slog_support helper 2021-05-24 14:57:29 -06: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: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08:00
projectquota ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08:00
pyzfs Removed Python 2 and Python 3.5- support 2022-01-13 09:51:12 -07:00
quota ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
raidz Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
redacted_send ZTS: Avoid unset $tmpdir in redacted_panic 2021-08-16 16:38:34 -07:00
redundancy Fix dRAID sequential resilver silent damage handling 2021-05-20 15:05:26 -07:00
refquota ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08:00
refreserv ZTS: Fix refreserv_raidz.ksh 2021-12-22 09:37:27 -08:00
removal ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08:00
rename_dirs Enable remaining tests 2017-05-22 12:34:32 -04:00
replacement ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08:00
reservation Remove basename(1). Clean up/shorten some coreutils pipelines 2021-11-11 13:27:37 -07:00
rootpool Update ZTS to work on FreeBSD 2019-12-18 12:29:43 -08:00
rsend Removed Python 2 and Python 3.5- support 2022-01-13 09:51:12 -07:00
scrub_mirror ZTS: clean_mirror and scrub_mirror cleanup 2018-07-09 12:46:14 -07:00
slog ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08:00
snapshot ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08:00
snapused ZTS: Standardize use of destroy_dataset in cleanup 2021-10-25 15:13:50 -06:00
sparse ZTS: Adopt OpenZFS test analysis script 2018-06-20 14:03:13 -07:00
stat Linux: Implement FS_IOC_GETVERSION 2021-12-17 16:18:37 -08:00
suid Implement secpolicy_vnode_setid_retain() 2019-07-26 13:52:30 -07:00
threadsappend ZTS: Adopt OpenZFS test analysis script 2018-06-20 14:03:13 -07:00
tmpfile tests: fix unused, remove argsused 2021-12-21 12:05:12 -08:00
trim ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08:00
truncate ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -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 Introduce a flag to skip comparing the local mac when raw sending 2022-01-21 11:41:17 -08:00
vdev_zaps ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08:00
write_dirs Fix typos 2020-06-09 21:24:09 -07:00
xattr ZTS: Fix xattr_002_neg passing too soon 2021-04-30 07:37:02 -07:00
zpool_influxdb Add zpool_influxdb command 2020-10-09 09:29:21 -07:00
zvol ZTS: normalize on use of `sync_pool` and `sync_all_pools` 2022-01-06 10:57:09 -08:00
Makefile.am Linux: Implement FS_IOC_GETVERSION 2021-12-17 16:18:37 -08:00