mirror_zfs/tests/zfs-tests/tests/functional/rsend
Tom Caputi b1d217338a Raw receives must compress metadnode blocks
Currently, the DMU relies on ZIO layer compression to free LO
dnode blocks that no longer have objects in them. However,
raw receives disable all compression, meaning that these blocks
can never be freed. In addition to the obvious space concerns,
this could also cause incremental raw receives to fail to mount
since the MAC of a hole is different from that of a completely
zeroed block.

This patch corrects this issue by adding a special case in
zio_write_compress() which will attempt to compress these blocks
to a hole even if ZIO_FLAG_RAW_ENCRYPT is set. This patch also
removes the zfs_mdcomp_disable tunable, since tuning it could
cause these same issues.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #7198
2018-02-21 12:28:52 -08:00
..
cleanup.ksh OpenZFS 7535 - need test for resumed send of top most filesystem 2017-04-12 08:47:42 -07:00
Makefile.am Raw sends must be able to decrease nlevels 2018-02-02 11:43:11 -08:00
rsend_001_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
rsend_002_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
rsend_003_pos.ksh Retry zfs destroy when busy in rsend tests 2017-08-03 08:57:43 -07:00
rsend_004_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
rsend_005_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
rsend_006_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
rsend_007_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
rsend_008_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
rsend_009_pos.ksh Retry zfs destroy when busy in rsend tests 2017-08-03 08:57:43 -07:00
rsend_010_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
rsend_011_pos.ksh Retry zfs destroy when busy in rsend tests 2017-08-03 08:57:43 -07:00
rsend_012_pos.ksh OpenZFS 7290 - ZFS test suite needs to control what utilities it can run 2017-04-06 09:25:36 -07:00
rsend_013_pos.ksh Retry zfs destroy when busy in rsend tests 2017-08-03 08:57:43 -07:00
rsend_014_pos.ksh Update rsend_014_pos and send-c_volume test cases 2017-05-04 14:32:43 -07:00
rsend_019_pos.ksh Fix intra-pool resumable 'zfs send -t <token>' 2017-10-10 15:22:05 -07:00
rsend_020_pos.ksh Fix intra-pool resumable 'zfs send -t <token>' 2017-10-10 15:22:05 -07:00
rsend_021_pos.ksh Fix intra-pool resumable 'zfs send -t <token>' 2017-10-10 15:22:05 -07:00
rsend_022_pos.ksh Fix intra-pool resumable 'zfs send -t <token>' 2017-10-10 15:22:05 -07:00
rsend_024_pos.ksh Fix intra-pool resumable 'zfs send -t <token>' 2017-10-10 15:22:05 -07:00
rsend.cfg OpenZFS 7252 - compressed zfs send / receive 2017-04-26 12:31:43 -07:00
rsend.kshlib Fix intra-pool resumable 'zfs send -t <token>' 2017-10-10 15:22:05 -07:00
send_encrypted_files.ksh Raw receives must compress metadnode blocks 2018-02-21 12:28:52 -08:00
send_encrypted_heirarchy.ksh Native Encryption for ZFS on Linux 2017-08-14 10:36:48 -07:00
send_freeobjects.ksh receive_freeobjects() skips freeing some objects 2017-10-02 15:36:04 -07:00
send_realloc_dnode_size.ksh Raw sends must be able to decrease nlevels 2018-02-02 11:43:11 -08:00
send-c_embedded_blocks.ksh OpenZFS 7252 - compressed zfs send / receive 2017-04-26 12:31:43 -07:00
send-c_incremental.ksh OpenZFS 7252 - compressed zfs send / receive 2017-04-26 12:31:43 -07:00
send-c_lz4_disabled.ksh Retry zfs destroy when busy in rsend tests 2017-08-03 08:57:43 -07:00
send-c_mixed_compression.ksh OpenZFS 7252 - compressed zfs send / receive 2017-04-26 12:31:43 -07:00
send-c_props.ksh OpenZFS 7252 - compressed zfs send / receive 2017-04-26 12:31:43 -07:00
send-c_recv_dedup.ksh OpenZFS 7252 - compressed zfs send / receive 2017-04-26 12:31:43 -07:00
send-c_recv_lz4_disabled.ksh Retry zfs destroy when busy in rsend tests 2017-08-03 08:57:43 -07:00
send-c_resume.ksh Fix intra-pool resumable 'zfs send -t <token>' 2017-10-10 15:22:05 -07:00
send-c_stream_size_estimate.ksh Retry zfs destroy when busy in rsend tests 2017-08-03 08:57:43 -07:00
send-c_verify_contents.ksh OpenZFS 7252 - compressed zfs send / receive 2017-04-26 12:31:43 -07:00
send-c_verify_ratio.ksh Retry zfs destroy when busy in rsend tests 2017-08-03 08:57:43 -07:00
send-c_volume.ksh Retry zfs destroy when busy in rsend tests 2017-08-03 08:57:43 -07:00
send-c_zstreamdump.ksh OpenZFS 7252 - compressed zfs send / receive 2017-04-26 12:31:43 -07:00
send-cD.ksh OpenZFS 9004 - Some ZFS tests used files removed with 32 bit kernel 2018-02-09 10:28:44 -08:00
send-cpL_varied_recsize.ksh Retry zfs destroy when busy in rsend tests 2017-08-03 08:57:43 -07:00
setup.ksh OpenZFS 7535 - need test for resumed send of top most filesystem 2017-04-12 08:47:42 -07:00