mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +03:00
ZTS: normalize on use of sync_pool and sync_all_pools
- Replaces use of manual `zpool sync` - Don't use `log_must sync_pool` as `sync_pool` uses it internally - Replace many (but not all) uses of `sync` with `sync_pool` This makes the tests more consistent, and makes searching easier. Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Allan Jude <allan@klarasystems.com> Closes #12894
This commit is contained in:
@@ -483,7 +483,7 @@ function verify_userprop
|
||||
typeset stamp=${perm}.${user}.$RANDOM
|
||||
|
||||
user_run $user zfs set "$user:ts=$stamp" $dtst
|
||||
zpool sync ${dtst%%/*}
|
||||
sync_pool ${dtst%%/*}
|
||||
if [[ $stamp != $(get_prop "$user:ts" $dtst) ]]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user