[Pvfs2-cvs] commit by pcarns in pvfs2-1/include: pvfs2-mgmt.h pvfs2-types.h

CVS commit program cvs at parl.clemson.edu
Thu Jul 31 10:58:30 EDT 2008


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

Modified Files:
      Tag: small-file-branch
	pvfs2-mgmt.h pvfs2-types.h 
Log Message:
Added flag to mgmt iterate handles function to allow it to request reserved
handle values.  Will be used to get a list of known precreated handle values
so that they can be accounted for in fsck and validate tools.  Untested.


Index: pvfs2-mgmt.h
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/include/pvfs2-mgmt.h,v
diff -p -u -r1.62 -r1.62.2.1
--- pvfs2-mgmt.h	19 Nov 2007 21:12:59 -0000	1.62
+++ pvfs2-mgmt.h	31 Jul 2008 14:58:29 -0000	1.62.2.1
@@ -124,7 +124,6 @@ enum
     PVFS_MGMT_META_SERVER = 2
 };
 
-
 PVFS_error PVFS_mgmt_count_servers(
     PVFS_fs_id fs_id,
     PVFS_credentials *credentials,
@@ -272,6 +271,7 @@ PVFS_error PVFS_imgmt_iterate_handles_li
     PVFS_ds_position *position_array,
     PVFS_BMI_addr_t *addr_array,
     int server_count,
+    int flags,
     PVFS_error_details *details,
     PVFS_mgmt_op_id *op_id,
     void *user_ptr);
@@ -284,6 +284,7 @@ PVFS_error PVFS_mgmt_iterate_handles_lis
     PVFS_ds_position *position_array,
     PVFS_BMI_addr_t *addr_array,
     int server_count,
+    int flags,
     PVFS_error_details *details);
 
 PVFS_error PVFS_imgmt_get_dfile_array(

Index: pvfs2-types.h
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/include/pvfs2-types.h,v
diff -p -u -r1.147.2.11 -r1.147.2.12
--- pvfs2-types.h	24 Jun 2008 15:01:22 -0000	1.147.2.11
+++ pvfs2-types.h	31 Jul 2008 14:58:30 -0000	1.147.2.12
@@ -824,6 +824,11 @@ enum PVFS_io_type
  */
 #define PVFS2_SUPER_MAGIC 0x20030528
 
+/* flag value that can be used with mgmt_iterate_handles to retrieve
+ * reserved handle values
+ */
+#define PVFS_MGMT_RESERVED 1
+
 #endif /* __PVFS2_TYPES_H */
 
 /*



More information about the Pvfs2-cvs mailing list