zil.h (200724) | zil.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 --- 125 unchanged lines hidden (view full) --- 134#define TX_ACL_V0 12 /* Set old formatted ACL */ 135#define TX_ACL 13 /* Set ACL */ 136#define TX_CREATE_ACL 14 /* create with ACL */ 137#define TX_CREATE_ATTR 15 /* create + attrs */ 138#define TX_CREATE_ACL_ATTR 16 /* create with ACL + attrs */ 139#define TX_MKDIR_ACL 17 /* mkdir with ACL */ 140#define TX_MKDIR_ATTR 18 /* mkdir with attr */ 141#define TX_MKDIR_ACL_ATTR 19 /* mkdir with ACL + attrs */ | 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 --- 125 unchanged lines hidden (view full) --- 134#define TX_ACL_V0 12 /* Set old formatted ACL */ 135#define TX_ACL 13 /* Set ACL */ 136#define TX_CREATE_ACL 14 /* create with ACL */ 137#define TX_CREATE_ATTR 15 /* create + attrs */ 138#define TX_CREATE_ACL_ATTR 16 /* create with ACL + attrs */ 139#define TX_MKDIR_ACL 17 /* mkdir with ACL */ 140#define TX_MKDIR_ATTR 18 /* mkdir with attr */ 141#define TX_MKDIR_ACL_ATTR 19 /* mkdir with ACL + attrs */ |
142#define TX_MAX_TYPE 20 /* Max transaction type */ | 142#define TX_WRITE2 20 /* dmu_sync EALREADY write */ 143#define TX_MAX_TYPE 21 /* Max transaction type */ |
143 144/* 145 * The transactions for mkdir, symlink, remove, rmdir, link, and rename 146 * may have the following bit set, indicating the original request 147 * specified case-insensitive handling of names. 148 */ 149#define TX_CI ((uint64_t)0x1 << 63) /* case-insensitive behavior requested */ 150 --- 185 unchanged lines hidden (view full) --- 336} zgd_t; 337 338 339typedef void zil_parse_blk_func_t(zilog_t *zilog, blkptr_t *bp, void *arg, 340 uint64_t txg); 341typedef void zil_parse_lr_func_t(zilog_t *zilog, lr_t *lr, void *arg, 342 uint64_t txg); 343typedef int zil_replay_func_t(); | 144 145/* 146 * The transactions for mkdir, symlink, remove, rmdir, link, and rename 147 * may have the following bit set, indicating the original request 148 * specified case-insensitive handling of names. 149 */ 150#define TX_CI ((uint64_t)0x1 << 63) /* case-insensitive behavior requested */ 151 --- 185 unchanged lines hidden (view full) --- 337} zgd_t; 338 339 340typedef void zil_parse_blk_func_t(zilog_t *zilog, blkptr_t *bp, void *arg, 341 uint64_t txg); 342typedef void zil_parse_lr_func_t(zilog_t *zilog, lr_t *lr, void *arg, 343 uint64_t txg); 344typedef int zil_replay_func_t(); |
344typedef void zil_replay_cleaner_t(); | |
345typedef int zil_get_data_t(void *arg, lr_write_t *lr, char *dbuf, zio_t *zio); 346 347extern uint64_t zil_parse(zilog_t *zilog, zil_parse_blk_func_t *parse_blk_func, 348 zil_parse_lr_func_t *parse_lr_func, void *arg, uint64_t txg); 349 350extern void zil_init(void); 351extern void zil_fini(void); 352 353extern zilog_t *zil_alloc(objset_t *os, zil_header_t *zh_phys); 354extern void zil_free(zilog_t *zilog); 355 356extern zilog_t *zil_open(objset_t *os, zil_get_data_t *get_data); 357extern void zil_close(zilog_t *zilog); 358 | 345typedef int zil_get_data_t(void *arg, lr_write_t *lr, char *dbuf, zio_t *zio); 346 347extern uint64_t zil_parse(zilog_t *zilog, zil_parse_blk_func_t *parse_blk_func, 348 zil_parse_lr_func_t *parse_lr_func, void *arg, uint64_t txg); 349 350extern void zil_init(void); 351extern void zil_fini(void); 352 353extern zilog_t *zil_alloc(objset_t *os, zil_header_t *zh_phys); 354extern void zil_free(zilog_t *zilog); 355 356extern zilog_t *zil_open(objset_t *os, zil_get_data_t *get_data); 357extern void zil_close(zilog_t *zilog); 358 |
359extern void zil_replay(objset_t *os, void *arg, uint64_t *txgp, 360 zil_replay_func_t *replay_func[TX_MAX_TYPE], 361 zil_replay_cleaner_t *replay_cleaner); | 359extern void zil_replay(objset_t *os, void *arg, 360 zil_replay_func_t *replay_func[TX_MAX_TYPE]); |
362extern void zil_destroy(zilog_t *zilog, boolean_t keep_first); 363extern void zil_rollback_destroy(zilog_t *zilog, dmu_tx_t *tx); 364 365extern itx_t *zil_itx_create(uint64_t txtype, size_t lrsize); 366extern uint64_t zil_itx_assign(zilog_t *zilog, itx_t *itx, dmu_tx_t *tx); 367 368extern void zil_commit(zilog_t *zilog, uint64_t seq, uint64_t oid); 369 370extern int zil_claim(char *osname, void *txarg); 371extern int zil_check_log_chain(char *osname, void *txarg); 372extern int zil_clear_log_chain(char *osname, void *txarg); 373extern void zil_sync(zilog_t *zilog, dmu_tx_t *tx); 374extern void zil_clean(zilog_t *zilog); 375extern int zil_is_committed(zilog_t *zilog); 376 377extern int zil_suspend(zilog_t *zilog); 378extern void zil_resume(zilog_t *zilog); 379 380extern void zil_add_block(zilog_t *zilog, blkptr_t *bp); | 361extern void zil_destroy(zilog_t *zilog, boolean_t keep_first); 362extern void zil_rollback_destroy(zilog_t *zilog, dmu_tx_t *tx); 363 364extern itx_t *zil_itx_create(uint64_t txtype, size_t lrsize); 365extern uint64_t zil_itx_assign(zilog_t *zilog, itx_t *itx, dmu_tx_t *tx); 366 367extern void zil_commit(zilog_t *zilog, uint64_t seq, uint64_t oid); 368 369extern int zil_claim(char *osname, void *txarg); 370extern int zil_check_log_chain(char *osname, void *txarg); 371extern int zil_clear_log_chain(char *osname, void *txarg); 372extern void zil_sync(zilog_t *zilog, dmu_tx_t *tx); 373extern void zil_clean(zilog_t *zilog); 374extern int zil_is_committed(zilog_t *zilog); 375 376extern int zil_suspend(zilog_t *zilog); 377extern void zil_resume(zilog_t *zilog); 378 379extern void zil_add_block(zilog_t *zilog, blkptr_t *bp); |
380extern void zil_get_replay_data(zilog_t *zilog, lr_write_t *lr); |
|
381 382extern int zil_disable; 383 384#ifdef __cplusplus 385} 386#endif 387 388#endif /* _SYS_ZIL_H */ | 381 382extern int zil_disable; 383 384#ifdef __cplusplus 385} 386#endif 387 388#endif /* _SYS_ZIL_H */ |