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/lib/libzfs/common/libzfs.h
          +++ new/usr/src/lib/libzfs/common/libzfs.h
↓ open down ↓ 583 lines elided ↑ open up ↑
 584  584          boolean_t parsable;
 585  585  
 586  586          /* show progress (ie. -v) */
 587  587          boolean_t progress;
 588  588  } sendflags_t;
 589  589  
 590  590  typedef boolean_t (snapfilter_cb_t)(zfs_handle_t *, void *);
 591  591  
 592  592  extern int zfs_send(zfs_handle_t *, const char *, const char *,
 593  593      sendflags_t *, int, snapfilter_cb_t, void *, nvlist_t **);
      594 +extern int zfs_fits_send(zfs_handle_t *, const char *, const char *,
      595 +    sendflags_t *, int, snapfilter_cb_t, void *);
 594  596  
 595  597  extern int zfs_promote(zfs_handle_t *);
 596  598  extern int zfs_hold(zfs_handle_t *, const char *, const char *, boolean_t,
 597  599      boolean_t, boolean_t, int, uint64_t, uint64_t);
 598  600  extern int zfs_release(zfs_handle_t *, const char *, const char *, boolean_t);
 599  601  extern int zfs_get_holds(zfs_handle_t *, nvlist_t **);
 600  602  extern uint64_t zvol_volsize_to_reservation(uint64_t, nvlist_t *);
 601  603  
 602  604  typedef int (*zfs_userspace_cb_t)(void *arg, const char *domain,
 603  605      uid_t rid, uint64_t space);
↓ open down ↓ 154 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX