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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/sys/dsl_dataset.h
          +++ new/usr/src/uts/common/fs/zfs/sys/dsl_dataset.h
↓ open down ↓ 331 lines elided ↑ open up ↑
 332  332  int dsl_dataset_snap_lookup(dsl_dataset_t *ds, const char *name,
 333  333      uint64_t *value);
 334  334  int dsl_dataset_snap_remove(dsl_dataset_t *ds, const char *name, dmu_tx_t *tx,
 335  335      boolean_t adj_cnt);
 336  336  void dsl_dataset_set_refreservation_sync_impl(dsl_dataset_t *ds,
 337  337      zprop_source_t source, uint64_t value, dmu_tx_t *tx);
 338  338  void dsl_dataset_zapify(dsl_dataset_t *ds, dmu_tx_t *tx);
 339  339  boolean_t dsl_dataset_is_zapified(dsl_dataset_t *ds);
 340  340  boolean_t dsl_dataset_has_resume_receive_state(dsl_dataset_t *ds);
 341  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);
 342  344  
 343  345  void dsl_dataset_deactivate_feature(uint64_t dsobj,
 344  346      spa_feature_t f, dmu_tx_t *tx);
 345  347  
 346  348  #ifdef ZFS_DEBUG
 347  349  #define dprintf_ds(ds, fmt, ...) do { \
 348  350          if (zfs_flags & ZFS_DEBUG_DPRINTF) { \
 349  351          char *__ds_name = kmem_alloc(MAXNAMELEN, KM_SLEEP); \
 350  352          dsl_dataset_name(ds, __ds_name); \
 351  353          dprintf("ds=%s " fmt, __ds_name, __VA_ARGS__); \
↓ open down ↓ 12 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX