path: root/rpc/rpc-lib/src/rpcsvc.h
diff options
authorRaghavendra G <>2010-08-25 01:40:00 +0000
committerAnand V. Avati <>2010-08-25 00:41:58 -0700
commitfb0bb972dfac3c255c53ddc7b588b73a08883288 (patch)
treea608564fef9a0a7a43ce99359b3f7e16d45fb2f1 /rpc/rpc-lib/src/rpcsvc.h
parent36ae62ada88b8477994d17527868370a4634999e (diff)
storage/posix: calculate the correct size of each dirent in readdir/readdirp.
- In addition to posix, protocol/server also adds a check to make sure that iobuf allocated to hold readdir/readdirp response can hold all the dentries, rpc and proc (readdir/readdirp) header. Signed-off-by: Raghavendra G <> Signed-off-by: Anand V. Avati <> BUG: 1430 (encoding of readdirp response fails occasionally) URL:
Diffstat (limited to 'rpc/rpc-lib/src/rpcsvc.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/rpc/rpc-lib/src/rpcsvc.h b/rpc/rpc-lib/src/rpcsvc.h
index 06b0aad22..10b20af0a 100644
--- a/rpc/rpc-lib/src/rpcsvc.h
+++ b/rpc/rpc-lib/src/rpcsvc.h
@@ -39,6 +39,7 @@
#include <pthread.h>
#include <sys/uio.h>
#include <inttypes.h>
+#include <rpc/rpc_msg.h>
#include "compat.h"
#ifndef NGRPS