[PVFS2-CVS]
commit by robl in pvfs2-1/src/client/sysint: client-state-machine.h
sys-set-eattr.sm
CVS commit program
cvs at parl.clemson.edu
Mon Aug 1 19:49:50 EDT 2005
Update of /projects/cvsroot/pvfs2-1/src/client/sysint
In directory parlweb:/tmp/cvs-serv3456/src/client/sysint
Modified Files:
client-state-machine.h sys-set-eattr.sm
Log Message:
Murali's patch to add VFS support for extended attributes.
Index: client-state-machine.h
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/client/sysint/client-state-machine.h,v
diff -u -w -p -u -r1.145 -r1.146
--- client-state-machine.h 21 Jul 2005 16:17:53 -0000 1.145
+++ client-state-machine.h 1 Aug 2005 22:49:50 -0000 1.146
@@ -363,6 +363,8 @@ struct PINT_client_geteattr_sm
struct PINT_client_seteattr_sm
{
int32_t nkey;
+ int32_t flags; /* flags specify if attrs should not exist (XATTR_CREATE) or
+ if they should exist (XATTR_REPLACE) or neither */
PVFS_ds_keyval *key_array;
PVFS_ds_keyval *val_array;
};
Index: sys-set-eattr.sm
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/client/sysint/sys-set-eattr.sm,v
diff -u -w -p -u -r1.2 -r1.3
--- sys-set-eattr.sm 21 Jul 2005 16:17:54 -0000 1.2
+++ sys-set-eattr.sm 1 Aug 2005 22:49:50 -0000 1.3
@@ -64,6 +64,7 @@ PVFS_error PVFS_isys_seteattr_list(
int32_t nkey,
PVFS_ds_keyval *key_array,
PVFS_ds_keyval *val_array,
+ int32_t flags,
PVFS_sys_op_id *op_id,
void *user_ptr)
{
@@ -92,6 +93,7 @@ PVFS_error PVFS_isys_seteattr_list(
sm_p->u.seteattr.nkey = nkey;
sm_p->u.seteattr.key_array = key_array;
sm_p->u.seteattr.val_array = val_array;
+ sm_p->u.seteattr.flags = flags;
sm_p->error_code = 0;
sm_p->object_ref = ref;
@@ -104,7 +106,8 @@ PVFS_error PVFS_sys_seteattr_list(
PVFS_credentials *credentials,
int32_t nkey,
PVFS_ds_keyval *key_array,
- PVFS_ds_keyval *val_array)
+ PVFS_ds_keyval *val_array,
+ int32_t flags)
{
PVFS_error ret = -PVFS_EINVAL, error = 0;
PVFS_sys_op_id op_id;
@@ -112,7 +115,7 @@ PVFS_error PVFS_sys_seteattr_list(
gossip_debug(GOSSIP_CLIENT_DEBUG, "PVFS_sys_seteattr entered\n");
ret = PVFS_isys_seteattr_list(ref, credentials,
- nkey, key_array, val_array, &op_id, NULL);
+ nkey, key_array, val_array, flags, &op_id, NULL);
if (ret)
{
@@ -137,9 +140,10 @@ PVFS_error PVFS_sys_seteattr(
PVFS_object_ref ref,
PVFS_credentials *credentials,
PVFS_ds_keyval *key_p,
- PVFS_ds_keyval *val_p)
+ PVFS_ds_keyval *val_p,
+ int32_t flags)
{
- return PVFS_sys_seteattr_list(ref, credentials, 1, key_p, val_p);
+ return PVFS_sys_seteattr_list(ref, credentials, 1, key_p, val_p, flags);
}
@@ -156,6 +160,7 @@ static int set_eattr_setup_msgpair(PINT_
(*sm_p->cred_p),
sm_p->object_ref.fs_id,
sm_p->object_ref.handle,
+ sm_p->u.seteattr.flags,
sm_p->u.seteattr.nkey,
sm_p->u.seteattr.key_array,
sm_p->u.seteattr.val_array
More information about the PVFS2-CVS
mailing list