freebsd-skq/cddl/contrib/opensolaris
Alan Somers 02fa3d2963 zfs: fix EIO accessing dataset after resuming interrupted receive
ZFS unmounts a dataset while receiving into it and remounts it afterwards.
But if ZFS is resuming an incomplete receive, it screws up and ends up with
a dataset that is mounted, but returns EIO for every access. This commit
fixes that condition.

While the vulnerable code also exists in OpenZFS, the problem is not
reproducible there. Apparently OpenZFS doesn't unmount the destination
dataset during receive, like FreeBSD does.

PR:		248606
Reviewed by:	mmacy
MFC after:	2 weeks
Sponsored by:	Axcient
Differential Revision:	https://reviews.freebsd.org/D26034
2020-08-20 01:31:21 +00:00
..
cmd MFOpenZFS: Add support for boot environment data to be stored in the label 2020-08-05 14:32:20 +00:00
common libctf: Don't construct pointers to out of bounds array offsets 2018-03-26 22:02:36 +00:00
head
lib zfs: fix EIO accessing dataset after resuming interrupted receive 2020-08-20 01:31:21 +00:00
tools/ctf Fix cddl tools bootstrapping on macOS and Linux 2020-08-07 16:03:55 +00:00
OPENSOLARIS.LICENSE