diff options
author | Vikas Gorur <vikas@gluster.com> | 2009-09-17 05:56:25 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-09-22 06:13:32 -0700 |
commit | faf97734112ebe11d8a411351d9f23b528b9d616 (patch) | |
tree | d8b898e842c1be3c3b760d41188f7a4b0078232b /libglusterfs/src/protocol.h | |
parent | 239d2cbdb0a4c32df9f21de8385e2c466b934178 (diff) |
libglusterfs: Add RCHECKSUM fop.
rchecksum (fd, offset, len): Calculates both the weak and strong
checksums for a block of {len} bytes at {offset} in {fd}.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'libglusterfs/src/protocol.h')
-rw-r--r-- | libglusterfs/src/protocol.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libglusterfs/src/protocol.h b/libglusterfs/src/protocol.h index f03759f3714..c0fee420e99 100644 --- a/libglusterfs/src/protocol.h +++ b/libglusterfs/src/protocol.h @@ -797,6 +797,17 @@ typedef struct { typedef struct { + int64_t fd; + uint64_t offset; + uint32_t len; +} __attribute__((packed)) gf_fop_rchecksum_req_t; +typedef struct { + uint32_t weak_checksum; + unsigned char strong_checksum[0]; +} __attribute__((packed)) gf_fop_rchecksum_rsp_t; + + +typedef struct { uint64_t ino; int32_t timeout; } __attribute__((packed)) gf_fop_lock_notify_req_t; |