diff options
author | Ram Raja <rraja@redhat.com> | 2013-04-30 00:47:56 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-05-13 13:23:21 -0700 |
commit | 68712c33b4c792449e7d49ae348f96f97175bbd9 (patch) | |
tree | aefb5547fa7ac4a2c51bfafdd50ca681f331f4f6 /xlators/features/glupy/src/glupy.h | |
parent | b9fdbc079025ffd743305cee868e02f653326419 (diff) |
glupy patch by Ram, Justin: Add/Modify fops, structure types, utility fns
Extend the following fops with Python:
* open
* readv
* writev
* opendir
* readdir
* readdirp
* stat
* fstat
* statfs
* setxattr
* getxattr
* fsetxattr
* fgetxattr
* removexattr
* fremovexattr
* link
* unlink
* readlink
* symlink
* mkdir
* rmdir
Add fd_t, inode_t and iatt_t structure types.
Modify loc_t structure type; Alter the data types of the following
attributes - inode, parent, gfid, pargfid.
Modify uuid2str function, which returns a string equivalent for a ctype
object representing a gfid, to make use of python's 'uuid' module for
accurate representation of uuids.
by Justin Clift:
Adjust debug-trace.py to work with Python 2.6
Work around 'zero length field name in format' bug in
negative.py's uuid2str function
Fix indentation errors in negative.py, glupy.h,
glupy.c, gluster.py
Change-Id: If0fcfb2866e21c0380a973f8ffab9ea7b6a4cd5d
BUG: 961856
Signed-off-by: Ram Raja <rraja@redhat.com>
Reviewed-on: http://review.gluster.org/4907
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Reviewed-by: Justin Clift <jclift@redhat.com>
Tested-by: Justin Clift <jclift@redhat.com>
Diffstat (limited to 'xlators/features/glupy/src/glupy.h')
-rw-r--r-- | xlators/features/glupy/src/glupy.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/xlators/features/glupy/src/glupy.h b/xlators/features/glupy/src/glupy.h index e6d2ff4f32c..8661fce88c5 100644 --- a/xlators/features/glupy/src/glupy.h +++ b/xlators/features/glupy/src/glupy.h @@ -29,6 +29,28 @@ enum { GLUPY_LOOKUP = 0, GLUPY_CREATE, + GLUPY_OPEN, + GLUPY_READV, + GLUPY_WRITEV, + GLUPY_OPENDIR, + GLUPY_READDIR, + GLUPY_READDIRP, + GLUPY_STAT, + GLUPY_FSTAT, + GLUPY_STATFS, + GLUPY_SETXATTR, + GLUPY_GETXATTR, + GLUPY_FSETXATTR, + GLUPY_FGETXATTR, + GLUPY_REMOVEXATTR, + GLUPY_FREMOVEXATTR, + GLUPY_LINK, + GLUPY_UNLINK, + GLUPY_READLINK, + GLUPY_SYMLINK, + GLUPY_MKNOD, + GLUPY_MKDIR, + GLUPY_RMDIR, GLUPY_N_FUNCS }; |