From faf97734112ebe11d8a411351d9f23b528b9d616 Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Thu, 17 Sep 2009 05:56:25 +0000 Subject: 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 --- libglusterfs/src/defaults.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libglusterfs/src/defaults.h') diff --git a/libglusterfs/src/defaults.h b/libglusterfs/src/defaults.h index 33d974520..7b3b2cf58 100644 --- a/libglusterfs/src/defaults.h +++ b/libglusterfs/src/defaults.h @@ -52,6 +52,10 @@ int32_t default_checksum (call_frame_t *frame, loc_t *loc, int32_t flag); +int32_t default_rchecksum (call_frame_t *frame, + xlator_t *this, + fd_t *fd, off_t offset, + int32_t len); /* FileSystem operations */ int32_t default_lookup (call_frame_t *frame, -- cgit