opnsense-src/sys/cddl
Andriy Gapon 6caa629e73 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
2019-09-19 09:43:56 +00:00
..
boot/zfs loader: support com.delphix:removing 2019-08-08 18:08:13 +00:00
compat/opensolaris vfs: manage mnt_ref with atomics 2019-09-16 21:31:02 +00:00
contrib/opensolaris fix dsl_scan_ds_clone_swapped logic 2019-09-19 09:43:56 +00:00
dev dtrace: 64-bits registers support 2019-06-05 22:29:05 +00:00