Print this page
3748 zfs headers should be C++ compatible
Submitted by:   Justin Gibbs <justing@spectralogic.com>
Submitted by:   Will Andrews <willa@spectralogic.com>
Reviewed by:    Matthew Ahrens <mahrens@delphix.com>


 209 
 210 boolean_t dsl_dataset_modified_since_lastsnap(dsl_dataset_t *ds);
 211 
 212 void dsl_dataset_sync(dsl_dataset_t *os, zio_t *zio, dmu_tx_t *tx);
 213 
 214 void dsl_dataset_block_born(dsl_dataset_t *ds, const blkptr_t *bp,
 215     dmu_tx_t *tx);
 216 int dsl_dataset_block_kill(dsl_dataset_t *ds, const blkptr_t *bp,
 217     dmu_tx_t *tx, boolean_t async);
 218 boolean_t dsl_dataset_block_freeable(dsl_dataset_t *ds, const blkptr_t *bp,
 219     uint64_t blk_birth);
 220 uint64_t dsl_dataset_prev_snap_txg(dsl_dataset_t *ds);
 221 
 222 void dsl_dataset_dirty(dsl_dataset_t *ds, dmu_tx_t *tx);
 223 void dsl_dataset_stats(dsl_dataset_t *os, nvlist_t *nv);
 224 void dsl_dataset_fast_stat(dsl_dataset_t *ds, dmu_objset_stats_t *stat);
 225 void dsl_dataset_space(dsl_dataset_t *ds,
 226     uint64_t *refdbytesp, uint64_t *availbytesp,
 227     uint64_t *usedobjsp, uint64_t *availobjsp);
 228 uint64_t dsl_dataset_fsid_guid(dsl_dataset_t *ds);
 229 int dsl_dataset_space_written(dsl_dataset_t *oldsnap, dsl_dataset_t *new,
 230     uint64_t *usedp, uint64_t *compp, uint64_t *uncompp);
 231 int dsl_dataset_space_wouldfree(dsl_dataset_t *firstsnap, dsl_dataset_t *last,
 232     uint64_t *usedp, uint64_t *compp, uint64_t *uncompp);
 233 boolean_t dsl_dataset_is_dirty(dsl_dataset_t *ds);
 234 
 235 int dsl_dsobj_to_dsname(char *pname, uint64_t obj, char *buf);
 236 
 237 int dsl_dataset_check_quota(dsl_dataset_t *ds, boolean_t check_quota,
 238     uint64_t asize, uint64_t inflight, uint64_t *used,
 239     uint64_t *ref_rsrv);
 240 int dsl_dataset_set_refquota(const char *dsname, zprop_source_t source,
 241     uint64_t quota);
 242 int dsl_dataset_set_refreservation(const char *dsname, zprop_source_t source,
 243     uint64_t reservation);
 244 
 245 boolean_t dsl_dataset_is_before(dsl_dataset_t *later, dsl_dataset_t *earlier);
 246 void dsl_dataset_long_hold(dsl_dataset_t *ds, void *tag);
 247 void dsl_dataset_long_rele(dsl_dataset_t *ds, void *tag);
 248 boolean_t dsl_dataset_long_held(dsl_dataset_t *ds);
 249 




 209 
 210 boolean_t dsl_dataset_modified_since_lastsnap(dsl_dataset_t *ds);
 211 
 212 void dsl_dataset_sync(dsl_dataset_t *os, zio_t *zio, dmu_tx_t *tx);
 213 
 214 void dsl_dataset_block_born(dsl_dataset_t *ds, const blkptr_t *bp,
 215     dmu_tx_t *tx);
 216 int dsl_dataset_block_kill(dsl_dataset_t *ds, const blkptr_t *bp,
 217     dmu_tx_t *tx, boolean_t async);
 218 boolean_t dsl_dataset_block_freeable(dsl_dataset_t *ds, const blkptr_t *bp,
 219     uint64_t blk_birth);
 220 uint64_t dsl_dataset_prev_snap_txg(dsl_dataset_t *ds);
 221 
 222 void dsl_dataset_dirty(dsl_dataset_t *ds, dmu_tx_t *tx);
 223 void dsl_dataset_stats(dsl_dataset_t *os, nvlist_t *nv);
 224 void dsl_dataset_fast_stat(dsl_dataset_t *ds, dmu_objset_stats_t *stat);
 225 void dsl_dataset_space(dsl_dataset_t *ds,
 226     uint64_t *refdbytesp, uint64_t *availbytesp,
 227     uint64_t *usedobjsp, uint64_t *availobjsp);
 228 uint64_t dsl_dataset_fsid_guid(dsl_dataset_t *ds);
 229 int dsl_dataset_space_written(dsl_dataset_t *oldsnap, dsl_dataset_t *newds,
 230     uint64_t *usedp, uint64_t *compp, uint64_t *uncompp);
 231 int dsl_dataset_space_wouldfree(dsl_dataset_t *firstsnap, dsl_dataset_t *last,
 232     uint64_t *usedp, uint64_t *compp, uint64_t *uncompp);
 233 boolean_t dsl_dataset_is_dirty(dsl_dataset_t *ds);
 234 
 235 int dsl_dsobj_to_dsname(char *pname, uint64_t obj, char *buf);
 236 
 237 int dsl_dataset_check_quota(dsl_dataset_t *ds, boolean_t check_quota,
 238     uint64_t asize, uint64_t inflight, uint64_t *used,
 239     uint64_t *ref_rsrv);
 240 int dsl_dataset_set_refquota(const char *dsname, zprop_source_t source,
 241     uint64_t quota);
 242 int dsl_dataset_set_refreservation(const char *dsname, zprop_source_t source,
 243     uint64_t reservation);
 244 
 245 boolean_t dsl_dataset_is_before(dsl_dataset_t *later, dsl_dataset_t *earlier);
 246 void dsl_dataset_long_hold(dsl_dataset_t *ds, void *tag);
 247 void dsl_dataset_long_rele(dsl_dataset_t *ds, void *tag);
 248 boolean_t dsl_dataset_long_held(dsl_dataset_t *ds);
 249