|
21 | 21 |
|
22 | 22 | /*
|
23 | 23 | * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
|
24 |
| - * Copyright (c) 2011, 2024 by Delphix. All rights reserved. |
| 24 | + * Copyright (c) 2011, 2014, 2016, 2024 by Delphix. All rights reserved. |
25 | 25 | * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
|
26 | 26 | * Copyright (c) 2013, 2017 Joyent, Inc. All rights reserved.
|
27 | 27 | * Copyright (c) 2014 Integros [integros.com]
|
|
37 | 37 | #define _SYS_FS_ZFS_H extern __attribute__((visibility("default")))
|
38 | 38 |
|
39 | 39 | #include <sys/time.h>
|
40 |
| -#include <sys/zio_priority.h> |
41 | 40 |
|
42 | 41 | #ifdef __cplusplus
|
43 | 42 | extern "C" {
|
@@ -1126,6 +1125,26 @@ typedef enum zio_type {
|
1126 | 1125 | */
|
1127 | 1126 | #define ZIO_TYPE_IOCTL ZIO_TYPE_FLUSH
|
1128 | 1127 |
|
| 1128 | +/* |
| 1129 | + * ZIO priority types. Needed to interpret vdev statistics below. |
| 1130 | + * |
| 1131 | + * NOTE: PLEASE UPDATE THE ENUM STRINGS IN zfs_valstr.c IF YOU ADD ANOTHER |
| 1132 | + * VALUE. |
| 1133 | + */ |
| 1134 | +typedef enum zio_priority { |
| 1135 | + ZIO_PRIORITY_SYNC_READ, |
| 1136 | + ZIO_PRIORITY_SYNC_WRITE, /* ZIL */ |
| 1137 | + ZIO_PRIORITY_ASYNC_READ, /* prefetch */ |
| 1138 | + ZIO_PRIORITY_ASYNC_WRITE, /* spa_sync() */ |
| 1139 | + ZIO_PRIORITY_SCRUB, /* asynchronous scrub/resilver reads */ |
| 1140 | + ZIO_PRIORITY_REMOVAL, /* reads/writes for vdev removal */ |
| 1141 | + ZIO_PRIORITY_INITIALIZING, /* initializing I/O */ |
| 1142 | + ZIO_PRIORITY_TRIM, /* trim I/O (discard) */ |
| 1143 | + ZIO_PRIORITY_REBUILD, /* reads/writes for vdev rebuild */ |
| 1144 | + ZIO_PRIORITY_NUM_QUEUEABLE, |
| 1145 | + ZIO_PRIORITY_NOW, /* non-queued i/os (e.g. free) */ |
| 1146 | +} zio_priority_t; |
| 1147 | + |
1129 | 1148 | /*
|
1130 | 1149 | * Pool statistics. Note: all fields should be 64-bit because this
|
1131 | 1150 | * is passed between kernel and userland as an nvlist uint64 array.
|
|
0 commit comments