3246 ZFS I/O deadman thread
[zfs.git] / include / sys / zfs_ioctl.h
index e3fd2c3..c0cb470 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.
  */
@@ -230,6 +236,8 @@ typedef struct zinject_record {
        uint32_t        zi_iotype;
        int32_t         zi_duration;
        uint64_t        zi_timer;
+       uint32_t        zi_cmd;
+       uint32_t        zi_pad;
 } zinject_record_t;
 
 #define        ZINJECT_NULL            0x1
@@ -239,6 +247,16 @@ typedef struct zinject_record {
 #define        ZEVENT_NONBLOCK         0x1
 #define        ZEVENT_SIZE             1024
 
+typedef enum zinject_type {
+       ZINJECT_UNINITIALIZED,
+       ZINJECT_DATA_FAULT,
+       ZINJECT_DEVICE_FAULT,
+       ZINJECT_LABEL_FAULT,
+       ZINJECT_IGNORED_WRITES,
+       ZINJECT_PANIC,
+       ZINJECT_DELAY_IO,
+} zinject_type_t;
+
 typedef struct zfs_share {
        uint64_t        z_exportdata;
        uint64_t        z_sharedata;
@@ -286,7 +304,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;