[Swift-commit] r2970 - trunk/libexec

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Mon Jun 22 08:40:53 CDT 2009


Author: benc
Date: 2009-06-22 08:40:53 -0500 (Mon, 22 Jun 2009)
New Revision: 2970

Modified:
   trunk/libexec/_swiftwrap
Log:
Make wrapper use mv to stage out files to shared directory rather than cp.
This should be faster when the job directories are on the same filesystem
as the site shared cache.

(suggested by tuecke)

Modified: trunk/libexec/_swiftwrap
===================================================================
--- trunk/libexec/_swiftwrap	2009-06-22 12:47:07 UTC (rev 2969)
+++ trunk/libexec/_swiftwrap	2009-06-22 13:40:53 UTC (rev 2970)
@@ -342,10 +342,10 @@
 	fail 254 "The following output files were not created by the application: $MISSING"
 fi
 
-logstate "COPYING_OUTPUTS"
+logstate "MOVING_OUTPUTS"
 for O in $OUTF ; do
-	cp "$DIR/$O" "shared/$O" 2>&1 >& "$INFO"
-	checkError 254 "Failed to copy output file $O to shared directory"
+	mv "$DIR/$O" "shared/$O" 2>&1 >& "$INFO"
+	checkError 254 "Failed to move output file $O to shared directory"
 done
 
 logstate "RM_JOBDIR"




More information about the Swift-commit mailing list