Print this page
3749 zfs event processing should work on R/O root filesystems
Submitted by:   Justin Gibbs <justing@spectralogic.com>


  29 #ifdef  __cplusplus
  30 extern "C" {
  31 #endif
  32 
  33 #define ZFS_ERROR_CLASS                         "fs.zfs"
  34 
  35 #define FM_EREPORT_ZFS_CHECKSUM                 "checksum"
  36 #define FM_EREPORT_ZFS_IO                       "io"
  37 #define FM_EREPORT_ZFS_DATA                     "data"
  38 #define FM_EREPORT_ZFS_POOL                     "zpool"
  39 #define FM_EREPORT_ZFS_DEVICE_UNKNOWN           "vdev.unknown"
  40 #define FM_EREPORT_ZFS_DEVICE_OPEN_FAILED       "vdev.open_failed"
  41 #define FM_EREPORT_ZFS_DEVICE_CORRUPT_DATA      "vdev.corrupt_data"
  42 #define FM_EREPORT_ZFS_DEVICE_NO_REPLICAS       "vdev.no_replicas"
  43 #define FM_EREPORT_ZFS_DEVICE_BAD_GUID_SUM      "vdev.bad_guid_sum"
  44 #define FM_EREPORT_ZFS_DEVICE_TOO_SMALL         "vdev.too_small"
  45 #define FM_EREPORT_ZFS_DEVICE_BAD_LABEL         "vdev.bad_label"
  46 #define FM_EREPORT_ZFS_IO_FAILURE               "io_failure"
  47 #define FM_EREPORT_ZFS_PROBE_FAILURE            "probe_failure"
  48 #define FM_EREPORT_ZFS_LOG_REPLAY               "log_replay"

  49 
  50 #define FM_EREPORT_PAYLOAD_ZFS_POOL             "pool"
  51 #define FM_EREPORT_PAYLOAD_ZFS_POOL_FAILMODE    "pool_failmode"
  52 #define FM_EREPORT_PAYLOAD_ZFS_POOL_GUID        "pool_guid"
  53 #define FM_EREPORT_PAYLOAD_ZFS_POOL_CONTEXT     "pool_context"
  54 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_GUID        "vdev_guid"
  55 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_TYPE        "vdev_type"
  56 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_PATH        "vdev_path"
  57 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_DEVID       "vdev_devid"
  58 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_FRU         "vdev_fru"
  59 #define FM_EREPORT_PAYLOAD_ZFS_PARENT_GUID      "parent_guid"
  60 #define FM_EREPORT_PAYLOAD_ZFS_PARENT_TYPE      "parent_type"
  61 #define FM_EREPORT_PAYLOAD_ZFS_PARENT_PATH      "parent_path"
  62 #define FM_EREPORT_PAYLOAD_ZFS_PARENT_DEVID     "parent_devid"
  63 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_OBJSET       "zio_objset"
  64 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_OBJECT       "zio_object"
  65 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_LEVEL        "zio_level"
  66 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_BLKID        "zio_blkid"
  67 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_ERR          "zio_err"
  68 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_OFFSET       "zio_offset"




  29 #ifdef  __cplusplus
  30 extern "C" {
  31 #endif
  32 
  33 #define ZFS_ERROR_CLASS                         "fs.zfs"
  34 
  35 #define FM_EREPORT_ZFS_CHECKSUM                 "checksum"
  36 #define FM_EREPORT_ZFS_IO                       "io"
  37 #define FM_EREPORT_ZFS_DATA                     "data"
  38 #define FM_EREPORT_ZFS_POOL                     "zpool"
  39 #define FM_EREPORT_ZFS_DEVICE_UNKNOWN           "vdev.unknown"
  40 #define FM_EREPORT_ZFS_DEVICE_OPEN_FAILED       "vdev.open_failed"
  41 #define FM_EREPORT_ZFS_DEVICE_CORRUPT_DATA      "vdev.corrupt_data"
  42 #define FM_EREPORT_ZFS_DEVICE_NO_REPLICAS       "vdev.no_replicas"
  43 #define FM_EREPORT_ZFS_DEVICE_BAD_GUID_SUM      "vdev.bad_guid_sum"
  44 #define FM_EREPORT_ZFS_DEVICE_TOO_SMALL         "vdev.too_small"
  45 #define FM_EREPORT_ZFS_DEVICE_BAD_LABEL         "vdev.bad_label"
  46 #define FM_EREPORT_ZFS_IO_FAILURE               "io_failure"
  47 #define FM_EREPORT_ZFS_PROBE_FAILURE            "probe_failure"
  48 #define FM_EREPORT_ZFS_LOG_REPLAY               "log_replay"
  49 #define FM_EREPORT_ZFS_CONFIG_CACHE_WRITE       "config_cache_write"
  50 
  51 #define FM_EREPORT_PAYLOAD_ZFS_POOL             "pool"
  52 #define FM_EREPORT_PAYLOAD_ZFS_POOL_FAILMODE    "pool_failmode"
  53 #define FM_EREPORT_PAYLOAD_ZFS_POOL_GUID        "pool_guid"
  54 #define FM_EREPORT_PAYLOAD_ZFS_POOL_CONTEXT     "pool_context"
  55 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_GUID        "vdev_guid"
  56 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_TYPE        "vdev_type"
  57 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_PATH        "vdev_path"
  58 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_DEVID       "vdev_devid"
  59 #define FM_EREPORT_PAYLOAD_ZFS_VDEV_FRU         "vdev_fru"
  60 #define FM_EREPORT_PAYLOAD_ZFS_PARENT_GUID      "parent_guid"
  61 #define FM_EREPORT_PAYLOAD_ZFS_PARENT_TYPE      "parent_type"
  62 #define FM_EREPORT_PAYLOAD_ZFS_PARENT_PATH      "parent_path"
  63 #define FM_EREPORT_PAYLOAD_ZFS_PARENT_DEVID     "parent_devid"
  64 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_OBJSET       "zio_objset"
  65 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_OBJECT       "zio_object"
  66 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_LEVEL        "zio_level"
  67 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_BLKID        "zio_blkid"
  68 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_ERR          "zio_err"
  69 #define FM_EREPORT_PAYLOAD_ZFS_ZIO_OFFSET       "zio_offset"