[Pvfs2-cvs] commit by pcarns in pvfs2-1/src/proto: pvfs2-req-proto.h

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


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

Modified Files:
      Tag: small-file-branch
	pvfs2-req-proto.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-req-proto.h
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/proto/pvfs2-req-proto.h,v
diff -p -u -r1.151.6.16 -r1.151.6.17
--- pvfs2-req-proto.h	24 Jun 2008 15:02:09 -0000	1.151.6.16
+++ pvfs2-req-proto.h	31 Jul 2008 14:58:46 -0000	1.151.6.17
@@ -1341,26 +1341,30 @@ struct PVFS_servreq_mgmt_iterate_handles
 {
     PVFS_fs_id fs_id;
     int32_t handle_count;
+    int32_t flags;
     PVFS_ds_position position;
 };
-endecode_fields_3_struct(
+endecode_fields_4_struct(
     PVFS_servreq_mgmt_iterate_handles,
     PVFS_fs_id, fs_id,
     int32_t, handle_count,
+    int32_t, flags,
     PVFS_ds_position, position)
 
 #define PINT_SERVREQ_MGMT_ITERATE_HANDLES_FILL(__req,              \
                                         __creds,                   \
                                         __fs_id,                   \
                                         __handle_count,            \
-                                        __position)                \
+                                        __position,                \
+                                        __flags)                   \
 do {                                                               \
     memset(&(__req), 0, sizeof(__req));                            \
     (__req).op = PVFS_SERV_MGMT_ITERATE_HANDLES;                   \
     (__req).credentials = (__creds);                               \
     (__req).u.mgmt_iterate_handles.fs_id = (__fs_id);              \
     (__req).u.mgmt_iterate_handles.handle_count = (__handle_count);\
-    (__req).u.mgmt_iterate_handles.position = (__position);        \
+    (__req).u.mgmt_iterate_handles.position = (__position),        \
+    (__req).u.mgmt_iterate_handles.flags = (__flags);              \
 } while (0)
 
 struct PVFS_servresp_mgmt_iterate_handles



More information about the Pvfs2-cvs mailing list