Print this page
4171 clean up spa_feature_*() interfaces
4172 implement extensible_dataset feature for use by other zpool features
Reviewed by: Max Grossman <max.grossman@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/sys/zap.h
          +++ new/usr/src/uts/common/fs/zfs/sys/zap.h
↓ open down ↓ 133 lines elided ↑ open up ↑
 134  134      dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx);
 135  135  uint64_t zap_create_norm(objset_t *ds, int normflags, dmu_object_type_t ot,
 136  136      dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx);
 137  137  uint64_t zap_create_flags(objset_t *os, int normflags, zap_flags_t flags,
 138  138      dmu_object_type_t ot, int leaf_blockshift, int indirect_blockshift,
 139  139      dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx);
 140  140  uint64_t zap_create_link(objset_t *os, dmu_object_type_t ot,
 141  141      uint64_t parent_obj, const char *name, dmu_tx_t *tx);
 142  142  
 143  143  /*
      144 + * Initialize an already-allocated object.
      145 + */
      146 +void mzap_create_impl(objset_t *os, uint64_t obj, int normflags,
      147 +    zap_flags_t flags, dmu_tx_t *tx);
      148 +
      149 +/*
 144  150   * Create a new zapobj with no attributes from the given (unallocated)
 145  151   * object number.
 146  152   */
 147  153  int zap_create_claim(objset_t *ds, uint64_t obj, dmu_object_type_t ot,
 148  154      dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx);
 149  155  int zap_create_claim_norm(objset_t *ds, uint64_t obj,
 150  156      int normflags, dmu_object_type_t ot,
 151  157      dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx);
 152  158  
 153  159  /*
↓ open down ↓ 330 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX