[Pvfs2-cvs] commit by pcarns in pvfs2-1/include: pvfs2-sysint.h
CVS commit program
cvs at parl.clemson.edu
Sun Apr 6 19:46:58 EDT 2008
Update of /projects/cvsroot/pvfs2-1/include
In directory parlweb1:/tmp/cvs-serv19856/include
Modified Files:
pvfs2-sysint.h
Log Message:
add system interface hooks to set and get basic options at runtime;
for now only supports ncache and acache timeout options
Index: pvfs2-sysint.h
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/include/pvfs2-sysint.h,v
diff -p -u -r1.75 -r1.76
--- pvfs2-sysint.h 20 Sep 2007 15:09:21 -0000 1.75
+++ pvfs2-sysint.h 6 Apr 2008 23:46:58 -0000 1.76
@@ -23,6 +23,16 @@
#include "pvfs2-types.h"
#include "pvfs2-request.h"
+/** Options supported by get_info() and set_info(). */
+enum PVFS_sys_setinfo_opt
+{
+ PVFS_SYS_NCACHE_TIMEOUT_MSECS = 1,
+ PVFS_SYS_ACACHE_TIMEOUT_MSECS,
+ PVFS_SYS_MSG_TIMEOUT_SECS,
+ PVFS_SYS_MSG_RETRY_LIMIT,
+ PVFS_SYS_MSG_RETRY_DELAY_MSECS,
+};
+
/** Holds a non-blocking system interface operation handle. */
typedef PVFS_id_gen_t PVFS_sys_op_id;
@@ -585,6 +595,14 @@ PVFS_error PVFS_sys_listeattr(
int32_t nkey,
const PVFS_credentials *credentials,
PVFS_sysresp_listeattr *resp);
+
+PVFS_error PVFS_sys_set_info(
+ enum PVFS_sys_setinfo_opt option,
+ unsigned int arg);
+
+PVFS_error PVFS_sys_get_info(
+ enum PVFS_sys_setinfo_opt option,
+ unsigned int* arg);
/* exported test functions for isys calls */
More information about the Pvfs2-cvs
mailing list