zio.h (320496) | zio.h (330238) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 206 unchanged lines hidden (view full) --- 215#define ZIO_GANG_CHILD_FLAGS(zio) \ 216 (((zio)->io_flags & ZIO_FLAG_GANG_INHERIT) | \ 217 ZIO_FLAG_GANG_CHILD | ZIO_FLAG_CANFAIL) 218 219#define ZIO_VDEV_CHILD_FLAGS(zio) \ 220 (((zio)->io_flags & ZIO_FLAG_VDEV_INHERIT) | \ 221 ZIO_FLAG_CANFAIL) 222 | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 206 unchanged lines hidden (view full) --- 215#define ZIO_GANG_CHILD_FLAGS(zio) \ 216 (((zio)->io_flags & ZIO_FLAG_GANG_INHERIT) | \ 217 ZIO_FLAG_GANG_CHILD | ZIO_FLAG_CANFAIL) 218 219#define ZIO_VDEV_CHILD_FLAGS(zio) \ 220 (((zio)->io_flags & ZIO_FLAG_VDEV_INHERIT) | \ 221 ZIO_FLAG_CANFAIL) 222 |
223#define ZIO_CHILD_BIT(x) (1 << (x)) 224#define ZIO_CHILD_BIT_IS_SET(val, x) ((val) & (1 << (x))) 225 |
|
223enum zio_child { 224 ZIO_CHILD_VDEV = 0, 225 ZIO_CHILD_GANG, 226 ZIO_CHILD_DDT, 227 ZIO_CHILD_LOGICAL, 228 ZIO_CHILD_TYPES 229}; 230 | 226enum zio_child { 227 ZIO_CHILD_VDEV = 0, 228 ZIO_CHILD_GANG, 229 ZIO_CHILD_DDT, 230 ZIO_CHILD_LOGICAL, 231 ZIO_CHILD_TYPES 232}; 233 |
234#define ZIO_CHILD_VDEV_BIT ZIO_CHILD_BIT(ZIO_CHILD_VDEV) 235#define ZIO_CHILD_GANG_BIT ZIO_CHILD_BIT(ZIO_CHILD_GANG) 236#define ZIO_CHILD_DDT_BIT ZIO_CHILD_BIT(ZIO_CHILD_DDT) 237#define ZIO_CHILD_LOGICAL_BIT ZIO_CHILD_BIT(ZIO_CHILD_LOGICAL) 238#define ZIO_CHILD_ALL_BITS \ 239 (ZIO_CHILD_VDEV_BIT | ZIO_CHILD_GANG_BIT | \ 240 ZIO_CHILD_DDT_BIT | ZIO_CHILD_LOGICAL_BIT) 241 |
|
231enum zio_wait_type { 232 ZIO_WAIT_READY = 0, 233 ZIO_WAIT_DONE, 234 ZIO_WAIT_TYPES 235}; 236 237/* 238 * We'll take the number 122 and 123 to indicate checksum errors and --- 421 unchanged lines hidden --- | 242enum zio_wait_type { 243 ZIO_WAIT_READY = 0, 244 ZIO_WAIT_DONE, 245 ZIO_WAIT_TYPES 246}; 247 248/* 249 * We'll take the number 122 and 123 to indicate checksum errors and --- 421 unchanged lines hidden --- |