| 1 |
/* |
| 2 |
Copyright (c) 2008-2012 Red Hat, Inc. <http://www.redhat.com> |
| 3 |
This file is part of GlusterFS. |
| 4 |
|
| 5 |
This file is licensed to you under your choice of the GNU Lesser |
| 6 |
General Public License, version 3 or any later version (LGPLv3 or |
| 7 |
later), or the GNU General Public License, version 2 (GPLv2), in all |
| 8 |
cases as published by the Free Software Foundation. |
| 9 |
*/ |
| 10 |
|
| 11 |
#ifndef __TRANSACTION_H__ |
| 12 |
#define __TRANSACTION_H__ |
| 13 |
|
| 14 |
#include "afr.h" |
| 15 |
|
| 16 |
void |
| 17 |
afr_transaction_fop_failed(afr_local_t *local, int child_index); |
| 18 |
|
| 19 |
int32_t |
| 20 |
afr_transaction(call_frame_t *frame, xlator_t *this, afr_transaction_type type); |
| 21 |
|
| 22 |
int |
| 23 |
afr_set_pending_dict(afr_private_t *priv, dict_t *xattr, int32_t **pending); |
| 24 |
|
| 25 |
void |
| 26 |
afr_delayed_changelog_wake_up(xlator_t *this, fd_t *fd); |
| 27 |
|
| 28 |
void |
| 29 |
__mark_all_success(call_frame_t *frame, xlator_t *this); |
| 30 |
|
| 31 |
gf_boolean_t |
| 32 |
afr_txn_nothing_failed(call_frame_t *frame, xlator_t *this); |
| 33 |
|
| 34 |
int |
| 35 |
afr_read_txn(call_frame_t *frame, xlator_t *this, inode_t *inode, |
| 36 |
afr_read_txn_wind_t readfn, afr_transaction_type type); |
| 37 |
|
| 38 |
int |
| 39 |
afr_read_txn_continue(call_frame_t *frame, xlator_t *this, int subvol); |
| 40 |
|
| 41 |
void |
| 42 |
afr_pending_read_increment(afr_private_t *priv, int child_index); |
| 43 |
|
| 44 |
void |
| 45 |
afr_pending_read_decrement(afr_private_t *priv, int child_index); |
| 46 |
|
| 47 |
call_frame_t * |
| 48 |
afr_transaction_detach_fop_frame(call_frame_t *frame); |
| 49 |
gf_boolean_t |
| 50 |
afr_has_quorum(unsigned char *subvols, afr_private_t *priv, |
| 51 |
call_frame_t *frame); |
| 52 |
gf_boolean_t |
| 53 |
afr_needs_changelog_update(afr_local_t *local); |
| 54 |
void |
| 55 |
afr_zero_fill_stat(afr_local_t *local); |
| 56 |
|
| 57 |
void |
| 58 |
afr_pick_error_xdata(afr_local_t *local, unsigned int child_count, |
| 59 |
inode_t *inode1, unsigned char *readable1, inode_t *inode2, |
| 60 |
unsigned char *readable2); |
| 61 |
int |
| 62 |
afr_transaction_resume(call_frame_t *frame, xlator_t *this); |
| 63 |
|
| 64 |
int |
| 65 |
afr_lock(call_frame_t *frame, xlator_t *this); |
| 66 |
|
| 67 |
void |
| 68 |
afr_delayed_changelog_wake_up_cbk(void *data); |
| 69 |
|
| 70 |
int |
| 71 |
afr_release_notify_lock_for_ta(void *opaque); |
| 72 |
|
| 73 |
int |
| 74 |
afr_ta_lock_release_done(int ret, call_frame_t *ta_frame, void *opaque); |
| 75 |
#endif /* __TRANSACTION_H__ */ |