134 void zap_byteswap(void *buf, size_t size); |
134 void zap_byteswap(void *buf, size_t size); |
135 void zfs_oldacl_byteswap(void *buf, size_t size); |
135 void zfs_oldacl_byteswap(void *buf, size_t size); |
136 void zfs_acl_byteswap(void *buf, size_t size); |
136 void zfs_acl_byteswap(void *buf, size_t size); |
137 void zfs_znode_byteswap(void *buf, size_t size); |
137 void zfs_znode_byteswap(void *buf, size_t size); |
138 |
138 |
139 #define DS_MODE_NONE 0 /* invalid, to aid debugging */ |
139 #define DS_MODE_NOHOLD 0 /* internal use only */ |
140 #define DS_MODE_STANDARD 1 /* normal access, no special needs */ |
140 #define DS_MODE_USER 1 /* simple access, no special needs */ |
141 #define DS_MODE_PRIMARY 2 /* the "main" access, e.g. a mount */ |
141 #define DS_MODE_OWNER 2 /* the "main" access, e.g. a mount */ |
142 #define DS_MODE_EXCLUSIVE 3 /* exclusive access, e.g. to destroy */ |
142 #define DS_MODE_TYPE_MASK 0x3 |
143 #define DS_MODE_LEVELS 4 |
143 #define DS_MODE_TYPE(x) ((x) & DS_MODE_TYPE_MASK) |
144 #define DS_MODE_LEVEL(x) ((x) & (DS_MODE_LEVELS - 1)) |
|
145 #define DS_MODE_READONLY 0x8 |
144 #define DS_MODE_READONLY 0x8 |
146 #define DS_MODE_IS_READONLY(x) ((x) & DS_MODE_READONLY) |
145 #define DS_MODE_IS_READONLY(x) ((x) & DS_MODE_READONLY) |
147 #define DS_MODE_INCONSISTENT 0x10 |
146 #define DS_MODE_INCONSISTENT 0x10 |
148 #define DS_MODE_IS_INCONSISTENT(x) ((x) & DS_MODE_INCONSISTENT) |
147 #define DS_MODE_IS_INCONSISTENT(x) ((x) & DS_MODE_INCONSISTENT) |
149 |
148 |