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.


 808         ZFS_IOC_USERSPACE_UPGRADE,
 809         ZFS_IOC_HOLD,
 810         ZFS_IOC_RELEASE,
 811         ZFS_IOC_GET_HOLDS,
 812         ZFS_IOC_OBJSET_RECVD_PROPS,
 813         ZFS_IOC_VDEV_SPLIT,
 814         ZFS_IOC_NEXT_OBJ,
 815         ZFS_IOC_DIFF,
 816         ZFS_IOC_TMP_SNAPSHOT,
 817         ZFS_IOC_OBJ_TO_STATS,
 818         ZFS_IOC_SPACE_WRITTEN,
 819         ZFS_IOC_SPACE_SNAPS,
 820         ZFS_IOC_DESTROY_SNAPS,
 821         ZFS_IOC_POOL_REGUID,
 822         ZFS_IOC_POOL_REOPEN,
 823         ZFS_IOC_SEND_PROGRESS,
 824         ZFS_IOC_LOG_HISTORY,
 825         ZFS_IOC_SEND_NEW,
 826         ZFS_IOC_SEND_SPACE,
 827         ZFS_IOC_CLONE,

 828         ZFS_IOC_LAST
 829 } zfs_ioc_t;
 830 
 831 /*
 832  * Internal SPA load state.  Used by FMA diagnosis engine.
 833  */
 834 typedef enum {
 835         SPA_LOAD_NONE,          /* no load in progress  */
 836         SPA_LOAD_OPEN,          /* normal open          */
 837         SPA_LOAD_IMPORT,        /* import in progress   */
 838         SPA_LOAD_TRYIMPORT,     /* tryimport in progress */
 839         SPA_LOAD_RECOVER,       /* recovery requested   */
 840         SPA_LOAD_ERROR          /* load failed          */
 841 } spa_load_state_t;
 842 
 843 /*
 844  * Bookmark name values.
 845  */
 846 #define ZPOOL_ERR_LIST          "error list"
 847 #define ZPOOL_ERR_DATASET       "dataset"




 808         ZFS_IOC_USERSPACE_UPGRADE,
 809         ZFS_IOC_HOLD,
 810         ZFS_IOC_RELEASE,
 811         ZFS_IOC_GET_HOLDS,
 812         ZFS_IOC_OBJSET_RECVD_PROPS,
 813         ZFS_IOC_VDEV_SPLIT,
 814         ZFS_IOC_NEXT_OBJ,
 815         ZFS_IOC_DIFF,
 816         ZFS_IOC_TMP_SNAPSHOT,
 817         ZFS_IOC_OBJ_TO_STATS,
 818         ZFS_IOC_SPACE_WRITTEN,
 819         ZFS_IOC_SPACE_SNAPS,
 820         ZFS_IOC_DESTROY_SNAPS,
 821         ZFS_IOC_POOL_REGUID,
 822         ZFS_IOC_POOL_REOPEN,
 823         ZFS_IOC_SEND_PROGRESS,
 824         ZFS_IOC_LOG_HISTORY,
 825         ZFS_IOC_SEND_NEW,
 826         ZFS_IOC_SEND_SPACE,
 827         ZFS_IOC_CLONE,
 828         ZFS_IOC_FITS_SEND,
 829         ZFS_IOC_LAST
 830 } zfs_ioc_t;
 831 
 832 /*
 833  * Internal SPA load state.  Used by FMA diagnosis engine.
 834  */
 835 typedef enum {
 836         SPA_LOAD_NONE,          /* no load in progress  */
 837         SPA_LOAD_OPEN,          /* normal open          */
 838         SPA_LOAD_IMPORT,        /* import in progress   */
 839         SPA_LOAD_TRYIMPORT,     /* tryimport in progress */
 840         SPA_LOAD_RECOVER,       /* recovery requested   */
 841         SPA_LOAD_ERROR          /* load failed          */
 842 } spa_load_state_t;
 843 
 844 /*
 845  * Bookmark name values.
 846  */
 847 #define ZPOOL_ERR_LIST          "error list"
 848 #define ZPOOL_ERR_DATASET       "dataset"