summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr.h
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2011-03-10 03:21:21 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-14 03:09:07 -0700
commit2108ee66f226a124fd2ec20692e9941ed15464a5 (patch)
tree0126148edc09ac7c491444d906e4835c7449ffdd /xlators/cluster/afr/src/afr.h
parent3145f70fc27d8259b885049bcf7a737f4b7de569 (diff)
afr-entry-self-heal: fixes to detected renames (gfid based)
- perform expunge first (before impunge) to be able to delete renamed away files - perform readdirp instead of readdir to get gfid along with entry names - if gfid mismatch is found, expunge the entry Signed-off-by: Anand Avati <avati@gluster.com> Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 2500 (Self Healing not working) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2500
Diffstat (limited to 'xlators/cluster/afr/src/afr.h')
-rw-r--r--xlators/cluster/afr/src/afr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h
index 3efa484b74a..e6cd9bf4905 100644
--- a/xlators/cluster/afr/src/afr.h
+++ b/xlators/cluster/afr/src/afr.h
@@ -131,6 +131,7 @@ typedef struct {
/* array of stat's, one for each child */
struct iatt *buf;
struct iatt parentbuf;
+ struct iatt entrybuf;
/* array of xattr's, one for each child */
dict_t **xattr;