mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
zdb: add -B option to generate backup stream
This is more-or-less like `zfs send`, but specifying the snapshot by its objset id for situations where it can't be referenced any other way. Sponsored-By: Klara, Inc. Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Reviewed-by: WHR <msl0000023508@gmail.com> Signed-off-by: Rob Norris <rob.norris@klarasystems.com> Closes #14642
This commit is contained in:
committed by
Brian Behlendorf
parent
2b9f8ba673
commit
8653f1de48
@@ -1955,7 +1955,7 @@ setup_featureflags(struct dmu_send_params *dspp, objset_t *os,
|
||||
{
|
||||
dsl_dataset_t *to_ds = dspp->to_ds;
|
||||
dsl_pool_t *dp = dspp->dp;
|
||||
#ifdef _KERNEL
|
||||
|
||||
if (dmu_objset_type(os) == DMU_OST_ZFS) {
|
||||
uint64_t version;
|
||||
if (zfs_get_zplprop(os, ZFS_PROP_VERSION, &version) != 0)
|
||||
@@ -1964,7 +1964,6 @@ setup_featureflags(struct dmu_send_params *dspp, objset_t *os,
|
||||
if (version >= ZPL_VERSION_SA)
|
||||
*featureflags |= DMU_BACKUP_FEATURE_SA_SPILL;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* raw sends imply large_block_ok */
|
||||
if ((dspp->rawok || dspp->large_block_ok) &&
|
||||
|
||||
Reference in New Issue
Block a user