[Swift-commit] cog r3430

swift at ci.uchicago.edu swift at ci.uchicago.edu
Thu Jul 19 01:00:07 CDT 2012


------------------------------------------------------------------------
r3430 | hategan | 2012-07-19 00:55:28 -0500 (Thu, 19 Jul 2012) | 1 line

create zero sized files
------------------------------------------------------------------------
Index: modules/provider-coaster/src/org/globus/cog/abstraction/impl/file/coaster/handlers/providers/LocalIOProvider.java
===================================================================
--- modules/provider-coaster/src/org/globus/cog/abstraction/impl/file/coaster/handlers/providers/LocalIOProvider.java	(revision 3429)
+++ modules/provider-coaster/src/org/globus/cog/abstraction/impl/file/coaster/handlers/providers/LocalIOProvider.java	(working copy)
@@ -20,12 +20,12 @@
 
 import org.apache.log4j.Logger;
 import org.globus.cog.abstraction.impl.file.coaster.buffers.Buffers;
+import org.globus.cog.abstraction.impl.file.coaster.buffers.Buffers.Direction;
 import org.globus.cog.abstraction.impl.file.coaster.buffers.ReadBuffer;
 import org.globus.cog.abstraction.impl.file.coaster.buffers.ReadBufferCallback;
 import org.globus.cog.abstraction.impl.file.coaster.buffers.ThrottleManager;
 import org.globus.cog.abstraction.impl.file.coaster.buffers.WriteBuffer;
 import org.globus.cog.abstraction.impl.file.coaster.buffers.WriteBufferCallback;
-import org.globus.cog.abstraction.impl.file.coaster.buffers.Buffers.Direction;
 import org.globus.cog.abstraction.impl.file.coaster.handlers.CoasterFileRequestHandler;
 
 public class LocalIOProvider implements IOProvider {
@@ -81,6 +81,7 @@
         public void setLength(long len) throws IOException {
             this.len = len;
             if (len == 0) {
+                f.createNewFile();
                 cb.done(this);
             }
             else {



More information about the Swift-commit mailing list