int err;
dsl_pool_t *dp = dsl_pool_open_impl(spa, txg);
dmu_tx_t *tx = dmu_tx_create_assigned(dp, txg);
- objset_t *os;
dsl_dataset_t *ds;
uint64_t obj;
/* create the root objset */
VERIFY0(dsl_dataset_hold_obj(dp, obj, FTAG, &ds));
- rrw_enter(&ds->ds_bp_rwlock, RW_READER, FTAG);
- VERIFY(NULL != (os = dmu_objset_create_impl(dp->dp_spa, ds,
- dsl_dataset_get_blkptr(ds), DMU_OST_ZFS, tx)));
- rrw_exit(&ds->ds_bp_rwlock, FTAG);
#ifdef _KERNEL
- zfs_create_fs(os, kcred, zplprops, tx);
+ {
+ objset_t *os;
+ rrw_enter(&ds->ds_bp_rwlock, RW_READER, FTAG);
+ os = dmu_objset_create_impl(dp->dp_spa, ds,
+ dsl_dataset_get_blkptr(ds), DMU_OST_ZFS, tx);
+ rrw_exit(&ds->ds_bp_rwlock, FTAG);
+ zfs_create_fs(os, kcred, zplprops, tx);
+ }
#endif
dsl_dataset_rele(ds, FTAG);
dsl_dataset_t *tosnap;
int error;
char *fromname;
- /* LINTED E_FUNC_SET_NOT_USED */
- boolean_t largeblockok;
- /* LINTED E_FUNC_SET_NOT_USED */
- boolean_t embedok;
boolean_t compressok;
boolean_t rawok;
uint64_t space;
return (error);
}
- largeblockok = nvlist_exists(innvl, "largeblockok");
- embedok = nvlist_exists(innvl, "embedok");
compressok = nvlist_exists(innvl, "compressok");
rawok = nvlist_exists(innvl, "rawok");
goto out;
}
} else {
- // If estimating the size of a full send, use dmu_send_estimate
+ /*
+ * If estimating the size of a full send, use dmu_send_estimate.
+ */
error = dmu_send_estimate(tosnap, NULL, compressok || rawok,
&space);
}