Print this page
FITS: generating send-streams in portable format
This commit adds the command 'zfs fits-send', analogous to zfs send. The
generated send stream is compatible with the stream generated with that
from 'btrfs send' and can in principle easily be received to any filesystem.

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 ↓ 194 lines elided ↑ open up ↑
 195  195          (((ds)->ds_phys->ds_flags & DS_FLAG_UNIQUE_ACCURATE) != 0)
 196  196  
 197  197  int dsl_dataset_hold(const char *name, void *tag, dsl_dataset_t **dsp);
 198  198  int dsl_dataset_hold_obj(struct dsl_pool *dp, uint64_t dsobj,
 199  199      void *tag, dsl_dataset_t **);
 200  200  int dsl_dataset_own(const char *name, boolean_t inconsistentok,
 201  201      void *tag, dsl_dataset_t **dsp);
 202  202  int dsl_dataset_own_obj(struct dsl_pool *dp, uint64_t dsobj,
 203  203      boolean_t inconsistentok, void *tag, dsl_dataset_t **dsp);
 204  204  void dsl_dataset_name(dsl_dataset_t *ds, char *name);
      205 +int dsl_dataset_namelen(dsl_dataset_t *ds);
 205  206  void dsl_dataset_rele(dsl_dataset_t *ds, void *tag);
 206  207  void dsl_dataset_disown(dsl_dataset_t *ds, void *tag);
 207  208  void dsl_dataset_drop_ref(dsl_dataset_t *ds, void *tag);
 208  209  boolean_t dsl_dataset_tryown(dsl_dataset_t *ds, boolean_t inconsistentok,
 209  210      void *tag);
 210  211  void dsl_dataset_make_exclusive(dsl_dataset_t *ds, void *tag);
 211  212  void dsl_register_onexit_hold_cleanup(dsl_dataset_t *ds, const char *htag,
 212  213      minor_t minor);
 213  214  uint64_t dsl_dataset_create_sync(dsl_dir_t *pds, const char *lastname,
 214  215      dsl_dataset_t *origin, uint64_t flags, cred_t *, dmu_tx_t *);
↓ open down ↓ 83 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX