usr/src/grub/grub-0.97/stage2/fsys_zfs.h
changeset 13700 2889e2596bd6
parent 13421 a4721c685d96
child 13921 9d721847e469
equal deleted inserted replaced
13699:733714f4dc24 13700:2889e2596bd6
    14  *
    14  *
    15  *  You should have received a copy of the GNU General Public License
    15  *  You should have received a copy of the GNU General Public License
    16  *  along with this program; if not, write to the Free Software
    16  *  along with this program; if not, write to the Free Software
    17  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    17  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    18  */
    18  */
       
    19 
    19 /*
    20 /*
    20  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
    21  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
    21  * Use is subject to license terms.
    22  * Use is subject to license terms.
    22  */
    23  */
       
    24 
       
    25 /*
       
    26  * Copyright (c) 2012 by Delphix. All rights reserved.
       
    27  */
       
    28 
    23 #ifndef _FSYS_ZFS_H
    29 #ifndef _FSYS_ZFS_H
    24 #define	_FSYS_ZFS_H
    30 #define	_FSYS_ZFS_H
    25 
    31 
    26 #ifdef	FSYS_ZFS
    32 #ifdef	FSYS_ZFS
    27 
    33 
   117  * For nvlist manipulation. (from nvpair.h)
   123  * For nvlist manipulation. (from nvpair.h)
   118  */
   124  */
   119 #define	NV_ENCODE_NATIVE	0
   125 #define	NV_ENCODE_NATIVE	0
   120 #define	NV_ENCODE_XDR		1
   126 #define	NV_ENCODE_XDR		1
   121 #define	HOST_ENDIAN		1	/* for x86 machine */
   127 #define	HOST_ENDIAN		1	/* for x86 machine */
   122 #define	DATA_TYPE_UINT64	8
   128 typedef enum {
   123 #define	DATA_TYPE_STRING	9
   129 	DATA_TYPE_UNKNOWN = 0,
   124 #define	DATA_TYPE_NVLIST	19
   130 	DATA_TYPE_BOOLEAN,
   125 #define	DATA_TYPE_NVLIST_ARRAY	20
   131 	DATA_TYPE_BYTE,
       
   132 	DATA_TYPE_INT16,
       
   133 	DATA_TYPE_UINT16,
       
   134 	DATA_TYPE_INT32,
       
   135 	DATA_TYPE_UINT32,
       
   136 	DATA_TYPE_INT64,
       
   137 	DATA_TYPE_UINT64,
       
   138 	DATA_TYPE_STRING,
       
   139 	DATA_TYPE_BYTE_ARRAY,
       
   140 	DATA_TYPE_INT16_ARRAY,
       
   141 	DATA_TYPE_UINT16_ARRAY,
       
   142 	DATA_TYPE_INT32_ARRAY,
       
   143 	DATA_TYPE_UINT32_ARRAY,
       
   144 	DATA_TYPE_INT64_ARRAY,
       
   145 	DATA_TYPE_UINT64_ARRAY,
       
   146 	DATA_TYPE_STRING_ARRAY,
       
   147 	DATA_TYPE_HRTIME,
       
   148 	DATA_TYPE_NVLIST,
       
   149 	DATA_TYPE_NVLIST_ARRAY,
       
   150 	DATA_TYPE_BOOLEAN_VALUE,
       
   151 	DATA_TYPE_INT8,
       
   152 	DATA_TYPE_UINT8,
       
   153 	DATA_TYPE_BOOLEAN_ARRAY,
       
   154 	DATA_TYPE_INT8_ARRAY,
       
   155 	DATA_TYPE_UINT8_ARRAY,
       
   156 	DATA_TYPE_DOUBLE
       
   157 } data_type_t;
   126 
   158 
   127 /*
   159 /*
   128  * Decompression Entry - lzjb
   160  * Decompression Entry - lzjb
   129  */
   161  */
   130 #ifndef	NBBY
   162 #ifndef	NBBY