Tom Caputi
095495e008
Raw DRR_OBJECT records must write raw data
...
b1d21733 made it possible for empty metadnode blocks to be
compressed to a hole, fixing a bug that would cause invalid
metadnode MACs when a send stream attempted to free objects
and allowing the blocks to be reclaimed when they were no
longer needed. However, this patch also introduced a race
condition; if a txg sync occurred after a DRR_OBJECT_RANGE
record was received but before any objects were added, the
metadnode block would be compressed to a hole and lose all
of its encryption parameters. This would cause subsequent
DRR_OBJECT records to fail when they attempted to write
their data into an unencrypted block. This patch defers the
DRR_OBJECT_RANGE handling to receive_object() so that the
encryption parameters are set with each object that is
written into that block.
Reviewed-by: Kash Pande <kash@tripleback.net>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #7215
Closes #7236
2018-02-27 09:04:05 -08:00
..
2017-11-18 14:08:00 -08:00
2018-02-23 08:50:06 -08:00
2017-11-04 13:25:13 -07:00
2015-01-16 14:41:26 -08:00
2017-11-04 13:25:13 -07:00
2017-08-14 10:36:48 -07:00
2017-06-26 14:36:49 -07:00
2018-01-29 10:24:52 -08:00
2018-02-27 09:04:05 -08:00
2015-01-16 14:41:26 -08:00
2017-11-15 17:27:01 -08:00
2016-09-13 09:58:33 -07:00
2018-02-02 11:43:11 -08:00
2018-02-20 16:27:31 -08:00
2018-02-27 09:04:05 -08:00
2018-02-13 14:54:54 -08:00
2018-01-26 20:19:46 -08:00
2018-01-19 09:31:29 -08:00
2018-02-27 09:04:05 -08:00
2018-02-02 11:43:11 -08:00
2018-02-13 14:54:54 -08:00
2017-11-04 13:25:13 -07:00
2018-02-21 12:31:03 -08:00
2018-02-20 11:19:42 -08:00
2017-07-08 20:35:35 -07:00
2016-08-31 14:35:34 -07:00
2018-02-08 16:05:57 -08:00
2018-02-08 15:28:18 -08:00
2018-02-13 14:54:54 -08:00
2017-08-14 10:36:48 -07:00
2018-02-13 14:54:54 -08:00
2015-05-04 09:41:10 -07:00
2017-11-04 13:25:13 -07:00
2016-11-29 14:34:27 -08:00
2017-11-28 17:33:48 -06:00
2017-03-22 17:58:47 -07:00
2017-10-11 16:54:48 -04:00
2017-05-19 13:45:46 -07:00
2015-01-16 14:41:26 -08:00
2018-02-08 15:28:18 -08:00
2017-11-15 17:27:01 -08:00
2018-02-22 15:34:34 -08:00
2017-11-04 13:25:13 -07:00
2016-04-21 09:49:25 -07:00
2017-01-22 13:25:40 -08:00
2018-02-05 10:26:27 -08:00
2017-03-22 17:58:47 -07:00
2017-11-15 17:27:01 -08:00
2017-02-28 16:10:18 -08:00
2017-01-03 11:31:18 -06:00
2018-02-13 14:54:54 -08:00
2016-11-29 14:34:27 -08:00
2016-11-29 14:34:27 -08:00
2010-08-31 13:41:58 -07:00
2017-11-04 13:25:13 -07:00
2017-08-14 10:36:48 -07:00
2017-10-23 09:45:59 -07:00
2018-01-25 13:40:38 -08:00
2018-02-22 15:34:34 -08:00
2018-02-13 14:54:54 -08:00
2017-11-04 13:25:13 -07:00
2017-01-12 09:42:11 -08:00
2016-05-26 10:11:51 -07:00
2017-12-05 09:39:16 -08:00
2017-07-13 13:54:00 -04:00
2016-08-31 14:35:34 -07:00
2017-11-04 13:25:13 -07:00
2017-09-25 10:38:27 -07:00
2017-05-12 17:28:03 -07:00
2017-11-04 13:25:13 -07:00
2017-11-28 17:33:48 -06:00
2017-05-12 17:28:03 -07:00
2017-12-21 09:13:06 -08:00
2016-11-29 14:34:33 -08:00
2017-01-22 13:25:40 -08:00
2016-11-29 14:34:33 -08:00
2016-11-29 14:34:33 -08:00
2016-12-15 17:31:33 -08:00
2016-12-12 10:46:26 -08:00
2017-01-22 13:25:40 -08:00
2016-11-29 14:34:33 -08:00
2016-11-29 14:34:33 -08:00
2017-01-22 13:25:40 -08:00
2018-02-08 15:28:18 -08:00
2017-11-28 17:33:48 -06:00
2017-11-04 13:25:13 -07:00
2018-01-25 13:40:38 -08:00
2018-02-09 10:15:53 -08:00
2018-02-09 10:15:53 -08:00
2018-02-09 10:15:53 -08:00
2018-02-20 11:19:42 -08:00
2018-02-08 15:29:24 -08:00
2018-02-08 15:28:18 -08:00
2018-02-20 11:19:42 -08:00
2018-02-08 16:05:57 -08:00
2017-11-04 13:25:13 -07:00
2018-02-13 14:54:54 -08:00
2010-08-31 13:41:58 -07:00
2017-08-02 21:16:12 -07:00
2017-07-25 23:09:48 -07:00
2018-02-13 14:54:54 -08:00
2018-01-25 10:02:11 -08:00
2017-03-10 09:51:33 -08:00
2018-02-20 16:27:31 -08:00
2018-02-13 14:54:54 -08:00
2015-06-22 17:02:13 -07:00
2017-08-09 15:31:08 -07:00
2018-02-13 14:54:54 -08:00
2017-01-03 11:31:18 -06:00
2018-02-13 14:54:54 -08:00
2018-02-20 16:27:31 -08:00
2018-02-13 14:54:54 -08:00
2018-02-13 14:54:54 -08:00
2018-02-02 11:44:53 -08:00
2017-11-04 13:25:13 -07:00
2017-11-04 13:25:13 -07:00
2018-02-22 08:50:14 -08:00
2017-11-04 13:25:13 -07:00
2018-02-21 12:28:52 -08:00
2018-02-09 10:08:05 -08:00
2017-05-10 09:30:48 -07:00
2016-12-12 10:46:26 -08:00
2018-02-13 14:54:54 -08:00
2017-05-10 09:30:48 -07:00
2018-02-08 21:25:19 -08:00
2017-11-18 14:08:00 -08:00
2017-11-04 13:25:13 -07:00
2018-02-20 16:27:31 -08:00