Print this page
cstyle fixes
dsl_dataset_set_fsid_guid should use ZFS_SPACE_CHECK_RESERVED
dsl_dataset_set_fsid_guid _check and _sync func declared static,
removed from dsl_dataset.h
rewrite unique_valid
6333 ZFS should let the user specify or modify the fsid_guid of a dataset


 322     dsl_dataset_t *origin_head, dmu_tx_t *tx);
 323 int dsl_dataset_snapshot_check_impl(dsl_dataset_t *ds, const char *snapname,
 324     dmu_tx_t *tx, boolean_t recv, uint64_t cnt, cred_t *cr);
 325 void dsl_dataset_snapshot_sync_impl(dsl_dataset_t *ds, const char *snapname,
 326     dmu_tx_t *tx);
 327 
 328 void dsl_dataset_remove_from_next_clones(dsl_dataset_t *ds, uint64_t obj,
 329     dmu_tx_t *tx);
 330 void dsl_dataset_recalc_head_uniq(dsl_dataset_t *ds);
 331 int dsl_dataset_get_snapname(dsl_dataset_t *ds);
 332 int dsl_dataset_snap_lookup(dsl_dataset_t *ds, const char *name,
 333     uint64_t *value);
 334 int dsl_dataset_snap_remove(dsl_dataset_t *ds, const char *name, dmu_tx_t *tx,
 335     boolean_t adj_cnt);
 336 void dsl_dataset_set_refreservation_sync_impl(dsl_dataset_t *ds,
 337     zprop_source_t source, uint64_t value, dmu_tx_t *tx);
 338 void dsl_dataset_zapify(dsl_dataset_t *ds, dmu_tx_t *tx);
 339 boolean_t dsl_dataset_is_zapified(dsl_dataset_t *ds);
 340 boolean_t dsl_dataset_has_resume_receive_state(dsl_dataset_t *ds);
 341 int dsl_dataset_rollback(const char *fsname, void *owner, nvlist_t *result);


 342 
 343 void dsl_dataset_deactivate_feature(uint64_t dsobj,
 344     spa_feature_t f, dmu_tx_t *tx);
 345 
 346 #ifdef ZFS_DEBUG
 347 #define dprintf_ds(ds, fmt, ...) do { \
 348         if (zfs_flags & ZFS_DEBUG_DPRINTF) { \
 349         char *__ds_name = kmem_alloc(MAXNAMELEN, KM_SLEEP); \
 350         dsl_dataset_name(ds, __ds_name); \
 351         dprintf("ds=%s " fmt, __ds_name, __VA_ARGS__); \
 352         kmem_free(__ds_name, MAXNAMELEN); \
 353         } \
 354 _NOTE(CONSTCOND) } while (0)
 355 #else
 356 #define dprintf_ds(dd, fmt, ...)
 357 #endif
 358 
 359 #ifdef  __cplusplus
 360 }
 361 #endif


 322     dsl_dataset_t *origin_head, dmu_tx_t *tx);
 323 int dsl_dataset_snapshot_check_impl(dsl_dataset_t *ds, const char *snapname,
 324     dmu_tx_t *tx, boolean_t recv, uint64_t cnt, cred_t *cr);
 325 void dsl_dataset_snapshot_sync_impl(dsl_dataset_t *ds, const char *snapname,
 326     dmu_tx_t *tx);
 327 
 328 void dsl_dataset_remove_from_next_clones(dsl_dataset_t *ds, uint64_t obj,
 329     dmu_tx_t *tx);
 330 void dsl_dataset_recalc_head_uniq(dsl_dataset_t *ds);
 331 int dsl_dataset_get_snapname(dsl_dataset_t *ds);
 332 int dsl_dataset_snap_lookup(dsl_dataset_t *ds, const char *name,
 333     uint64_t *value);
 334 int dsl_dataset_snap_remove(dsl_dataset_t *ds, const char *name, dmu_tx_t *tx,
 335     boolean_t adj_cnt);
 336 void dsl_dataset_set_refreservation_sync_impl(dsl_dataset_t *ds,
 337     zprop_source_t source, uint64_t value, dmu_tx_t *tx);
 338 void dsl_dataset_zapify(dsl_dataset_t *ds, dmu_tx_t *tx);
 339 boolean_t dsl_dataset_is_zapified(dsl_dataset_t *ds);
 340 boolean_t dsl_dataset_has_resume_receive_state(dsl_dataset_t *ds);
 341 int dsl_dataset_rollback(const char *fsname, void *owner, nvlist_t *result);
 342 int dsl_dataset_set_fsid_guid(const char *ddname, zprop_source_t source,
 343     uint64_t fsid_guid);
 344 
 345 void dsl_dataset_deactivate_feature(uint64_t dsobj,
 346     spa_feature_t f, dmu_tx_t *tx);
 347 
 348 #ifdef ZFS_DEBUG
 349 #define dprintf_ds(ds, fmt, ...) do { \
 350         if (zfs_flags & ZFS_DEBUG_DPRINTF) { \
 351         char *__ds_name = kmem_alloc(MAXNAMELEN, KM_SLEEP); \
 352         dsl_dataset_name(ds, __ds_name); \
 353         dprintf("ds=%s " fmt, __ds_name, __VA_ARGS__); \
 354         kmem_free(__ds_name, MAXNAMELEN); \
 355         } \
 356 _NOTE(CONSTCOND) } while (0)
 357 #else
 358 #define dprintf_ds(dd, fmt, ...)
 359 #endif
 360 
 361 #ifdef  __cplusplus
 362 }
 363 #endif