path: root/xlators/cluster/afr/src/afr-dir-write.c
diff options
authorPranith Kumar K <>2012-07-25 09:56:58 +0530
committerAnand Avati <>2012-07-25 15:02:39 -0700
commit75ee490213b7f7673970ef80dee3bcc567848c26 (patch)
treeae3680385a4fec07cd8b6bb5f1551cbfb6c91c9b /xlators/cluster/afr/src/afr-dir-write.c
parent787d52d8e8bf415e48fa41ff9c7fef4693804903 (diff)
cluster/afr: Perform data self-heal for non regular files
RCA: Data self-heal for non regular files open the files and then proceeds using that fd. This approach does not work for symlinks because open on symlink opens the file resolved by it. Fix: If the file is not a regular file then perform self-heal using loc. It needs to get 'big' lock and then perform lookup to get changelog then erase data part of chagelog, then unlock. Test cases: Automated at Change-Id: I924a922f5135872efe2cccf2e712ada082c5689f BUG: 811317 Signed-off-by: Pranith Kumar K <> Reviewed-on: Tested-by: Gluster Build System <> Reviewed-by: Jeff Darcy <> Reviewed-by: Anand Avati <>
Diffstat (limited to 'xlators/cluster/afr/src/afr-dir-write.c')
0 files changed, 0 insertions, 0 deletions