[Pvfs2-cvs] commit by kunkel in pvfs2/test/client/sysint:
create-hints.c client.c create-with-dist.c create.c
create.set.get.eattr.c del-eattr.c dmkdir.c find.c flush-1.c
flush-2.c get-eattr.c get-info.c getparent.c io-bug.c
io-hole.c io-stress.c io-test-offset.c io-test.c list-eattr.c
lookup.c ls.c mkdir.c module.mk.in readdir.c remove.c
rename.c set-eattr.c set-info.c symlink.c test-accesses.c
test-create-scale.c test-hindexed-test.c test-pint-bucket.c
truncate.c
CVS commit program
cvs at parl.clemson.edu
Sat Aug 19 09:09:41 EDT 2006
Update of /projects/cvsroot/pvfs2/test/client/sysint
In directory parlweb1:/tmp/cvs-serv3901/test/client/sysint
Modified Files:
Tag: kunkel-branch
client.c create-with-dist.c create.c create.set.get.eattr.c
del-eattr.c dmkdir.c find.c flush-1.c flush-2.c get-eattr.c
get-info.c getparent.c io-bug.c io-hole.c io-stress.c
io-test-offset.c io-test.c list-eattr.c lookup.c ls.c mkdir.c
module.mk.in readdir.c remove.c rename.c set-eattr.c
set-info.c symlink.c test-accesses.c test-create-scale.c
test-hindexed-test.c test-pint-bucket.c truncate.c
Added Files:
Tag: kunkel-branch
create-hints.c
Log Message:
Added PVFS-hint, changed tests for pwrite/odirect/transactions/aio dbpf
support to allow users to explicitly enable or disable the functionality.
In the aio implementation is a bug since somebody else modified it.
--- /dev/null 2004-06-24 14:04:38.000000000 -0400
+++ create-hints.c 2006-08-19 09:09:41.000000000 -0400
@@ -0,0 +1,121 @@
+/*
+ * (C) 2001 Clemson University and The University of Chicago
+ *
+ * See COPYING in top-level directory.
+ */
+
+#include <time.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <sys/types.h>
+
+#include "client.h"
+#include "pvfs2-util.h"
+#include "str-utils.h"
+#include "pint-sysint-utils.h"
+#include "pvfs2-internal.h"
+#include "pvfs2-hint.h"
+
+int main(int argc, char **argv)
+{
+ int ret = -1;
+ char str_buf[256] = {0};
+ char *filename = (char *)0;
+ PVFS_fs_id cur_fs;
+ PVFS_sysresp_create resp_create;
+ char* entry_name;
+ PVFS_object_ref parent_refn;
+ PVFS_sys_attr attr;
+ PVFS_credentials credentials;
+ PVFS_hint * hint = NULL;
+
+ if (argc != 2)
+ {
+ fprintf(stderr,"Usage: %s filename\n",argv[0]);
+ return ret;
+ }
+ filename = argv[1];
+
+ ret = PVFS_util_init_defaults();
+ if (ret < 0)
+ {
+ PVFS_perror("PVFS_util_init_defaults", ret);
+ return (-1);
+ }
+ ret = PVFS_util_get_default_fsid(&cur_fs);
+ if (ret < 0)
+ {
+ PVFS_perror("PVFS_util_get_default_fsid", ret);
+ return (-1);
+ }
+
+ if (PINT_remove_base_dir(filename,str_buf,256))
+ {
+ if (filename[0] != '/')
+ {
+ printf("You forgot the leading '/'\n");
+ }
+ printf("Cannot retrieve entry name for creation on %s\n",
+ filename);
+ return(-1);
+ }
+
+ memset(&resp_create, 0, sizeof(PVFS_sysresp_create));
+ PVFS_util_gen_credentials(&credentials);
+
+ entry_name = str_buf;
+ attr.mask = PVFS_ATTR_SYS_ALL_SETABLE;
+ attr.owner = credentials.uid;
+ attr.group = credentials.gid;
+ attr.perms = 1877;
+ attr.atime = attr.ctime = attr.mtime =
+ time(NULL);
+
+ ret = PINT_lookup_parent(filename, cur_fs, &credentials,
+ &parent_refn.handle);
+ if(ret < 0)
+ {
+ PVFS_perror("PVFS_util_lookup_parent", ret);
+ return(-1);
+ }
+ parent_refn.fs_id = cur_fs;
+
+ printf("File to be created is %s under parent %llu\n",
+ str_buf, llu(parent_refn.handle));
+
+ ret = PVFS_add_hint(& hint, REQUEST_ID, "REQUEST ID BLUB THIS IS A VERY LONG LONG TEST !!!!");
+ if(ret < 0){
+ printf("Error add hint: %d, %s \n", -ret, strerror(-ret));
+ return 1;
+ }
+
+ ret = PVFS_add_hint(& hint, CREATE_SET_METAFILE_NODE, "localhost");
+ if(ret < 0){
+ printf("Error add hint: %d, %s \n", -ret, strerror(-ret));
+ return 1;
+ }
+
+ ret = PVFS_sys_create(entry_name, parent_refn, attr,
+ &credentials, NULL, &resp_create, hint);
+
+ PVFS_free_hint(& hint);
+
+ if (ret < 0)
+ {
+ PVFS_perror("create failed with errcode", ret);
+ return(-1);
+ }
+
+ // print the handle
+ printf("--create--\n");
+ printf("Handle: %lld\n",lld(resp_create.ref.handle));
+
+ ret = PVFS_sys_finalize();
+ if (ret < 0)
+ {
+ printf("finalizing sysint failed with errcode = %d\n", ret);
+ return (-1);
+ }
+
+ return(0);
+}
Index: client.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/client.c,v
diff -p -u -r1.47.38.2 -r1.47.38.3
--- client.c 24 Jul 2006 17:20:59 -0000 1.47.38.2
+++ client.c 19 Aug 2006 13:09:40 -0000 1.47.38.3
@@ -73,7 +73,7 @@ int main(
/* lookup the root handle */
printf("looking up the root handle for fsid = %d\n", fs_id);
ret = PVFS_sys_lookup(fs_id, name, &credentials,
- &resp_look, PVFS2_LOOKUP_LINK_NO_FOLLOW);
+ &resp_look, PVFS2_LOOKUP_LINK_NO_FOLLOW, NULL);
if (ret < 0)
{
printf("Lookup failed with errcode = %d\n", ret);
@@ -122,7 +122,7 @@ int main(
// call create
ret = PVFS_sys_create(entry_name, parent_refn, attr,
- &credentials, NULL, resp_create);
+ &credentials, NULL, resp_create, NULL);
if (ret < 0)
{
printf("create failed with errcode = %d\n", ret);
@@ -203,7 +203,7 @@ int main(
memcpy(name + 1, filename, strlen(filename) + 1);
ret = PVFS_sys_lookup(fs_id, name, &credentials,
- resp_lk, PVFS2_LOOKUP_LINK_NO_FOLLOW);
+ resp_lk, PVFS2_LOOKUP_LINK_NO_FOLLOW, NULL);
if (ret < 0)
{
printf("Lookup failed with errcode = %d\n", ret);
@@ -479,7 +479,7 @@ int main(
// call readdir
ret = PVFS_sys_readdir(pinode_refn, token, pvfs_dirent_incount,
- &credentials, resp_readdir);
+ &credentials, resp_readdir, NULL);
if (ret < 0)
{
printf("readdir failed with errcode = %d\n", ret);
Index: create-with-dist.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/create-with-dist.c,v
diff -p -u -r1.7.18.2 -r1.7.18.3
--- create-with-dist.c 24 Jul 2006 17:20:59 -0000 1.7.18.2
+++ create-with-dist.c 19 Aug 2006 13:09:40 -0000 1.7.18.3
@@ -102,7 +102,7 @@ int main(int argc, char **argv)
/*printf("strip size: %i\n",
((PVFS_simple_stripe_params*)dist->params)->strip_size);*/
ret = PVFS_sys_create(entry_name, parent_refn, attr,
- &credentials, dist, &resp_create);
+ &credentials, dist, &resp_create, NULL);
if (ret < 0)
{
PVFS_perror("create failed with errcode", ret);
Index: create.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/create.c,v
diff -p -u -r1.42.18.2 -r1.42.18.3
--- create.c 24 Jul 2006 17:20:59 -0000 1.42.18.2
+++ create.c 19 Aug 2006 13:09:40 -0000 1.42.18.3
@@ -82,7 +82,7 @@ int main(int argc, char **argv)
str_buf, llu(parent_refn.handle));
ret = PVFS_sys_create(entry_name, parent_refn, attr,
- &credentials, NULL, &resp_create);
+ &credentials, NULL, &resp_create, NULL);
if (ret < 0)
{
PVFS_perror("create failed with errcode", ret);
Index: create.set.get.eattr.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/create.set.get.eattr.c,v
diff -p -u -r1.5.20.2 -r1.5.20.3
--- create.set.get.eattr.c 24 Jul 2006 17:20:59 -0000 1.5.20.2
+++ create.set.get.eattr.c 19 Aug 2006 13:09:40 -0000 1.5.20.3
@@ -89,7 +89,7 @@ int main(int argc, char **argv)
str_buf, llu(parent_refn.handle));
ret = PVFS_sys_create(entry_name, parent_refn, attr,
- &credentials, NULL, &resp_create);
+ &credentials, NULL, &resp_create, NULL);
if (ret < 0)
{
PVFS_perror("create failed with errcode", ret);
@@ -106,7 +106,7 @@ int main(int argc, char **argv)
key.buffer_sz = strlen(key_s) + 1;
val.buffer = val_s;
val.buffer_sz = strlen(val_s) + 1;
- ret = PVFS_sys_seteattr(resp_create.ref, &credentials, &key, &val, 0);
+ ret = PVFS_sys_seteattr(resp_create.ref, &credentials, &key, &val, 0, NULL);
if (ret < 0)
{
PVFS_perror("seteattr failed with errcode", ret);
@@ -120,7 +120,7 @@ int main(int argc, char **argv)
printf("--geteattr--\n");
val.buffer_sz = strlen(val_s) + 10;
val.buffer = malloc(val.buffer_sz);
- ret = PVFS_sys_geteattr(resp_create.ref, &credentials, &key, &val);
+ ret = PVFS_sys_geteattr(resp_create.ref, &credentials, &key, &val, NULL);
if (ret < 0)
{
PVFS_perror("geteattr failed with errcode", ret);
Index: del-eattr.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/del-eattr.c,v
diff -p -u -r1.2.30.2 -r1.2.30.3
--- del-eattr.c 24 Jul 2006 17:20:59 -0000 1.2.30.2
+++ del-eattr.c 19 Aug 2006 13:09:40 -0000 1.2.30.3
@@ -105,7 +105,7 @@ int pvfs2_deleattr (PVFS_ds_keyval key,
memset(&resp_lookup, 0, sizeof(PVFS_sysresp_lookup));
ret = PVFS_sys_lookup(cur_fs, pvfs_path,
&credentials, &resp_lookup,
- PVFS2_LOOKUP_LINK_FOLLOW);
+ PVFS2_LOOKUP_LINK_FOLLOW, NULL);
if (ret < 0)
{
PVFS_perror("PVFS_sys_lookup", ret);
@@ -144,7 +144,7 @@ int pvfs2_deleattr (PVFS_ds_keyval key,
ret = PVFS_sys_ref_lookup(parent_ref.fs_id, str_buf,
parent_ref, &credentials, &resp_lookup,
- PVFS2_LOOKUP_LINK_NO_FOLLOW);
+ PVFS2_LOOKUP_LINK_NO_FOLLOW, NULL);
if (ret != 0)
{
fprintf(stderr, "Target '%s' does not exist!\n", str_buf);
@@ -155,7 +155,7 @@ int pvfs2_deleattr (PVFS_ds_keyval key,
/* gossip_set_debug_mask(1,0xffffffffffffffffUL);
* gossip_enable_stderr();
*/
- ret = PVFS_sys_deleattr(resp_lookup.ref, &credentials, &key);
+ ret = PVFS_sys_deleattr(resp_lookup.ref, &credentials, &key, NULL);
if (ret < 0)
{
PVFS_perror("deleattr failed with errcode", ret);
Index: dmkdir.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/dmkdir.c,v
diff -p -u -r1.14.18.2 -r1.14.18.3
--- dmkdir.c 24 Jul 2006 17:20:59 -0000 1.14.18.2
+++ dmkdir.c 19 Aug 2006 13:09:40 -0000 1.14.18.3
@@ -86,7 +86,7 @@ int main(int argc,char **argv)
attr.atime = attr.ctime = attr.mtime = time(NULL);
ret = PVFS_sys_mkdir(entry_name, parent_refn, attr,
- &credentials, &resp_mkdir);
+ &credentials, &resp_mkdir, NULL);
if (ret < 0)
{
printf("mkdir failed\n");
@@ -98,7 +98,7 @@ int main(int argc,char **argv)
printf("FSID:%d\n",parent_refn.fs_id);
ret = PVFS_sys_mkdir(str_buf2, resp_mkdir.ref, attr,
- &credentials, &resp_mkdir);
+ &credentials, &resp_mkdir, NULL);
if (ret < 0)
{
printf("mkdir failed\n");
@@ -110,7 +110,7 @@ int main(int argc,char **argv)
printf("FSID:%d\n",parent_refn.fs_id);
ret = PVFS_sys_mkdir(str_buf3, resp_mkdir.ref, attr,
- &credentials, &resp_mkdir);
+ &credentials, &resp_mkdir, NULL);
if (ret < 0)
{
printf("mkdir failed\n");
Index: find.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/find.c,v
diff -p -u -r1.42.6.2 -r1.42.6.3
--- find.c 24 Jul 2006 17:20:59 -0000 1.42.6.2
+++ find.c 19 Aug 2006 13:09:40 -0000 1.42.6.3
@@ -52,7 +52,7 @@ int is_directory(PVFS_handle handle, PVF
PVFS_util_gen_credentials(&credentials);
if (PVFS_sys_getattr(pinode_refn, attrmask,
- &credentials, &getattr_response))
+ &credentials, &getattr_response, NULL))
{
fprintf(stderr,"Failed to get attributes on handle 0x%08llx "
"(fs_id is %d)\n",llu(handle),fs_id);
@@ -99,7 +99,7 @@ int directory_walk(PVFS_fs_id cur_fs,
PVFS_util_gen_credentials(&credentials);
if (PVFS_sys_lookup(cur_fs, name, &credentials,
- &lk_response, PVFS2_LOOKUP_LINK_FOLLOW))
+ &lk_response, PVFS2_LOOKUP_LINK_FOLLOW, NULL))
{
fprintf(stderr,"Failed to lookup %s on fs_id %d!\n",
name,cur_fs);
@@ -119,7 +119,7 @@ int directory_walk(PVFS_fs_id cur_fs,
if (PVFS_sys_readdir(pinode_refn,
(!token ? PVFS_READDIR_START : token),
pvfs_dirent_incount,
- &credentials, &rd_response))
+ &credentials, &rd_response, NULL))
{
fprintf(stderr,"Failed to perform readdir operation\n");
return 1;
Index: flush-1.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/flush-1.c,v
diff -p -u -r1.16.18.2 -r1.16.18.3
--- flush-1.c 24 Jul 2006 17:20:59 -0000 1.16.18.2
+++ flush-1.c 19 Aug 2006 13:09:40 -0000 1.16.18.3
@@ -80,7 +80,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, NULL);
if (ret < 0)
{
printf("create failed with errcode = %d\n", ret);
@@ -91,7 +91,7 @@ int main(int argc, char **argv)
printf("--create--\n");
printf("Handle: %lld\n",lld(resp_create.ref.handle));
- ret = PVFS_sys_flush(resp_create.ref, &credentials);
+ ret = PVFS_sys_flush(resp_create.ref, &credentials, NULL);
if (ret < 0)
{
PVFS_perror_gossip("flush failed", ret);
Index: flush-2.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/flush-2.c,v
diff -p -u -r1.20.38.2 -r1.20.38.3
--- flush-2.c 24 Jul 2006 17:20:59 -0000 1.20.38.2
+++ flush-2.c 19 Aug 2006 13:09:40 -0000 1.20.38.3
@@ -99,7 +99,7 @@ int main(
PVFS_util_gen_credentials(&credentials);
ret = PVFS_sys_lookup(fs_id, name, &credentials,
- &resp_lk, PVFS2_LOOKUP_LINK_NO_FOLLOW);
+ &resp_lk, PVFS2_LOOKUP_LINK_NO_FOLLOW, NULL);
/* TODO: really we probably want to look for a specific error code,
* like maybe ENOENT?
*/
@@ -111,7 +111,7 @@ int main(
name = "/";
ret = PVFS_sys_lookup(fs_id, name, &credentials,
- &resp_lk, PVFS2_LOOKUP_LINK_NO_FOLLOW);
+ &resp_lk, PVFS2_LOOKUP_LINK_NO_FOLLOW, NULL);
if (ret < 0)
{
fprintf(stderr,
@@ -130,7 +130,7 @@ int main(
entry_name = &(filename[1]); /* leave off slash */
ret = PVFS_sys_create(entry_name, parent_refn, attr,
- &credentials, NULL, &resp_cr);
+ &credentials, NULL, &resp_cr, NULL);
if (ret < 0)
{
fprintf(stderr, "Error: PVFS_sys_create() failure.\n");
@@ -168,7 +168,7 @@ int main(
}
ret = PVFS_sys_write(pinode_refn, file_req, 0, buffer, mem_req,
- &credentials, &resp_io);
+ &credentials, &resp_io, NULL);
if (ret < 0)
{
fprintf(stderr, "Error: PVFS_sys_write() failure.\n");
@@ -185,7 +185,7 @@ int main(
printf("IO-TEST: performing read on handle: %ld, fs: %d\n",
(long) pinode_refn.handle, (int) pinode_refn.fs_id);
ret = PVFS_sys_read(pinode_refn, file_req, 0, buffer, mem_req,
- &credentials, &resp_io);
+ &credentials, &resp_io, NULL);
if (ret < 0)
{
fprintf(stderr, "Error: PVFS_sys_read() failure.\n");
@@ -220,7 +220,7 @@ int main(
}
/* now that we've done some i/o, flush the data to disk */
- ret = PVFS_sys_flush(pinode_refn, &credentials);
+ ret = PVFS_sys_flush(pinode_refn, &credentials, NULL);
if (ret < 0)
{
fprintf(stderr, "Error: PVFS_sys_flush() error.\n");
Index: get-eattr.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/get-eattr.c,v
diff -p -u -r1.2.30.2 -r1.2.30.3
--- get-eattr.c 24 Jul 2006 17:20:59 -0000 1.2.30.2
+++ get-eattr.c 19 Aug 2006 13:09:40 -0000 1.2.30.3
@@ -118,7 +118,7 @@ int pvfs2_geteattr(int nkey, PVFS_ds_key
memset(&resp_lookup, 0, sizeof(PVFS_sysresp_lookup));
ret = PVFS_sys_lookup(cur_fs, pvfs_path,
&credentials, &resp_lookup,
- PVFS2_LOOKUP_LINK_FOLLOW);
+ PVFS2_LOOKUP_LINK_FOLLOW, NULL);
if (ret < 0)
{
PVFS_perror("PVFS_sys_lookup", ret);
@@ -157,7 +157,7 @@ int pvfs2_geteattr(int nkey, PVFS_ds_key
ret = PVFS_sys_ref_lookup(parent_ref.fs_id, str_buf,
parent_ref, &credentials, &resp_lookup,
- PVFS2_LOOKUP_LINK_NO_FOLLOW);
+ PVFS2_LOOKUP_LINK_NO_FOLLOW, NULL);
if (ret != 0)
{
fprintf(stderr, "Target '%s' does not exist!\n", str_buf);
@@ -167,7 +167,7 @@ int pvfs2_geteattr(int nkey, PVFS_ds_key
/* get extended attribute */
resp_geteattr.val_array = val_p;
ret = PVFS_sys_geteattr_list(resp_lookup.ref,
- &credentials, nkey, key_p, &resp_geteattr);
+ &credentials, nkey, key_p, &resp_geteattr, NULL);
if (ret < 0)
{
PVFS_perror("PVFS_sys_geteattr failed with errcode", ret);
Index: get-info.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/get-info.c,v
diff -p -u -r1.40.18.2 -r1.40.18.3
--- get-info.c 24 Jul 2006 17:20:59 -0000 1.40.18.2
+++ get-info.c 19 Aug 2006 13:09:40 -0000 1.40.18.3
@@ -55,7 +55,7 @@ int main(int argc,char **argv)
PVFS_util_gen_credentials(&credentials);
ret = PVFS_sys_lookup(fs_id, name, &credentials,
- &resp_look, PVFS2_LOOKUP_LINK_NO_FOLLOW);
+ &resp_look, PVFS2_LOOKUP_LINK_NO_FOLLOW, NULL);
if (ret < 0)
{
printf("Lookup failed with errcode = %d\n", ret);
@@ -73,7 +73,7 @@ int main(int argc,char **argv)
pinode_refn.fs_id = fs_id;
attrmask = PVFS_ATTR_SYS_ALL;
- ret = PVFS_sys_getattr(pinode_refn, attrmask, &credentials, resp_gattr);
+ ret = PVFS_sys_getattr(pinode_refn, attrmask, &credentials, resp_gattr, NULL);
if (ret < 0)
{
printf("getattr failed with errcode = %d\n", ret);
Index: getparent.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/getparent.c,v
diff -p -u -r1.18.18.2 -r1.18.18.3
--- getparent.c 24 Jul 2006 17:20:59 -0000 1.18.18.2
+++ getparent.c 19 Aug 2006 13:09:40 -0000 1.18.18.3
@@ -43,7 +43,7 @@ int main(int argc,char **argv)
}
PVFS_util_gen_credentials(&credentials);
- ret = PVFS_sys_getparent(fs_id, argv[1], &credentials, &resp_getparent);
+ ret = PVFS_sys_getparent(fs_id, argv[1], &credentials, &resp_getparent, NULL);
if (ret == 0)
{
printf("=== getparent data:\n");
Index: io-bug.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/io-bug.c,v
diff -p -u -r1.7.12.2 -r1.7.12.3
--- io-bug.c 24 Jul 2006 17:20:59 -0000 1.7.12.2
+++ io-bug.c 19 Aug 2006 13:09:40 -0000 1.7.12.3
@@ -104,7 +104,7 @@ int main(
PVFS_util_gen_credentials(&credentials);
ret = PVFS_sys_lookup(fs_id, name, &credentials,
- &resp_lk, PVFS2_LOOKUP_LINK_FOLLOW);
+ &resp_lk, PVFS2_LOOKUP_LINK_FOLLOW, NULL);
/* TODO: really we probably want to look for a specific error code,
* like maybe ENOENT?
*/
@@ -115,7 +115,7 @@ int main(
/* get root handle */
name = "/";
ret = PVFS_sys_lookup(fs_id, name, &credentials,
- &resp_lk, PVFS2_LOOKUP_LINK_NO_FOLLOW);
+ &resp_lk, PVFS2_LOOKUP_LINK_NO_FOLLOW, NULL);
if (ret < 0)
{
fprintf(stderr,
@@ -136,7 +136,7 @@ int main(
entry_name = &(filename[1]); /* leave off slash */
ret = PVFS_sys_create(entry_name, parent_refn, attr,
- &credentials, NULL, &resp_cr);
+ &credentials, NULL, &resp_cr, NULL);
if (ret < 0)
{
fprintf(stderr, "Error: PVFS_sys_create() failure.\n");
@@ -182,7 +182,7 @@ int main(
off_array2, PVFS_BYTE, &file_req);
ret = PVFS_sys_write(pinode_refn, file_req, 0, PVFS_BOTTOM, mem_req,
- &credentials, &resp_io);
+ &credentials, &resp_io, NULL);
if (ret < 0)
{
fprintf(stderr, "Error: PVFS_sys_write() failure.\n");
Index: io-hole.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/io-hole.c,v
diff -p -u -r1.3.18.2 -r1.3.18.3
--- io-hole.c 24 Jul 2006 17:20:59 -0000 1.3.18.2
+++ io-hole.c 19 Aug 2006 13:09:40 -0000 1.3.18.3
@@ -65,7 +65,7 @@ int main(int argc, char **argv)
PVFS_util_gen_credentials(&credentials);
ret = PVFS_sys_lookup(fs_id, name, &credentials,
- &resp_lk, PVFS2_LOOKUP_LINK_FOLLOW);
+ &resp_lk, PVFS2_LOOKUP_LINK_FOLLOW, NULL);
if (ret == -PVFS_ENOENT)
{
PVFS_sysresp_getparent gp_resp;
@@ -73,7 +73,7 @@ int main(int argc, char **argv)
printf("IO-HOLE: lookup failed; creating new file.\n");
memset(&gp_resp, 0, sizeof(PVFS_sysresp_getparent));
- ret = PVFS_sys_getparent(fs_id, name, &credentials, &gp_resp);
+ ret = PVFS_sys_getparent(fs_id, name, &credentials, &gp_resp, NULL);
if (ret < 0)
{
PVFS_perror("PVFS_sys_getparent failed", ret);
@@ -93,7 +93,7 @@ int main(int argc, char **argv)
assert(entry_name);
ret = PVFS_sys_create(entry_name, parent_refn, attr,
- &credentials, NULL, &resp_cr);
+ &credentials, NULL, &resp_cr, NULL);
if (ret < 0)
{
PVFS_perror("PVFS_sys_create() failure", ret);
@@ -124,7 +124,7 @@ int main(int argc, char **argv)
memset(buf, 'A', MAX_BUF_LEN);
ret = PVFS_sys_write(pinode_refn, file_req, 0, buf, mem_req,
- &credentials, &resp_io);
+ &credentials, &resp_io, NULL);
if ((ret < 0) || (resp_io.total_completed != MAX_BUF_LEN))
{
PVFS_perror("PVFS_sys_write failure", ret);
@@ -134,7 +134,7 @@ int main(int argc, char **argv)
lld(resp_io.total_completed));
ret = PVFS_sys_write(pinode_refn, file_req, 100000, buf, mem_req,
- &credentials, &resp_io);
+ &credentials, &resp_io, NULL);
if ((ret < 0) || (resp_io.total_completed != MAX_BUF_LEN))
{
PVFS_perror("PVFS_sys_write failure", ret);
@@ -144,7 +144,7 @@ int main(int argc, char **argv)
lld(resp_io.total_completed));
ret = PVFS_sys_read(pinode_refn, file_req, 10, buf, mem_req,
- &credentials, &resp_io);
+ &credentials, &resp_io, NULL);
if ((ret < 0) || (resp_io.total_completed != MAX_BUF_LEN))
{
fprintf(stderr, "Failed to read %d bytes at offset 10! %lld "
Index: io-stress.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/io-stress.c,v
diff -p -u -r1.1.10.2 -r1.1.10.3
--- io-stress.c 24 Jul 2006 17:20:59 -0000 1.1.10.2
+++ io-stress.c 19 Aug 2006 13:09:40 -0000 1.1.10.3
@@ -496,7 +496,7 @@ static int generic_open(file_object *obj
(char *) obj->u.pvfs2.pvfs2_path,
credentials,
&resp_lookup,
- PVFS2_LOOKUP_LINK_FOLLOW);
+ PVFS2_LOOKUP_LINK_FOLLOW, NULL);
if (ret < 0)
{
PVFS_perror("PVFS_sys_lookup", ret);
@@ -507,7 +507,7 @@ static int generic_open(file_object *obj
memset(&resp_getattr, 0, sizeof(PVFS_sysresp_getattr));
ret = PVFS_sys_getattr(ref, PVFS_ATTR_SYS_ALL,
- credentials, &resp_getattr);
+ credentials, &resp_getattr, NULL);
if (ret)
{
fprintf(stderr, "Failed to do pvfs2 getattr on %s\n",
@@ -556,7 +556,7 @@ static PVFS_error post_generic_read(io_r
}
ret = PVFS_isys_io(req->src->u.pvfs2.ref, req->file_req, req->offset,
req->buffer, req->mem_req, &req->credentials, &req->resp_io,
- PVFS_IO_READ, &req->op_id, req);
+ PVFS_IO_READ, &req->op_id, NULL, req);
if (ret != 0)
{
PVFS_perror("PVFS_isys_io", ret);
@@ -594,7 +594,7 @@ static PVFS_error post_generic_write(io_
}
ret = PVFS_isys_io(req->src->u.pvfs2.ref, req->file_req, req->offset,
req->buffer, req->mem_req, &req->credentials, &req->resp_io,
- PVFS_IO_WRITE, &req->op_id, req);
+ PVFS_IO_WRITE, &req->op_id, NULL, req);
if (ret != 0)
{
PVFS_perror("PVFS_isys_io", ret);
Index: io-test-offset.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/io-test-offset.c,v
diff -p -u -r1.25.38.2 -r1.25.38.3
--- io-test-offset.c 24 Jul 2006 17:20:59 -0000 1.25.38.2
+++ io-test-offset.c 19 Aug 2006 13:09:40 -0000 1.25.38.3
@@ -104,7 +104,7 @@ int main(
PVFS_util_gen_credentials(&credentials);
ret = PVFS_sys_lookup(fs_id, name, &credentials,
- &resp_lk, PVFS2_LOOKUP_LINK_NO_FOLLOW);
+ &resp_lk, PVFS2_LOOKUP_LINK_NO_FOLLOW, NULL);
/* TODO: really we probably want to look for a specific error code,
* like maybe ENOENT?
*/
@@ -116,7 +116,7 @@ int main(
name = "/";
ret = PVFS_sys_lookup(fs_id, name, &credentials,
- &resp_lk, PVFS2_LOOKUP_LINK_NO_FOLLOW);
+ &resp_lk, PVFS2_LOOKUP_LINK_NO_FOLLOW, NULL);
if (ret < 0)
{
fprintf(stderr,
@@ -136,7 +136,7 @@ int main(
entry_name = &(filename[1]); /* leave off slash */
ret = PVFS_sys_create(entry_name, parent_refn, attr,
- &credentials, NULL, &resp_cr);
+ &credentials, NULL, &resp_cr, NULL);
if (ret < 0)
{
fprintf(stderr, "Error: PVFS_sys_create() failure.\n");
@@ -182,7 +182,7 @@ int main(
}
ret = PVFS_sys_write(pinode_refn, file_req, 0, buffer, mem_req,
- &credentials, &resp_io);
+ &credentials, &resp_io, NULL);
if (ret < 0)
{
fprintf(stderr, "Error: PVFS_sys_write() failure.\n");
@@ -206,7 +206,7 @@ int main(
printf("IO-TEST: performing read on handle: %ld, fs: %d\n",
(long) pinode_refn.handle, (int) pinode_refn.fs_id);
ret = PVFS_sys_read(pinode_refn, file_req, (5 * sizeof(int)), off_buffer,
- mem_req2, &credentials, &resp_io);
+ mem_req2, &credentials, &resp_io, NULL);
if (ret < 0)
{
fprintf(stderr, "Error: PVFS_sys_read() failure.\n");
Index: io-test.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/io-test.c,v
diff -p -u -r1.56.18.2 -r1.56.18.3
--- io-test.c 24 Jul 2006 17:20:59 -0000 1.56.18.2
+++ io-test.c 19 Aug 2006 13:09:40 -0000 1.56.18.3
@@ -83,7 +83,7 @@ int main(int argc, char **argv)
PVFS_util_gen_credentials(&credentials);
ret = PVFS_sys_lookup(fs_id, name, &credentials,
- &resp_lk, PVFS2_LOOKUP_LINK_FOLLOW);
+ &resp_lk, PVFS2_LOOKUP_LINK_FOLLOW, NULL);
if (ret == -PVFS_ENOENT)
{
PVFS_sysresp_getparent gp_resp;
@@ -91,7 +91,7 @@ int main(int argc, char **argv)
printf("IO-TEST: lookup failed; creating new file.\n");
memset(&gp_resp, 0, sizeof(PVFS_sysresp_getparent));
- ret = PVFS_sys_getparent(fs_id, name, &credentials, &gp_resp);
+ ret = PVFS_sys_getparent(fs_id, name, &credentials, &gp_resp, NULL);
if (ret < 0)
{
PVFS_perror("PVFS_sys_getparent failed", ret);
@@ -111,7 +111,7 @@ int main(int argc, char **argv)
assert(entry_name);
ret = PVFS_sys_create(entry_name, parent_refn, attr,
- &credentials, NULL, &resp_cr);
+ &credentials, NULL, &resp_cr, NULL);
if (ret < 0)
{
PVFS_perror("PVFS_sys_create() failure", ret);
@@ -155,7 +155,7 @@ int main(int argc, char **argv)
}
ret = PVFS_sys_write(pinode_refn, file_req, 0, buffer, mem_req,
- &credentials, &resp_io);
+ &credentials, &resp_io, NULL);
if (ret < 0)
{
PVFS_perror("PVFS_sys_write failure", ret);
@@ -173,7 +173,7 @@ int main(int argc, char **argv)
(long) pinode_refn.handle, (int) pinode_refn.fs_id);
ret = PVFS_sys_read(pinode_refn, file_req, 0, buffer, mem_req,
- &credentials, &resp_io);
+ &credentials, &resp_io, NULL);
if (ret < 0)
{
PVFS_perror("PVFS_sys_read failure", ret);
@@ -209,7 +209,7 @@ int main(int argc, char **argv)
/* test out some of the mgmt functionality */
ret = PVFS_sys_getattr(pinode_refn, PVFS_ATTR_SYS_ALL_NOSIZE,
- &credentials, &resp_getattr);
+ &credentials, &resp_getattr, NULL);
if (ret < 0)
{
PVFS_perror("PVFS_sys_getattr", ret);
@@ -227,7 +227,7 @@ int main(int argc, char **argv)
}
ret = PVFS_mgmt_get_dfile_array(pinode_refn, &credentials,
- dfile_array, resp_getattr.attr.dfile_count);
+ dfile_array, resp_getattr.attr.dfile_count, NULL);
if (ret < 0)
{
PVFS_perror("PVFS_mgmt_get_dfile_array", ret);
Index: list-eattr.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/list-eattr.c,v
diff -p -u -r1.1.26.2 -r1.1.26.3
--- list-eattr.c 24 Jul 2006 17:20:59 -0000 1.1.26.2
+++ list-eattr.c 19 Aug 2006 13:09:40 -0000 1.1.26.3
@@ -122,7 +122,7 @@ int pvfs2_listeattr(int nkey, PVFS_ds_ke
memset(&resp_lookup, 0, sizeof(PVFS_sysresp_lookup));
ret = PVFS_sys_lookup(cur_fs, pvfs_path,
&credentials, &resp_lookup,
- PVFS2_LOOKUP_LINK_FOLLOW);
+ PVFS2_LOOKUP_LINK_FOLLOW, NULL);
if (ret < 0)
{
PVFS_perror("PVFS_sys_lookup", ret);
@@ -161,7 +161,7 @@ int pvfs2_listeattr(int nkey, PVFS_ds_ke
ret = PVFS_sys_ref_lookup(parent_ref.fs_id, str_buf,
parent_ref, &credentials, &resp_lookup,
- PVFS2_LOOKUP_LINK_NO_FOLLOW);
+ PVFS2_LOOKUP_LINK_NO_FOLLOW, NULL);
if (ret != 0)
{
fprintf(stderr, "Target '%s' does not exist!\n", str_buf);
@@ -171,7 +171,7 @@ int pvfs2_listeattr(int nkey, PVFS_ds_ke
/* list extended attribute */
resp_listeattr.key_array = key_p;
ret = PVFS_sys_listeattr(resp_lookup.ref,
- token, nkey, &credentials, &resp_listeattr);
+ token, nkey, &credentials, &resp_listeattr, NULL);
if (ret < 0)
{
PVFS_perror("PVFS_sys_listeattr failed with errcode", ret);
Index: lookup.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/lookup.c,v
diff -p -u -r1.31.18.2 -r1.31.18.3
--- lookup.c 24 Jul 2006 17:20:59 -0000 1.31.18.2
+++ lookup.c 19 Aug 2006 13:09:40 -0000 1.31.18.3
@@ -63,7 +63,7 @@ int main(int argc,char **argv)
memset(&resp_lk,0,sizeof(PVFS_sysresp_lookup));
ret = PVFS_sys_lookup(fs_id, filename, &credentials,
- &resp_lk, follow_link);
+ &resp_lk, follow_link, NULL);
if (ret < 0)
{
printf("Lookup failed with errcode = %d\n", ret);
Index: ls.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/ls.c,v
diff -p -u -r1.34.6.2 -r1.34.6.3
--- ls.c 24 Jul 2006 17:20:59 -0000 1.34.6.2
+++ ls.c 19 Aug 2006 13:09:40 -0000 1.34.6.3
@@ -112,7 +112,7 @@ void print_entry(
pinode_refn.fs_id = fs_id;
if (PVFS_sys_getattr(pinode_refn, PVFS_ATTR_SYS_ALL,
- &credentials, &getattr_response))
+ &credentials, &getattr_response, NULL))
{
fprintf(stderr,"Failed to get attributes on handle 0x%08llx "
"(fs_id is %d)\n",llu(handle),fs_id);
@@ -144,7 +144,7 @@ int do_list(
PVFS_util_gen_credentials(&credentials);
if (PVFS_sys_lookup(fs_id, name, &credentials,
- &lk_response, PVFS2_LOOKUP_LINK_NO_FOLLOW))
+ &lk_response, PVFS2_LOOKUP_LINK_NO_FOLLOW, NULL))
{
fprintf(stderr,"Failed to lookup %s on fs_id %d!\n",
start_dir,fs_id);
@@ -157,7 +157,7 @@ int do_list(
PVFS_util_gen_credentials(&credentials);
if (PVFS_sys_getattr(pinode_refn, PVFS_ATTR_SYS_ALL,
- &credentials, &getattr_response) == 0)
+ &credentials, &getattr_response, NULL) == 0)
{
if ((getattr_response.attr.objtype == PVFS_TYPE_METAFILE) ||
(getattr_response.attr.objtype == PVFS_TYPE_SYMLINK))
@@ -175,7 +175,7 @@ int do_list(
memset(&rd_response,0,sizeof(PVFS_sysresp_readdir));
if (PVFS_sys_readdir(pinode_refn,
(!token ? PVFS_READDIR_START : token),
- pvfs_dirent_incount, &credentials, &rd_response))
+ pvfs_dirent_incount, &credentials, &rd_response, NULL))
{
fprintf(stderr,"readdir failed\n");
return -1;
Index: mkdir.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/mkdir.c,v
diff -p -u -r1.35.18.2 -r1.35.18.3
--- mkdir.c 24 Jul 2006 17:20:59 -0000 1.35.18.2
+++ mkdir.c 19 Aug 2006 13:09:40 -0000 1.35.18.3
@@ -80,7 +80,7 @@ int main(int argc,char **argv)
time(NULL);
ret = PVFS_sys_mkdir(entry_name, parent_refn, attr,
- &credentials, &resp_mkdir);
+ &credentials, &resp_mkdir, NULL);
if (ret < 0)
{
printf("mkdir failed\n");
Index: module.mk.in
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/module.mk.in,v
diff -p -u -r1.51 -r1.51.4.1
--- module.mk.in 9 Jun 2006 20:55:00 -0000 1.51
+++ module.mk.in 19 Aug 2006 13:09:40 -0000 1.51.4.1
@@ -14,6 +14,7 @@ TESTSRC += \
$(DIR)/ls.c \
$(DIR)/path-test.c\
$(DIR)/create.c\
+ $(DIR)/create-hints.c\
$(DIR)/create-with-dist.c\
$(DIR)/symlink.c\
$(DIR)/flush-1.c\
Index: readdir.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/readdir.c,v
diff -p -u -r1.37.18.2 -r1.37.18.3
--- readdir.c 24 Jul 2006 17:20:59 -0000 1.37.18.2
+++ readdir.c 19 Aug 2006 13:09:40 -0000 1.37.18.3
@@ -56,7 +56,7 @@ int main(int argc,char **argv)
name = starting_point;
PVFS_util_gen_credentials(&credentials);
ret = PVFS_sys_lookup(fs_id, name, &credentials,
- &resp_look, PVFS2_LOOKUP_LINK_FOLLOW);
+ &resp_look, PVFS2_LOOKUP_LINK_FOLLOW, NULL);
if (ret < 0)
{
PVFS_perror_gossip("Lookup failed", ret);
@@ -77,7 +77,7 @@ int main(int argc,char **argv)
memset(&resp_readdir,0,sizeof(PVFS_sysresp_readdir));
ret = PVFS_sys_readdir(pinode_refn, (!token ? PVFS_READDIR_START :
token), pvfs_dirent_incount,
- &credentials, &resp_readdir);
+ &credentials, &resp_readdir, NULL);
if (ret < 0)
{
PVFS_perror_gossip("readdir failed", ret);
Index: remove.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/remove.c,v
diff -p -u -r1.26.38.2 -r1.26.38.3
--- remove.c 24 Jul 2006 17:20:59 -0000 1.26.38.2
+++ remove.c 19 Aug 2006 13:09:41 -0000 1.26.38.3
@@ -67,7 +67,7 @@ int main(int argc,char **argv)
}
parent_refn.fs_id = cur_fs;
- ret = PVFS_sys_remove(entry_name, parent_refn, &credentials);
+ ret = PVFS_sys_remove(entry_name, parent_refn, &credentials, NULL);
if (ret < 0)
{
PVFS_perror("remove failed ", ret);
Index: rename.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/rename.c,v
diff -p -u -r1.24.38.2 -r1.24.38.3
--- rename.c 24 Jul 2006 17:20:59 -0000 1.24.38.2
+++ rename.c 19 Aug 2006 13:09:41 -0000 1.24.38.3
@@ -94,7 +94,7 @@ int main(int argc,char **argv)
new_parent_refn.fs_id = cur_fs;
ret = PVFS_sys_rename(old_entry, old_parent_refn, new_entry,
- new_parent_refn, &credentials);
+ new_parent_refn, &credentials, NULL);
if (ret < 0)
{
printf("rename failed with errcode = %d\n",ret);
Index: set-eattr.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/set-eattr.c,v
diff -p -u -r1.3.30.2 -r1.3.30.3
--- set-eattr.c 24 Jul 2006 17:20:59 -0000 1.3.30.2
+++ set-eattr.c 19 Aug 2006 13:09:41 -0000 1.3.30.3
@@ -110,7 +110,7 @@ int pvfs2_seteattr (int nkey, PVFS_ds_ke
memset(&resp_lookup, 0, sizeof(PVFS_sysresp_lookup));
ret = PVFS_sys_lookup(cur_fs, pvfs_path,
&credentials, &resp_lookup,
- PVFS2_LOOKUP_LINK_FOLLOW);
+ PVFS2_LOOKUP_LINK_FOLLOW, NULL);
if (ret < 0)
{
PVFS_perror("PVFS_sys_lookup", ret);
@@ -149,7 +149,7 @@ int pvfs2_seteattr (int nkey, PVFS_ds_ke
ret = PVFS_sys_ref_lookup(parent_ref.fs_id, str_buf,
parent_ref, &credentials, &resp_lookup,
- PVFS2_LOOKUP_LINK_NO_FOLLOW);
+ PVFS2_LOOKUP_LINK_NO_FOLLOW, NULL);
if (ret != 0)
{
fprintf(stderr, "Target '%s' does not exist!\n", str_buf);
@@ -165,7 +165,7 @@ int pvfs2_seteattr (int nkey, PVFS_ds_ke
(char *)val[k].buffer);
}
}
- ret = PVFS_sys_seteattr_list(resp_lookup.ref, &credentials, nkey, key, val, 0);
+ ret = PVFS_sys_seteattr_list(resp_lookup.ref, &credentials, nkey, key, val, 0, NULL);
if (ret < 0)
{
PVFS_perror("seteattr_list failed with errcode", ret);
Index: set-info.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/set-info.c,v
diff -p -u -r1.27.18.2 -r1.27.18.3
--- set-info.c 24 Jul 2006 17:20:59 -0000 1.27.18.2
+++ set-info.c 19 Aug 2006 13:09:41 -0000 1.27.18.3
@@ -53,7 +53,7 @@ int main(int argc, char **argv)
printf("about to lookup %s\n", filename);
ret = PVFS_sys_lookup(fs_id, filename, &credentials,
- &resp_look, PVFS2_LOOKUP_LINK_NO_FOLLOW);
+ &resp_look, PVFS2_LOOKUP_LINK_NO_FOLLOW, NULL);
if (ret < 0)
{
fprintf(stderr, "Lookup failed with errcode = %d\n", ret);
@@ -66,7 +66,7 @@ int main(int argc, char **argv)
printf("about to getattr on %s\n", filename);
ret = PVFS_sys_getattr(pinode_refn, PVFS_ATTR_SYS_ALL_SETABLE,
- &credentials, &resp_getattr);
+ &credentials, &resp_getattr, NULL);
if (ret < 0)
{
printf("getattr failed with errcode = %d\n", ret);
@@ -103,7 +103,7 @@ int main(int argc, char **argv)
printf("about to setattr on %s\n", filename);
- ret = PVFS_sys_setattr(pinode_refn, resp_getattr.attr, &credentials);
+ ret = PVFS_sys_setattr(pinode_refn, resp_getattr.attr, &credentials, NULL);
if (ret < 0)
{
fprintf(stderr, "setattr failed with errcode = %d\n", ret);
Index: symlink.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/symlink.c,v
diff -p -u -r1.16.18.2 -r1.16.18.3
--- symlink.c 24 Jul 2006 17:20:59 -0000 1.16.18.2
+++ symlink.c 19 Aug 2006 13:09:41 -0000 1.16.18.3
@@ -81,7 +81,7 @@ int main(int argc, char **argv)
parent_refn.fs_id = cur_fs;
ret = PVFS_sys_symlink(entry_name, parent_refn, target,
- attr, &credentials, &resp_sym);
+ attr, &credentials, &resp_sym, NULL);
if (ret < 0)
{
printf("symlink failed with errcode = %d\n", ret);
Index: test-accesses.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/test-accesses.c,v
diff -p -u -r1.4.16.2 -r1.4.16.3
--- test-accesses.c 24 Jul 2006 17:20:59 -0000 1.4.16.2
+++ test-accesses.c 19 Aug 2006 13:09:41 -0000 1.4.16.3
@@ -71,7 +71,7 @@ int main(int argc, char * argv[])
ret = PVFS_util_get_default_fsid(&curfs);
if(ret < 0) goto error;
- ret = PVFS_sys_lookup(curfs, "/", &creds, &lookup_resp, 0);
+ ret = PVFS_sys_lookup(curfs, "/", &creds, &lookup_resp, 0, NULL);
if(ret < 0) goto error;
PVFS_util_gen_credentials(&creds);
@@ -84,7 +84,7 @@ int main(int argc, char * argv[])
ret = PVFS_sys_create(
(char*)filename,
- lookup_resp.ref, attr, &creds, NULL, &create_resp);
+ lookup_resp.ref, attr, &creds, NULL, &create_resp, NULL);
if(ret < 0) goto error;
for(; i < count; ++i)
@@ -122,7 +122,7 @@ int main(int argc, char * argv[])
ret = PVFS_sys_io(
create_resp.ref, file_req, offset, membuff, mem_req,
- &creds, &io_resp, PVFS_IO_WRITE);
+ &creds, &io_resp, PVFS_IO_WRITE, NULL);
if(ret < 0) goto error;
printf("Write response: size: %llu\n", llu(io_resp.total_completed));
@@ -141,7 +141,7 @@ error:
PVFS_sys_remove(
(char*)filename,
lookup_resp.ref,
- &creds);
+ &creds, NULL);
PVFS_perror_gossip(errormsg, ret);
fprintf(stderr, "%s\n", errormsg);
Index: test-create-scale.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/test-create-scale.c,v
diff -p -u -r1.5.38.2 -r1.5.38.3
--- test-create-scale.c 24 Jul 2006 17:20:59 -0000 1.5.38.2
+++ test-create-scale.c 19 Aug 2006 13:09:41 -0000 1.5.38.3
@@ -119,13 +119,13 @@ int main(int argc, char **argv)
/* do one big one to prime connections if needed */
sprintf(entry_name, "%s%d", str_buf, 0);
ret = PVFS_sys_create(entry_name, parent_refn, attr,
- &credentials, NULL, &resp_create);
+ &credentials, NULL, &resp_create, NULL);
if (ret < 0)
{
PVFS_perror("PVFS_sys_create", ret);
return(-1);
}
- ret = PVFS_sys_remove(entry_name, parent_refn, &credentials);
+ ret = PVFS_sys_remove(entry_name, parent_refn, &credentials, NULL);
if(ret < 0)
{
PVFS_perror("PVFS_sys_remove", ret);
@@ -140,7 +140,7 @@ int main(int argc, char **argv)
attr.dfile_count = i+1;
start_time = Wtime();
ret = PVFS_sys_create(entry_name, parent_refn, attr,
- &credentials, NULL, &resp_create);
+ &credentials, NULL, &resp_create, NULL);
end_time = Wtime();
if (ret < 0)
{
@@ -153,7 +153,7 @@ int main(int argc, char **argv)
for(j=0; j<iters; j++)
{
sprintf(entry_name, "%s%d", str_buf, j);
- ret = PVFS_sys_remove(entry_name, parent_refn, &credentials);
+ ret = PVFS_sys_remove(entry_name, parent_refn, &credentials, NULL);
if(ret < 0)
{
PVFS_perror("PVFS_sys_remove", ret);
Index: test-hindexed-test.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/test-hindexed-test.c,v
diff -p -u -r1.1.10.3 -r1.1.10.4
--- test-hindexed-test.c 18 Aug 2006 05:12:21 -0000 1.1.10.3
+++ test-hindexed-test.c 19 Aug 2006 13:09:41 -0000 1.1.10.4
@@ -210,7 +210,7 @@ int main(int argc, char **argv)
memset(&resp_lookup, 0, sizeof(PVFS_sysresp_lookup));
ret = PVFS_sys_lookup(cur_fs, pvfs_path,
&credentials, &resp_lookup,
- PVFS2_LOOKUP_LINK_FOLLOW);
+ PVFS2_LOOKUP_LINK_FOLLOW, NULL);
if (ret < 0)
{
PVFS_perror("PVFS_sys_lookup", ret);
@@ -273,12 +273,12 @@ int main(int argc, char **argv)
memset(&resp_lookup, 0, sizeof(PVFS_sysresp_lookup));
ret = PVFS_sys_ref_lookup(parent_ref.fs_id, entry_name,
parent_ref, &credentials, &resp_lookup,
- PVFS2_LOOKUP_LINK_NO_FOLLOW);
+ PVFS2_LOOKUP_LINK_NO_FOLLOW, NULL);
if (ret == 0)
{
fprintf(stderr, "Target file %s already exists! Deleting.\n", entry_name);
if (PVFS_sys_remove(entry_name,
- parent_ref, &credentials) < 0)
+ parent_ref, &credentials, NULL) < 0)
{
fprintf(stderr, "Could not unlink?\n");
}
@@ -291,7 +291,7 @@ int main(int argc, char **argv)
memset(&resp_create, 0, sizeof(PVFS_sysresp_create));
ret = PVFS_sys_create(entry_name, parent_ref, attr,
- &credentials, NULL, &resp_create);
+ &credentials, NULL, &resp_create, NULL);
if (ret < 0)
{
PVFS_perror("PVFS_sys_create", ret);
@@ -332,7 +332,8 @@ int main(int argc, char **argv)
/* write out the data */
ret = PVFS_sys_write(ref, file_req,
0, frame.wr_buffer, mem_req,
- &credentials, &resp_io);
+ &credentials, &resp_io
+ , NULL);
if(ret < 0)
{
PVFS_perror("PVFS_sys_write", ret);
@@ -369,7 +370,7 @@ int main(int argc, char **argv)
printf("********************************************************\n\n");
ret = PVFS_sys_getattr(ref, PVFS_ATTR_SYS_ALL,
- &credentials, &resp_getattr);
+ &credentials, &resp_getattr, NULL);
if (ret < 0)
{
PVFS_perror("Getattr failed", ret);
@@ -412,7 +413,8 @@ int main(int argc, char **argv)
/* read back the data */
ret = PVFS_sys_read(ref, file_req,
0, frame.rd_buffer, mem_req,
- &credentials, &resp_io);
+ &credentials, &resp_io,
+ NULL);
if(ret < 0)
{
PVFS_perror("PVFS_sys_read", ret);
Index: test-pint-bucket.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/test-pint-bucket.c,v
diff -p -u -r1.36.18.2 -r1.36.18.3
--- test-pint-bucket.c 24 Jul 2006 17:20:59 -0000 1.36.18.2
+++ test-pint-bucket.c 19 Aug 2006 13:09:41 -0000 1.36.18.3
@@ -95,7 +95,7 @@ int main(int argc, char **argv)
memset(&server_config,0,sizeof(struct server_configuration_s));
for(i=0; i<tab->mntent_count; i++)
{
- if (PINT_server_get_config(&server_config, &(tab->mntent_array[i])))
+ if (PINT_server_get_config(&server_config, &(tab->mntent_array[i]), NULL))
{
fprintf(stderr, "PINT_server_get_config failure.\n");
return(-1);
Index: truncate.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/test/client/sysint/truncate.c,v
diff -p -u -r1.26.18.2 -r1.26.18.3
--- truncate.c 24 Jul 2006 17:20:59 -0000 1.26.18.2
+++ truncate.c 19 Aug 2006 13:09:41 -0000 1.26.18.3
@@ -53,7 +53,7 @@ int main(int argc,char **argv)
/* lookup the root handle */
printf("looking up the root handle for fsid = %d\n", fs_id);
ret = PVFS_sys_lookup(fs_id, "/", &credentials,
- &resp_look, PVFS2_LOOKUP_LINK_FOLLOW);
+ &resp_look, PVFS2_LOOKUP_LINK_FOLLOW, NULL);
if (ret < 0)
{
printf("Lookup failed with errcode = %d\n", ret);
@@ -64,7 +64,7 @@ int main(int argc,char **argv)
PVFS_util_gen_credentials(&credentials);
ret = PVFS_sys_lookup(fs_id, filename, &credentials,
- &resp_lk, PVFS2_LOOKUP_LINK_FOLLOW);
+ &resp_lk, PVFS2_LOOKUP_LINK_FOLLOW, NULL);
if (ret < 0)
{
printf("Lookup failed with errcode = %d\n", ret);
@@ -76,7 +76,7 @@ int main(int argc,char **argv)
pinode_refn.handle = resp_lk.ref.handle;
pinode_refn.fs_id = resp_lk.ref.fs_id;
- ret = PVFS_sys_truncate(pinode_refn, size, &credentials);
+ ret = PVFS_sys_truncate(pinode_refn, size, &credentials, NULL);
if (ret < 0)
{
printf("truncate failed with errcode = %d\n",ret);
More information about the Pvfs2-cvs
mailing list