diff options
author | SonaArora <aarorasona@gmail.com> | 2017-07-26 17:43:45 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2017-08-07 13:15:37 +0000 |
commit | ebc8237d8c445af208446c937f31aa311d1efb2c (patch) | |
tree | b92dc49351e7a5b503db2a768f5290917fdb61df /xlators/features/read-only/src/read-only.c | |
parent | 42c057a6d1a03dd2825a278393acb15d52220c8d (diff) |
read-only : currently read-only doesn't implement fallocate
PROBLEM STATEMENT: read-only should block fallocate call if its enabled,
else pass to next xlator. Implemented this functionality in read-only.
BUG: 1475300
Change-Id: I57c51eb4f1519ba75d7291eba49554e6ed4a25eb
Signed-off-by: SonaArora <aarorasona@gmail.com>
Reviewed-on: https://review.gluster.org/17879
Smoke: Gluster Build System <jenkins@build.gluster.org>
Tested-by: Karthik U S <ksubrahm@redhat.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Karthik U S <ksubrahm@redhat.com>
Reviewed-by: Ashish Pandey <aspandey@redhat.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'xlators/features/read-only/src/read-only.c')
-rw-r--r-- | xlators/features/read-only/src/read-only.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/features/read-only/src/read-only.c b/xlators/features/read-only/src/read-only.c index 8733a40abce..75d6d104d45 100644 --- a/xlators/features/read-only/src/read-only.c +++ b/xlators/features/read-only/src/read-only.c @@ -115,6 +115,7 @@ struct xlator_fops fops = { .entrylk = ro_entrylk, .fentrylk = ro_fentrylk, .lk = ro_lk, + .fallocate = ro_fallocate, }; struct xlator_cbks cbks = { |