[Pvfs2-cvs] commit by pcarns in pvfs2-1/src/apps/admin: pvfs2-cp.c

CVS commit program cvs at parl.clemson.edu
Fri Feb 29 16:56:59 EST 2008


Update of /projects/cvsroot/pvfs2-1/src/apps/admin
In directory parlweb1:/tmp/cvs-serv17649/src/apps/admin

Modified Files:
      Tag: small-file-branch
	pvfs2-cp.c 
Log Message:
Removing pvfs2-cp override of default layout.  I'm not sure what LAYOUT_NONE
is supposed to do, but the system interface normally picks ROUND_ROBIN.


Index: pvfs2-cp.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/apps/admin/pvfs2-cp.c,v
diff -p -u -r1.25 -r1.25.8.1
--- pvfs2-cp.c	19 Jul 2007 16:52:28 -0000	1.25
+++ pvfs2-cp.c	29 Feb 2008 21:56:59 -0000	1.25.8.1
@@ -421,7 +421,6 @@ static int generic_open(file_object *obj
     int ret = -1;
     char *entry_name;		    /* name of the pvfs2 file */
     char str_buf[PVFS_NAME_MAX];    /* basename of pvfs2 file */
-    PVFS_sys_layout layout;
  
     if (obj->fs_type == UNIX_FILE)
     {
@@ -627,10 +626,9 @@ static int generic_open(file_object *obj
                     new_dist=NULL;
                 }
             
-                layout.algorithm = PVFS_SYS_LAYOUT_NONE;
 		ret = PVFS_sys_create(entry_name, parent_ref, 
                                       obj->u.pvfs2.attr, credentials,
-                                      new_dist, &layout, &resp_create);
+                                      new_dist, NULL, &resp_create);
 		if (ret < 0)
 		{
 		    PVFS_perror("PVFS_sys_create", ret); 



More information about the Pvfs2-cvs mailing list