Changeset View
Changeset View
Standalone View
Standalone View
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
#include <sys/ddt.h> | #include <sys/ddt.h> | ||||
#include <sys/zfs_onexit.h> | #include <sys/zfs_onexit.h> | ||||
#include <sys/dmu_send.h> | #include <sys/dmu_send.h> | ||||
#include <sys/dsl_destroy.h> | #include <sys/dsl_destroy.h> | ||||
#include <sys/blkptr.h> | #include <sys/blkptr.h> | ||||
#include <sys/dsl_bookmark.h> | #include <sys/dsl_bookmark.h> | ||||
#include <sys/zfeature.h> | #include <sys/zfeature.h> | ||||
#include <sys/bqueue.h> | #include <sys/bqueue.h> | ||||
#ifdef __FreeBSD__ | |||||
#include <sys/zvol.h> | |||||
#endif | |||||
#ifdef __FreeBSD__ | #ifdef __FreeBSD__ | ||||
#undef dump_write | #undef dump_write | ||||
#define dump_write dmu_dump_write | #define dump_write dmu_dump_write | ||||
#endif | #endif | ||||
/* Set this tunable to TRUE to replace corrupt data with 0x2f5baddb10c */ | /* Set this tunable to TRUE to replace corrupt data with 0x2f5baddb10c */ | ||||
int zfs_send_corrupt_data = B_FALSE; | int zfs_send_corrupt_data = B_FALSE; | ||||
▲ Show 20 Lines • Show All 3,372 Lines • ▼ Show 20 Lines | if (dsl_dataset_has_resume_receive_state(ds)) { | ||||
(void) zap_remove(dp->dp_meta_objset, ds->ds_object, | (void) zap_remove(dp->dp_meta_objset, ds->ds_object, | ||||
DS_FIELD_RESUME_TOGUID, tx); | DS_FIELD_RESUME_TOGUID, tx); | ||||
(void) zap_remove(dp->dp_meta_objset, ds->ds_object, | (void) zap_remove(dp->dp_meta_objset, ds->ds_object, | ||||
DS_FIELD_RESUME_TONAME, tx); | DS_FIELD_RESUME_TONAME, tx); | ||||
} | } | ||||
drc->drc_newsnapobj = | drc->drc_newsnapobj = | ||||
dsl_dataset_phys(drc->drc_ds)->ds_prev_snap_obj; | dsl_dataset_phys(drc->drc_ds)->ds_prev_snap_obj; | ||||
} | } | ||||
#if defined(__FreeBSD__) && defined(_KERNEL) | |||||
zvol_create_minors(dp->dp_spa, drc->drc_tofs); | |||||
#endif | |||||
/* | /* | ||||
* Release the hold from dmu_recv_begin. This must be done before | * Release the hold from dmu_recv_begin. This must be done before | ||||
* we return to open context, so that when we free the dataset's dnode, | * we return to open context, so that when we free the dataset's dnode, | ||||
* we can evict its bonus buffer. | * we can evict its bonus buffer. | ||||
*/ | */ | ||||
dsl_dataset_disown(drc->drc_ds, dmu_recv_tag); | dsl_dataset_disown(drc->drc_ds, dmu_recv_tag); | ||||
drc->drc_ds = NULL; | drc->drc_ds = NULL; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |