summaryrefslogtreecommitdiffstats
path: root/xlators/debug/error-gen/src/error-gen.h
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-07-06 01:42:27 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-07-06 05:58:49 -0700
commit1a7f42d7fb73f464f18c4375e3b4ef8139f20d1c (patch)
tree615e24d74f3b78cbcdedba553f03ea4a33069f60 /xlators/debug/error-gen/src/error-gen.h
parentd1b057ac65fb61cb6f0c25aafb7d1ba54c6fe36b (diff)
improvement to error-gen
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1051 (Use proper 'fop' indexing) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1051
Diffstat (limited to 'xlators/debug/error-gen/src/error-gen.h')
-rw-r--r--xlators/debug/error-gen/src/error-gen.h48
1 files changed, 1 insertions, 47 deletions
diff --git a/xlators/debug/error-gen/src/error-gen.h b/xlators/debug/error-gen/src/error-gen.h
index 7fb5fdfb56c..fc51fafc3aa 100644
--- a/xlators/debug/error-gen/src/error-gen.h
+++ b/xlators/debug/error-gen/src/error-gen.h
@@ -26,55 +26,9 @@
#endif
#define GF_FAILURE_DEFAULT 10
-#define NO_OF_FOPS 42
-
-enum {
- ERR_LOOKUP,
- ERR_STAT,
- ERR_READLINK,
- ERR_MKNOD,
- ERR_MKDIR,
- ERR_UNLINK,
- ERR_RMDIR,
- ERR_SYMLINK,
- ERR_RENAME,
- ERR_LINK,
- ERR_TRUNCATE,
- ERR_CREATE,
- ERR_OPEN,
- ERR_READV,
- ERR_WRITEV,
- ERR_STATFS,
- ERR_FLUSH,
- ERR_FSYNC,
- ERR_SETXATTR,
- ERR_GETXATTR,
- ERR_REMOVEXATTR,
- ERR_OPENDIR,
- ERR_READDIR,
- ERR_READDIRP,
- ERR_GETDENTS,
- ERR_FSYNCDIR,
- ERR_ACCESS,
- ERR_FTRUNCATE,
- ERR_FSTAT,
- ERR_LK,
- ERR_SETDENTS,
- ERR_CHECKSUM,
- ERR_XATTROP,
- ERR_FXATTROP,
- ERR_INODELK,
- ERR_FINODELK,
- ERR_ENTRYLK,
- ERR_FENTRYLK,
- ERR_SETATTR,
- ERR_FSETATTR,
- ERR_STATS,
- ERR_GETSPEC
-};
typedef struct {
- int enable[NO_OF_FOPS];
+ int enable[GF_FOP_MAXVALUE];
int op_count;
int failure_iter_no;
char *error_no;