summaryrefslogtreecommitdiffstats
path: root/xlators/features/read-only/src/read-only-common.h
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2017-03-06 10:19:54 -0500
committerJeff Darcy <jeff@pl.atyp.us>2017-07-11 15:01:51 +0000
commit9ab249130a5dd442044e787f1e171e7a17839906 (patch)
treee5a5dc92b211701a19ce1a787ab69f5a68814c46 /xlators/features/read-only/src/read-only-common.h
parent09f9c6c1c9c565d54c257e58c46004326ec1c495 (diff)
features/read-only: Allow internal clients to r/w
If the "read-only" volume option is set, it would make the volume "read-only". But it also makes it read-only to gluster internal clients such as gsyncd, self heal, bitd, rebalance etc. In which case, all the internal operations would fail. This patch allows internal clients to read and write when "read-only" option is set. Change-Id: I8110e8d9eac8def403bb29f235000ddc79eaa433 BUG: 1430608 Signed-off-by: Kotresh HR <khiremat@redhat.com> Reviewed-on: https://review.gluster.org/16855 NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Karthik U S <ksubrahm@redhat.com> Reviewed-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'xlators/features/read-only/src/read-only-common.h')
-rw-r--r--xlators/features/read-only/src/read-only-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/read-only/src/read-only-common.h b/xlators/features/read-only/src/read-only-common.h
index 248ca47b660..6d8c38faeb8 100644
--- a/xlators/features/read-only/src/read-only-common.h
+++ b/xlators/features/read-only/src/read-only-common.h
@@ -11,7 +11,7 @@
#include "defaults.h"
gf_boolean_t
-is_readonly_or_worm_enabled (xlator_t *this);
+is_readonly_or_worm_enabled (call_frame_t *frame, xlator_t *this);
int32_t
ro_xattrop (call_frame_t *frame, xlator_t *this, loc_t *loc,