[Pvfs2-cvs] commit by mtmoore in pvfs2/include: pvfs2-debug.h pvfs2-sysint.h pvfs2-util.h

CVS commit program cvs at parl.clemson.edu
Tue Jul 14 13:19:32 EDT 2009


Update of /projects/cvsroot/pvfs2/include
In directory parlweb1:/tmp/cvs-serv2435/include

Modified Files:
      Tag: Orange-mtmoore
	pvfs2-debug.h pvfs2-sysint.h pvfs2-util.h 
Log Message:
Initial import of branch supporting keyval attribute/value lookup


Index: pvfs2-debug.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/include/pvfs2-debug.h,v
diff -p -u -r1.59.10.1 -r1.59.10.1.10.1
--- pvfs2-debug.h	30 Apr 2009 15:02:58 -0000	1.59.10.1
+++ pvfs2-debug.h	14 Jul 2009 17:19:32 -0000	1.59.10.1.10.1
@@ -76,6 +76,7 @@
 #define GOSSIP_DIRECTIO_DEBUG          ((uint64_t)1 << 54)
 #define GOSSIP_MGMT_DEBUG              ((uint64_t)1 << 55)
 #define GOSSIP_MIRROR_DEBUG            ((uint64_t)1 << 56)
+#define GOSSIP_GETVALUE_DEBUG          ((uint64_t)1 << 57)
 
 /* NOTE: if you want your gossip flag to be controllable from 
  * pvfs2-set-debugmask you have to add it in

Index: pvfs2-sysint.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/include/pvfs2-sysint.h,v
diff -p -u -r1.78 -r1.78.20.1
--- pvfs2-sysint.h	20 Nov 2008 01:16:43 -0000	1.78
+++ pvfs2-sysint.h	14 Jul 2009 17:19:32 -0000	1.78.20.1
@@ -219,6 +219,16 @@ struct PVFS_sysresp_listeattr_s
 typedef struct PVFS_sysresp_listeattr_s PVFS_sysresp_listeattr;
 
 
+/** Holds results of a getvalue operation (keys and dirent of handles). */
+struct PVFS_sysresp_getvalue_s
+{
+    PVFS_ds_position token;
+    PVFS_dirent      dirent;
+    PVFS_ds_keyval   *key;
+    PVFS_ds_keyval   *val;
+};
+typedef struct PVFS_sysresp_getvalue_s PVFS_sysresp_getvalue;
+
 /****************************************/
 /* system interface function prototypes */
 /****************************************/
@@ -637,6 +647,28 @@ PVFS_error PVFS_sys_listeattr(
     int32_t nkey,
     const PVFS_credentials *credentials,
     PVFS_sysresp_listeattr *resp,
+    PVFS_hint hints);
+
+PVFS_error PVFS_isys_getvalue(
+    PVFS_object_ref ref,
+    PVFS_ds_position token,
+    const PVFS_credentials *credentials,
+    PVFS_dirent *dirent,
+    PVFS_ds_keyval *key,
+    PVFS_ds_keyval *val,
+    PVFS_sysresp_getvalue *resp,
+    PVFS_sys_op_id *op_id,
+    PVFS_hint hints,
+    void *user_ptr);
+
+PVFS_error PVFS_sys_getvalue(
+    PVFS_object_ref ref,
+    PVFS_ds_position token,
+    const PVFS_credentials *credentials,
+    PVFS_dirent *dirent,
+    PVFS_ds_keyval *key,
+    PVFS_ds_keyval *val,
+    PVFS_sysresp_getvalue *resp,
     PVFS_hint hints);
 
 PVFS_error PVFS_sys_set_info(

Index: pvfs2-util.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/include/pvfs2-util.h,v
diff -p -u -r1.50 -r1.50.40.1
--- pvfs2-util.h	7 Nov 2007 21:46:55 -0000	1.50
+++ pvfs2-util.h	14 Jul 2009 17:19:32 -0000	1.50.40.1
@@ -76,6 +76,10 @@ int PVFS_util_resolve(
 int PVFS_util_get_default_fsid(
     PVFS_fs_id* out_fs_id);
 
+int PVFS_util_get_fsid(
+    char *mnt, 
+    PVFS_fs_id *out_fs_id);
+
 int PVFS_util_add_dynamic_mntent(
     struct PVFS_sys_mntent *mntent);
 int PVFS_util_remove_internal_mntent(



More information about the Pvfs2-cvs mailing list