642 /* do not actually do the recv, just check if it would work (ie, -n) */
643 boolean_t dryrun;
644
645 /* rollback/destroy filesystems as necessary (eg, -F) */
646 boolean_t force;
647
648 /* set "canmount=off" on all modified filesystems */
649 boolean_t canmountoff;
650
651 /*
652 * Mark the file systems as "resumable" and do not destroy them if the
653 * receive is interrupted
654 */
655 boolean_t resumable;
656
657 /* byteswap flag is used internally; callers need not specify */
658 boolean_t byteswap;
659
660 /* do not mount file systems as they are extracted (private) */
661 boolean_t nomount;
662 } recvflags_t;
663
664 extern int zfs_receive(libzfs_handle_t *, const char *, nvlist_t *,
665 recvflags_t *, int, avl_tree_t *);
666
667 typedef enum diff_flags {
668 ZFS_DIFF_PARSEABLE = 0x1,
669 ZFS_DIFF_TIMESTAMP = 0x2,
670 ZFS_DIFF_CLASSIFY = 0x4
671 } diff_flags_t;
672
673 extern int zfs_show_diffs(zfs_handle_t *, int, const char *, const char *,
674 int);
675
676 /*
677 * Miscellaneous functions.
678 */
679 extern const char *zfs_type_to_name(zfs_type_t);
680 extern void zfs_refresh_properties(zfs_handle_t *);
681 extern int zfs_name_valid(const char *, zfs_type_t);
|
642 /* do not actually do the recv, just check if it would work (ie, -n) */
643 boolean_t dryrun;
644
645 /* rollback/destroy filesystems as necessary (eg, -F) */
646 boolean_t force;
647
648 /* set "canmount=off" on all modified filesystems */
649 boolean_t canmountoff;
650
651 /*
652 * Mark the file systems as "resumable" and do not destroy them if the
653 * receive is interrupted
654 */
655 boolean_t resumable;
656
657 /* byteswap flag is used internally; callers need not specify */
658 boolean_t byteswap;
659
660 /* do not mount file systems as they are extracted (private) */
661 boolean_t nomount;
662
663 /* Internal-only: zfs_receive_one() is a recursive receive. */
664 boolean_t recursive;
665 } recvflags_t;
666
667 extern int zfs_receive(libzfs_handle_t *, const char *, nvlist_t *,
668 recvflags_t *, int, avl_tree_t *);
669
670 typedef enum diff_flags {
671 ZFS_DIFF_PARSEABLE = 0x1,
672 ZFS_DIFF_TIMESTAMP = 0x2,
673 ZFS_DIFF_CLASSIFY = 0x4
674 } diff_flags_t;
675
676 extern int zfs_show_diffs(zfs_handle_t *, int, const char *, const char *,
677 int);
678
679 /*
680 * Miscellaneous functions.
681 */
682 extern const char *zfs_type_to_name(zfs_type_t);
683 extern void zfs_refresh_properties(zfs_handle_t *);
684 extern int zfs_name_valid(const char *, zfs_type_t);
|