aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2019-09-19 09:43:56 +0000
committerAndriy Gapon <avg@FreeBSD.org>2019-09-19 09:43:56 +0000
commit6caa629e735a800bf034dc5821c2516bb35ce28b (patch)
tree1e96544eccd2dea67865701190c79a170da7ac83 /cddl/contrib
parent9a2ed10014863e84ee404f8b62dcbdbd7f01fb45 (diff)
downloadsrc-6caa629e735a800bf034dc5821c2516bb35ce28b.tar.gz
src-6caa629e735a800bf034dc5821c2516bb35ce28b.zip
fix dsl_scan_ds_clone_swapped logic
It was incorrect with respect to swapping dataset IDs both in the on-disk ZAP object and the in-memory queue. In both cases, if only ds1 was already present, then it would be first replaced with ds2 and then ds2 would be replaced back with ds1. Also, both cases did not properly handle a situation where both ds1 and ds2 are already queued. A duplicate insertion would be attempted and its failure would result in a panic. This change has also been submitted to ZoL as zfsonlinux/zfs@dd262c9 PR: 239566 Reported by: pascal.guitierrez@gmail.com MFC after: 4 days Sponsored by: CyberSecure
Notes
Notes: svn path=/head/; revision=352506
Diffstat (limited to 'cddl/contrib')
0 files changed, 0 insertions, 0 deletions