usr/src/uts/common/fs/zfs/sys/zio.h
changeset 6423 437422a29d3a
parent 5688 c0b02c8fd2c0
child 6523 c1d2a7f04573
equal deleted inserted replaced
6422:d51a10d738ba 6423:437422a29d3a
    18  *
    18  *
    19  * CDDL HEADER END
    19  * CDDL HEADER END
    20  */
    20  */
    21 
    21 
    22 /*
    22 /*
    23  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
    23  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
    24  * Use is subject to license terms.
    24  * Use is subject to license terms.
    25  */
    25  */
    26 
    26 
    27 #ifndef _ZIO_H
    27 #ifndef _ZIO_H
    28 #define	_ZIO_H
    28 #define	_ZIO_H
   176 
   176 
   177 #define	ZIO_PIPELINE_CONTINUE		0x100
   177 #define	ZIO_PIPELINE_CONTINUE		0x100
   178 #define	ZIO_PIPELINE_STOP		0x101
   178 #define	ZIO_PIPELINE_STOP		0x101
   179 
   179 
   180 /*
   180 /*
   181  * We'll take the unused errno 'EBADE' (from the Convergent graveyard)
   181  * We'll take the unused errnos, 'EBADE' and 'EBADR' (from the Convergent
   182  * to indicate checksum errors.
   182  * graveyard) to indicate checksum errors and fragmentation.
   183  */
   183  */
   184 #define	ECKSUM	EBADE
   184 #define	ECKSUM	EBADE
       
   185 #define	EFRAGS	EBADR
   185 
   186 
   186 typedef struct zio zio_t;
   187 typedef struct zio zio_t;
   187 typedef void zio_done_func_t(zio_t *zio);
   188 typedef void zio_done_func_t(zio_t *zio);
   188 
   189 
   189 extern uint8_t zio_priority_table[ZIO_PRIORITY_TABLE_SIZE];
   190 extern uint8_t zio_priority_table[ZIO_PRIORITY_TABLE_SIZE];