zil.h (276081) | zil.h (288569) |
---|---|
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 --- 23 unchanged lines hidden (view full) --- 32#include <sys/spa.h> 33#include <sys/zio.h> 34#include <sys/dmu.h> 35 36#ifdef __cplusplus 37extern "C" { 38#endif 39 | 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 --- 23 unchanged lines hidden (view full) --- 32#include <sys/spa.h> 33#include <sys/zio.h> 34#include <sys/dmu.h> 35 36#ifdef __cplusplus 37extern "C" { 38#endif 39 |
40struct dsl_pool; 41struct dsl_dataset; 42 |
|
40/* 41 * Intent log format: 42 * 43 * Each objset has its own intent log. The log header (zil_header_t) 44 * for objset N's intent log is kept in the Nth object of the SPA's 45 * intent_log objset. The log header points to a chain of log blocks, 46 * each of which contains log records (i.e., transactions) followed by 47 * a log block trailer (zil_trailer_t). The format of a log record --- 351 unchanged lines hidden (view full) --- 399 400extern itx_t *zil_itx_create(uint64_t txtype, size_t lrsize); 401extern void zil_itx_destroy(itx_t *itx); 402extern void zil_itx_assign(zilog_t *zilog, itx_t *itx, dmu_tx_t *tx); 403 404extern void zil_commit(zilog_t *zilog, uint64_t oid); 405 406extern int zil_vdev_offline(const char *osname, void *txarg); | 43/* 44 * Intent log format: 45 * 46 * Each objset has its own intent log. The log header (zil_header_t) 47 * for objset N's intent log is kept in the Nth object of the SPA's 48 * intent_log objset. The log header points to a chain of log blocks, 49 * each of which contains log records (i.e., transactions) followed by 50 * a log block trailer (zil_trailer_t). The format of a log record --- 351 unchanged lines hidden (view full) --- 402 403extern itx_t *zil_itx_create(uint64_t txtype, size_t lrsize); 404extern void zil_itx_destroy(itx_t *itx); 405extern void zil_itx_assign(zilog_t *zilog, itx_t *itx, dmu_tx_t *tx); 406 407extern void zil_commit(zilog_t *zilog, uint64_t oid); 408 409extern int zil_vdev_offline(const char *osname, void *txarg); |
407extern int zil_claim(const char *osname, void *txarg); 408extern int zil_check_log_chain(const char *osname, void *txarg); | 410extern int zil_claim(struct dsl_pool *dp, 411 struct dsl_dataset *ds, void *txarg); 412extern int zil_check_log_chain(struct dsl_pool *dp, 413 struct dsl_dataset *ds, void *tx); |
409extern void zil_sync(zilog_t *zilog, dmu_tx_t *tx); 410extern void zil_clean(zilog_t *zilog, uint64_t synced_txg); 411 412extern int zil_suspend(const char *osname, void **cookiep); 413extern void zil_resume(void *cookie); 414 415extern void zil_add_block(zilog_t *zilog, const blkptr_t *bp); 416extern int zil_bp_tree_add(zilog_t *zilog, const blkptr_t *bp); --- 12 unchanged lines hidden --- | 414extern void zil_sync(zilog_t *zilog, dmu_tx_t *tx); 415extern void zil_clean(zilog_t *zilog, uint64_t synced_txg); 416 417extern int zil_suspend(const char *osname, void **cookiep); 418extern void zil_resume(void *cookie); 419 420extern void zil_add_block(zilog_t *zilog, const blkptr_t *bp); 421extern int zil_bp_tree_add(zilog_t *zilog, const blkptr_t *bp); --- 12 unchanged lines hidden --- |