]> git.proxmox.com Git - mirror_zfs-debian.git/blobdiff - include/sys/spa.h
New upstream version 0.7.11
[mirror_zfs-debian.git] / include / sys / spa.h
index 3b268419ab9cee55400cfa7e8aa17123cfd14caa..810999c95055e9932bc06b866d0a196ff1aed6aa 100644 (file)
@@ -730,6 +730,7 @@ typedef struct spa_stats {
        spa_stats_history_t     tx_assign_histogram;
        spa_stats_history_t     io_history;
        spa_stats_history_t     mmp_history;
+       spa_stats_history_t     state;          /* pool state */
 } spa_stats_t;
 
 typedef enum txg_state {
@@ -889,6 +890,8 @@ extern void spa_history_log_internal_ds(struct dsl_dataset *ds, const char *op,
 extern void spa_history_log_internal_dd(dsl_dir_t *dd, const char *operation,
     dmu_tx_t *tx, const char *fmt, ...);
 
+extern const char *spa_state_to_name(spa_t *spa);
+
 /* error handling */
 struct zbookmark_phys;
 extern void spa_log_error(spa_t *spa, zio_t *zio);