From 47a19340a72ccc06c946c0f2c84c601de81999be Mon Sep 17 00:00:00 2001 From: Ravishankar N Date: Thu, 25 Jun 2015 00:22:41 +0530 Subject: afr: Block fops when file is in split-brain Backport of http://review.gluster.org/#/c/11371/ For directories, block metadata FOPS. For non-directories, block data and metadata FOPS. Do not block entry FOPS. Change-Id: I23963648291ec1136a5a35052ed0b7bc1b3059e7 BUG: 1235934 Signed-off-by: Ravishankar N Reviewed-on: http://review.gluster.org/11420 Reviewed-by: Pranith Kumar Karampuri Tested-by: NetBSD Build System Tested-by: Gluster Build System --- xlators/cluster/afr/src/afr.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/cluster/afr/src/afr.h') diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h index e6e7f3eb13b..729ae82f08c 100644 --- a/xlators/cluster/afr/src/afr.h +++ b/xlators/cluster/afr/src/afr.h @@ -766,6 +766,9 @@ typedef struct afr_read_subvol_args { (op_errno == EBADFD))) int +afr_inode_get_readable (call_frame_t *frame, inode_t *inode, xlator_t *this, + unsigned char *readable, int *event_p, int type); +int afr_inode_read_subvol_get (inode_t *inode, xlator_t *this, unsigned char *data_subvols, unsigned char *metadata_subvols, -- cgit