[Pvfs2-cvs] commit by pcarns in pvfs2-1/src/client/sysint:
client-state-machine.h mgmt-iterate-handles-list.sm
CVS commit program
cvs at parl.clemson.edu
Thu Jul 31 10:58:38 EDT 2008
Update of /projects/cvsroot/pvfs2-1/src/client/sysint
In directory parlweb1:/tmp/cvs-serv16552/src/client/sysint
Modified Files:
Tag: small-file-branch
client-state-machine.h mgmt-iterate-handles-list.sm
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: client-state-machine.h
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/client/sysint/client-state-machine.h,v
diff -p -u -r1.173.2.5 -r1.173.2.6
--- client-state-machine.h 24 Jun 2008 15:01:33 -0000 1.173.2.5
+++ client-state-machine.h 31 Jul 2008 14:58:38 -0000 1.173.2.6
@@ -347,6 +347,7 @@ struct PINT_client_mgmt_iterate_handles_
int *handle_count_array;
PVFS_ds_position *position_array;
PVFS_error_details *details;
+ int flags;
};
struct PINT_client_mgmt_get_dfile_array_sm
Index: mgmt-iterate-handles-list.sm
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/client/sysint/mgmt-iterate-handles-list.sm,v
diff -p -u -r1.29.6.1 -r1.29.6.2
--- mgmt-iterate-handles-list.sm 24 Jun 2008 15:01:34 -0000 1.29.6.1
+++ mgmt-iterate-handles-list.sm 31 Jul 2008 14:58:38 -0000 1.29.6.2
@@ -64,6 +64,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)
@@ -101,6 +102,7 @@ PVFS_error PVFS_imgmt_iterate_handles_li
sm_p->u.iterate_handles_list.handle_count_array = handle_count_array;
sm_p->u.iterate_handles_list.position_array = position_array;
sm_p->u.iterate_handles_list.details = details;
+ sm_p->u.iterate_handles_list.flags = flags;
ret = PINT_msgpairarray_init(&sm_p->msgarray_op, server_count);
if(ret != 0)
@@ -123,6 +125,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 ret = -PVFS_EINVAL, error = 0;
@@ -133,7 +136,7 @@ PVFS_error PVFS_mgmt_iterate_handles_lis
ret = PVFS_imgmt_iterate_handles_list(
fs_id, credentials, handle_matrix, handle_count_array,
- position_array, addr_array, server_count, details, &op_id, NULL);
+ position_array, addr_array, server_count, flags, details, &op_id, NULL);
if (ret)
{
@@ -187,7 +190,8 @@ static PINT_sm_action mgmt_iterate_handl
*sm_p->cred_p,
sm_p->u.iterate_handles_list.fs_id,
sm_p->u.iterate_handles_list.handle_count_array[i],
- sm_p->u.iterate_handles_list.position_array[i]);
+ sm_p->u.iterate_handles_list.position_array[i],
+ sm_p->u.iterate_handles_list.flags);
j++;
msg_p->fs_id = sm_p->u.iterate_handles_list.fs_id;
msg_p->handle = PVFS_HANDLE_NULL;
More information about the Pvfs2-cvs
mailing list