Files
mirror_zfs/include/sys
Tom Caputi 369aa501d1 Fix handling of maxblkid for raw sends
Currently, the receive code can create an unreadable dataset from
a correct raw send stream. This is because it is currently
impossible to set maxblkid to a lower value without freeing the
associated object. This means truncating files on the send side
to a non-0 size could result in corruption. This patch solves this
issue by adding a new 'force' flag to dnode_new_blkid() which will
allow the raw receive code to force the DMU to accept the provided
maxblkid even if it is a lower value than the existing one.

For testing purposes the send_encrypted_files.ksh test has been
extended to include a variety of truncated files and multiple
snapshots. It also now leverages the xattrtest command to help
ensure raw receives correctly handle xattrs.

Reviewed-by: Paul Dagnelie <pcd@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matt Ahrens <mahrens@delphix.com>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #8168 
Closes #8487
2019-03-13 10:52:01 -07:00
..
2019-03-12 13:13:22 -07:00
2017-10-05 19:28:00 -07:00
2016-01-08 15:08:19 -08:00
2018-09-05 18:33:36 -07:00
2018-10-09 14:05:13 -07:00
2018-10-09 14:05:13 -07:00
2019-03-13 10:52:01 -07:00
2019-03-13 10:52:01 -07:00
2018-10-03 09:47:11 -07:00
2018-10-16 11:15:04 -07:00
2018-10-01 10:40:11 -07:00
2013-11-04 11:17:48 -08:00
2017-01-03 11:31:18 -06:00
2017-12-07 10:28:50 -08:00
2017-10-11 16:54:48 -04:00
2018-05-29 16:00:33 -07:00
2018-10-03 15:30:55 -07:00
2016-04-21 09:49:25 -07:00
2016-06-07 09:16:52 -07:00
2018-02-13 14:54:54 -08:00
2019-03-12 10:37:06 -07:00
2019-01-07 11:03:08 -08:00
2015-01-06 16:53:24 -08:00
2018-08-27 10:16:01 -07:00
2017-07-13 13:54:00 -04:00
2013-11-04 10:55:25 -08:00
2019-03-12 10:37:06 -07:00
2018-02-08 15:28:18 -08:00
2018-02-08 15:28:18 -08:00
2018-06-15 15:10:42 -07:00
2018-02-13 14:54:54 -08:00
2017-03-10 09:51:33 -08:00
2018-05-29 16:00:33 -07:00
2018-05-29 16:00:33 -07:00
2019-02-15 12:41:38 -08:00
2018-02-13 14:54:54 -08:00
2018-02-13 14:54:54 -08:00
2018-09-06 21:44:52 -07:00
2018-10-17 10:31:38 -07:00
2017-03-29 12:24:51 -07:00
2017-08-14 10:36:48 -07:00
2017-07-12 13:05:37 -07:00