[Pvfs2-cvs] commit by kunkel in pvfs2/include: pvfs2-hint.h

CVS commit program cvs at parl.clemson.edu
Tue Aug 29 05:37:17 EDT 2006


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

Modified Files:
      Tag: kunkel-branch
	pvfs2-hint.h 
Log Message:
Added function for hints which allows to specify hints in environemt 
variable.


Index: pvfs2-hint.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/include/Attic/pvfs2-hint.h,v
diff -p -u -r1.1.2.4 -r1.1.2.5
--- pvfs2-hint.h	21 Aug 2006 09:29:29 -0000	1.1.2.4
+++ pvfs2-hint.h	29 Aug 2006 09:37:16 -0000	1.1.2.5
@@ -8,11 +8,13 @@
 enum pvfs2_hint_type{
     REQUEST_ID = 0, 
 /*
- * separate multiple tokens with komma ","
+ * separate multiple tokens in a hint with komma ",", "+" should not be used 
+ * within a hint's key/value
  */
     CREATE_SET_DATAFILE_NODES = 1,
     CREATE_SET_METAFILE_NODE = 2,
-    NUMBER_HINT_TYPES = 3  
+    REQUEST_SCHEDULER, /* queue, schedule */
+    NUMBER_HINT_TYPES 
 };
 
 typedef struct pvfs2_hint_t{
@@ -47,6 +49,11 @@ int                  PVFS_hint_get_count
     
 int PINT_hint_encode(const PVFS_hint * hint, char * buffer, int * out_length, int max_length);
 int PINT_hint_decode(PVFS_hint ** out_hint, const char * buffer, int * out_length);
+
+/*
+ * function allows users to specify hints in an environment variable.
+ */
+int PINT_hint_add_environment_hints(PVFS_hint ** out_hint);
 
 #endif /*PVFS2HINT_H_*/
 



More information about the Pvfs2-cvs mailing list