[PVFS2-CVS] commit by neill in pvfs2/test/client/sysint: flush-1.c
CVS commit program
cvs at parl.clemson.edu
Thu Jul 29 17:38:58 EDT 2004
Update of /projects/cvsroot/pvfs2/test/client/sysint
In directory parlweb:/tmp/cvs-serv15333/test/client/sysint
Modified Files:
flush-1.c
Log Message:
- misc cleanups, formatting, and debugging adding
- final version bump and changelog update before cvs tagging
Index: flush-1.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/flush-1.c,v
diff -p -u -r1.13 -r1.14
--- flush-1.c 14 Jun 2004 21:48:44 -0000 1.13
+++ flush-1.c 29 Jul 2004 20:38:58 -0000 1.14
@@ -60,6 +60,7 @@ int main(int argc, char **argv)
printf("File to be created is %s\n",str_buf);
memset(&resp_create, 0, sizeof(PVFS_sysresp_create));
+ PVFS_util_gen_credentials(&credentials);
entry_name = str_buf;
attr.mask = PVFS_ATTR_SYS_ALL_SETABLE;
@@ -68,7 +69,6 @@ int main(int argc, char **argv)
attr.perms = 1877;
attr.atime = attr.ctime = attr.mtime = time(NULL);
- PVFS_util_gen_credentials(&credentials);
ret = PINT_lookup_parent(filename, cur_fs, &credentials,
&parent_refn.handle);
if(ret < 0)
@@ -79,7 +79,7 @@ int main(int argc, char **argv)
parent_refn.fs_id = cur_fs;
ret = PVFS_sys_create(entry_name, parent_refn, attr,
- &credentials, NULL, &resp_create);
+ &credentials, NULL, &resp_create);
if (ret < 0)
{
printf("create failed with errcode = %d\n", ret);
@@ -93,7 +93,7 @@ int main(int argc, char **argv)
ret = PVFS_sys_flush(resp_create.ref, &credentials);
if (ret < 0)
{
- printf("flush failed with errcode = %d\n", ret);
+ PVFS_perror_gossip("flush failed", ret);
return (-1);
}
printf("--flushed--\n");
More information about the PVFS2-CVS
mailing list