Skip to content

ZTS: Reduce extra caching in pool_checkpoint #17268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,15 @@ log_must set_tunable32 SPA_ASIZE_INFLATION 4
log_must zfs create $DISKFS

log_must mkfile $FILEDISKSIZE $FILEDISK1
log_must zpool create $NESTEDPOOL $FILEDISK1
log_must zpool create -O primarycache=metadata $NESTEDPOOL $FILEDISK1

log_must zfs create -o compression=lz4 -o recordsize=8k $NESTEDFS0
log_must zfs create $NESTEDFS0
log_must dd if=/dev/urandom of=$NESTEDFS0FILE bs=1M count=700
FILE0INTRO=$(head -c 100 $NESTEDFS0FILE)

log_must zpool checkpoint $NESTEDPOOL
log_must rm $NESTEDFS0FILE
log_must sync_pool $NESTEDPOOL

#
# only for debugging purposes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ function setup_nested_pool
log_must truncate -s $DISKSIZE $FILEDISK1
log_must truncate -s $DISKSIZE $FILEDISK2

log_must zpool create -O sync=disabled $NESTEDPOOL $FILEDISKS
log_must zpool create -O primarycache=metadata -O sync=disabled \
$NESTEDPOOL $FILEDISKS
}

function setup_test_pool
Expand Down