Skip to content

Commit

Permalink
Allow multiple copies at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
FeodorFitsner committed Nov 6, 2015
1 parent 10a485a commit a533ca4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion UBCopy/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<log4net>
<root>
<level value="ERROR" />
<appender-ref ref="RollingFileAppender" />
<!--<appender-ref ref="RollingFileAppender" />-->
<!--<appender-ref ref="FileAppender" />-->
<appender-ref ref="ColoredConsoleAppender" />-->
</root>
Expand Down
2 changes: 1 addition & 1 deletion UBCopy/AsyncUnbuffCopy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private void AsyncReadFile()
//open input file
try
{
_infile = new FileStream(_inputfile, FileMode.Open, FileAccess.Read, FileShare.None, CopyBufferSize,
_infile = new FileStream(_inputfile, FileMode.Open, FileAccess.Read, FileShare.Read, CopyBufferSize,
FileFlagNoBuffering | FileOptions.SequentialScan);
}
catch (Exception e)
Expand Down
2 changes: 1 addition & 1 deletion UBCopy/AsyncUnbuffCopyStatic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private static void AsyncReadFile()
//open input file
try
{
_infile = new FileStream(_inputfile, FileMode.Open, FileAccess.Read, FileShare.None, CopyBufferSize,
_infile = new FileStream(_inputfile, FileMode.Open, FileAccess.Read, FileShare.Read, CopyBufferSize,
FileFlagNoBuffering | FileOptions.SequentialScan);
}
catch (Exception e)
Expand Down
2 changes: 1 addition & 1 deletion UBCopy/SynchronousUnbufferedCopy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static int SyncCopyFileUnbuffered(string inputfile, string outputfile, in
try
{
infile = new FileStream(inputfile,
FileMode.Open, FileAccess.Read, FileShare.None, buffersize,
FileMode.Open, FileAccess.Read, FileShare.Read, buffersize,
FileFlagNoBuffering | FileOptions.SequentialScan);

}
Expand Down

0 comments on commit a533ca4

Please sign in to comment.