zap_impl.h (185029) | zap_impl.h (209962) |
---|---|
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 --- 5 unchanged lines hidden (view full) --- 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* | 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 --- 5 unchanged lines hidden (view full) --- 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* |
22 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. | 22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
23 * Use is subject to license terms. 24 */ 25 26#ifndef _SYS_ZAP_IMPL_H 27#define _SYS_ZAP_IMPL_H 28 | 23 * Use is subject to license terms. 24 */ 25 26#ifndef _SYS_ZAP_IMPL_H 27#define _SYS_ZAP_IMPL_H 28 |
29#pragma ident "%Z%%M% %I% %E% SMI" 30 | |
31#include <sys/zap.h> 32#include <sys/zfs_context.h> 33#include <sys/avl.h> 34 35#ifdef __cplusplus 36extern "C" { 37#endif 38 --- 151 unchanged lines hidden (view full) --- 190 191#define ZAP_HASH_IDX(hash, n) (((n) == 0) ? 0 : ((hash) >> (64 - (n)))) 192 193void fzap_byteswap(void *buf, size_t size); 194int fzap_count(zap_t *zap, uint64_t *count); 195int fzap_lookup(zap_name_t *zn, 196 uint64_t integer_size, uint64_t num_integers, void *buf, 197 char *realname, int rn_len, boolean_t *normalization_conflictp); | 29#include <sys/zap.h> 30#include <sys/zfs_context.h> 31#include <sys/avl.h> 32 33#ifdef __cplusplus 34extern "C" { 35#endif 36 --- 151 unchanged lines hidden (view full) --- 188 189#define ZAP_HASH_IDX(hash, n) (((n) == 0) ? 0 : ((hash) >> (64 - (n)))) 190 191void fzap_byteswap(void *buf, size_t size); 192int fzap_count(zap_t *zap, uint64_t *count); 193int fzap_lookup(zap_name_t *zn, 194 uint64_t integer_size, uint64_t num_integers, void *buf, 195 char *realname, int rn_len, boolean_t *normalization_conflictp); |
196int fzap_count_write(zap_name_t *zn, int add, uint64_t *towrite, 197 uint64_t *tooverwrite); |
|
198int fzap_add(zap_name_t *zn, uint64_t integer_size, uint64_t num_integers, 199 const void *val, dmu_tx_t *tx); 200int fzap_update(zap_name_t *zn, 201 int integer_size, uint64_t num_integers, const void *val, dmu_tx_t *tx); 202int fzap_length(zap_name_t *zn, 203 uint64_t *integer_size, uint64_t *num_integers); 204int fzap_remove(zap_name_t *zn, dmu_tx_t *tx); 205int fzap_cursor_retrieve(zap_t *zap, zap_cursor_t *zc, zap_attribute_t *za); --- 13 unchanged lines hidden --- | 198int fzap_add(zap_name_t *zn, uint64_t integer_size, uint64_t num_integers, 199 const void *val, dmu_tx_t *tx); 200int fzap_update(zap_name_t *zn, 201 int integer_size, uint64_t num_integers, const void *val, dmu_tx_t *tx); 202int fzap_length(zap_name_t *zn, 203 uint64_t *integer_size, uint64_t *num_integers); 204int fzap_remove(zap_name_t *zn, dmu_tx_t *tx); 205int fzap_cursor_retrieve(zap_t *zap, zap_cursor_t *zc, zap_attribute_t *za); --- 13 unchanged lines hidden --- |