mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +03:00
369aa501d1
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 |
||
---|---|---|
.. | ||
chg_usr_exec | ||
devname2devid | ||
dir_rd_update | ||
file_check | ||
file_trunc | ||
file_write | ||
largest_file | ||
libzfs_input_check | ||
mkbusy | ||
mkfile | ||
mkfiles | ||
mktree | ||
mmap_exec | ||
mmap_libaio | ||
mmapwrite | ||
nvlist_to_lua | ||
randfree_file | ||
randwritecomp | ||
readmmap | ||
rename_dir | ||
rm_lnkcnt_zero_file | ||
threadsappend | ||
user_ns_exec | ||
xattrtest | ||
file_common.h | ||
Makefile.am |