]> git.proxmox.com Git - mirror_zfs.git/commit - tests/runfiles/linux.run
zpool split can create a corrupted pool
authorRoman Strashkin <Ramzec@users.noreply.github.com>
Thu, 13 Sep 2018 01:14:42 +0000 (04:14 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 13 Sep 2018 01:14:42 +0000 (18:14 -0700)
commit733b5722b4fc6e7927ea8a33bef49f7059d91903
treee15da574cc36b67130e2947ab7eb71e1483c0d29
parentb8a90418f3a9c23b89c5d2c729a4dd0fea644508
zpool split can create a corrupted pool

Added vdev_resilver_needed() check to verify VDEVs are fully
synced, so that after split the new pool will not be corrupted.

Reviewed by: Pavel Zakharov <pavel.zakharov@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Signed-off-by: Roman Strashkin <roman.strashkin@nexenta.com>
Closes #7865
Closes #7881
module/zfs/spa.c
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/cli_root/zpool_split/Makefile.am
tests/zfs-tests/tests/functional/cli_root/zpool_split/zpool_split_resilver.ksh [new file with mode: 0755]