summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr.h
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-11-30 04:35:09 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-11-30 02:53:45 -0800
commitcc3967db49e5983f43530708c1eb4b2708546ad9 (patch)
treee6fba1700f5f59155b2545264a12fe9cc6f9e6ce /xlators/cluster/afr/src/afr.h
parentd21e0108638bdde5f46361aadb370061293c8146 (diff)
cluster/afr: Preserve generation number along with inode in lookup and creation fops.
This fixes fuse_create_cbk conflict warnings and random errors while running dbench (typically open handle failure with ENOENT). Signed-off-by: Vikas Gorur <vikas@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 315 (generation number support) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=315
Diffstat (limited to 'xlators/cluster/afr/src/afr.h')
-rw-r--r--xlators/cluster/afr/src/afr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h
index 6a1c53ceefa..09f76351a43 100644
--- a/xlators/cluster/afr/src/afr.h
+++ b/xlators/cluster/afr/src/afr.h
@@ -254,6 +254,7 @@ typedef struct _afr_local {
struct stat read_child_buf;
struct stat postparent;
ino_t ino;
+ uint64_t gen;
ino_t parent_ino;
dict_t *xattr;
gf_boolean_t is_revalidate;
@@ -404,6 +405,7 @@ typedef struct _afr_local {
struct {
ino_t ino;
+ uint64_t gen;
ino_t parent_ino;
fd_t *fd;
int32_t flags;
@@ -417,6 +419,7 @@ typedef struct _afr_local {
struct {
ino_t ino;
+ uint64_t gen;
ino_t parent_ino;
dev_t dev;
mode_t mode;
@@ -429,6 +432,7 @@ typedef struct _afr_local {
struct {
ino_t ino;
+ uint64_t gen;
ino_t parent_ino;
int32_t mode;
inode_t *inode;
@@ -468,6 +472,7 @@ typedef struct _afr_local {
struct {
ino_t ino;
+ uint64_t gen;
ino_t parent_ino;
inode_t *inode;
struct stat buf;
@@ -478,6 +483,7 @@ typedef struct _afr_local {
struct {
ino_t ino;
+ uint64_t gen;
ino_t parent_ino;
inode_t *inode;
struct stat buf;