Print this page
FAR: generating send-streams in portable format
This commit adds a switch '-F' to  zfs send. This set, zfs send generates
a stream in FAR-format instead of the traditional zfs stream format. The
generated send stream is compatible with the stream generated from 'btrfs send'
and can in principle easily be received to any filesystem.

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libzfs/common/libzfs.h
          +++ new/usr/src/lib/libzfs/common/libzfs.h
↓ open down ↓ 577 lines elided ↑ open up ↑
 578  578          boolean_t props;
 579  579  
 580  580          /* do not send (no-op, ie. -n) */
 581  581          boolean_t dryrun;
 582  582  
 583  583          /* parsable verbose output (ie. -P) */
 584  584          boolean_t parsable;
 585  585  
 586  586          /* show progress (ie. -v) */
 587  587          boolean_t progress;
      588 +
      589 +        /* send output as FAR-stream */
      590 +        boolean_t far;
 588  591  } sendflags_t;
 589  592  
 590  593  typedef boolean_t (snapfilter_cb_t)(zfs_handle_t *, void *);
 591  594  
 592  595  extern int zfs_send(zfs_handle_t *, const char *, const char *,
 593  596      sendflags_t *, int, snapfilter_cb_t, void *, nvlist_t **);
 594  597  
 595  598  extern int zfs_promote(zfs_handle_t *);
 596  599  extern int zfs_hold(zfs_handle_t *, const char *, const char *, boolean_t,
 597  600      boolean_t, boolean_t, int, uint64_t, uint64_t);
↓ open down ↓ 160 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX