diff options
author | Anand V. Avati <avati@amp.gluster.com> | 2010-10-02 11:25:04 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-10-02 22:18:50 -0700 |
commit | 5a4e1e69b2ec65dcefa6b37b8ac7d058f3a2c29f (patch) | |
tree | 8cde801403426f6d8107f204fb76566008dba158 /rpc | |
parent | 77085451a88878728e703215f9bf871a74df92ba (diff) |
xdr: introduce extra flag in rmdir request
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 971 (dynamic volume management)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/xdr/src/glusterfs3-xdr.c | 2 | ||||
-rw-r--r-- | rpc/xdr/src/glusterfs3-xdr.h | 1 | ||||
-rw-r--r-- | rpc/xdr/src/glusterfs3.x | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/rpc/xdr/src/glusterfs3-xdr.c b/rpc/xdr/src/glusterfs3-xdr.c index a6ebf5cf3b0..72f2070cfd7 100644 --- a/rpc/xdr/src/glusterfs3-xdr.c +++ b/rpc/xdr/src/glusterfs3-xdr.c @@ -385,6 +385,8 @@ xdr_gfs3_rmdir_req (XDR *xdrs, gfs3_rmdir_req *objp) if (!xdr_opaque (xdrs, objp->pargfid, 16)) return FALSE; + if (!xdr_int (xdrs, &objp->flags)) + return FALSE; if (!xdr_string (xdrs, &objp->path, ~0)) return FALSE; if (!xdr_string (xdrs, &objp->bname, ~0)) diff --git a/rpc/xdr/src/glusterfs3-xdr.h b/rpc/xdr/src/glusterfs3-xdr.h index 0edf13564a2..9f630c47599 100644 --- a/rpc/xdr/src/glusterfs3-xdr.h +++ b/rpc/xdr/src/glusterfs3-xdr.h @@ -409,6 +409,7 @@ typedef struct gfs3_unlink_rsp gfs3_unlink_rsp; struct gfs3_rmdir_req { char pargfid[16]; + int flags; char *path; char *bname; }; diff --git a/rpc/xdr/src/glusterfs3.x b/rpc/xdr/src/glusterfs3.x index a03f7a588d6..0bc1c915d35 100644 --- a/rpc/xdr/src/glusterfs3.x +++ b/rpc/xdr/src/glusterfs3.x @@ -116,6 +116,7 @@ struct gfs3_readlink_req { struct gfs3_rmdir_req { opaque pargfid[16]; + int flags; string path<>; string bname<>; /* NULL terminated */ }; |