diff options
author | Anand Avati <avati@gluster.com> | 2011-03-14 00:29:00 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-04-11 03:52:43 -0700 |
commit | 92a4738598d4cba3066e69bbc26a5dba48df86d5 (patch) | |
tree | d390c6d19bc527a3b92c3fd981612c512b36ac27 /xlators/cluster/afr/src/afr.h | |
parent | 96f01bf9e877f352dd893605397e0d8d1f4d993e (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: Anand Avati <avati@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.h | 1 |
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; |