zil_impl.h revision fa9e4066f08beec538e775443c5be79dd423fcab
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_ZIL_IMPL_H
#define _SYS_ZIL_IMPL_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/dmu_objset.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef enum lwb_state_type {
UNWRITTEN, /* buffer yet to be written */
SEQ_INCOMPLETE, /* buffer written, but there's an unwritten buffer in */
/* the sequence before this */
SEQ_COMPLETE, /* no unwritten buffers before this */
} lwb_state_t;
/*
* Log write buffer.
*/
typedef struct lwb {
int lwb_nused; /* # used bytes in buffer */
int lwb_sz; /* size of block and buffer */
char *lwb_buf; /* log write buffer */
} lwb_t;
/*
* [vdev, seq] element for use in flushing device write caches
*/
typedef struct zil_vdev {
} zil_vdev_t;
/*
* Stable storage intent log management structure. One per dataset.
*/
struct zilog {
};
typedef struct zil_dva_node {
#ifdef __cplusplus
}
#endif
#endif /* _SYS_ZIL_IMPL_H */