Add snapdev=[hidden|visible] dataset property
[zfs.git] / include / sys / zfs_ioctl.h
index e3fd2c3..740d8ed 100644 (file)
@@ -47,6 +47,12 @@ extern "C" {
 #define        ZFS_SNAPDIR_VISIBLE             1
 
 /*
+ * Property values for snapdev
+ */
+#define        ZFS_SNAPDEV_HIDDEN              0
+#define        ZFS_SNAPDEV_VISIBLE             1
+
+/*
  * Field manipulation macros for the drr_versioninfo field of the
  * send stream header.
  */
@@ -286,7 +292,8 @@ typedef struct zfs_cmd {
        boolean_t       zc_temphold;
        uint64_t        zc_action_handle;
        int             zc_cleanup_fd;
-       uint8_t         zc_pad[4];              /* alignment */
+       uint8_t         zc_simple;
+       uint8_t         zc_pad[3];              /* alignment */
        uint64_t        zc_sendobj;
        uint64_t        zc_fromobj;
        uint64_t        zc_createtxg;