diff options
author | Anand Avati <avati@redhat.com> | 2013-08-27 05:02:20 -0700 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-09-03 16:09:09 -0700 |
commit | 6f85f6ce64c99e70d3b674e2e01657803ee3c082 (patch) | |
tree | 686a5bdbdfdfb49076609912e051f611071800c8 /xlators/mount | |
parent | 53e98f11d1f3df30cc013af021464a257949a62d (diff) |
afr: make NOP truncate/ftruncate efficient
If truncate/ftruncate is called with the offset as the current size
of file, then skip the durability fsync and unwind quickly.
Change-Id: I0baec68d96c6d4d8217d33bd9738f7ed0d1b40c5
BUG: 958118
Signed-off-by: Anand Avati <avati@redhat.com>
Reviewed-on: http://review.gluster.org/5737
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/mount')
0 files changed, 0 insertions, 0 deletions