Changeset 2665


Ignore:
Timestamp:
5/24/2012 7:38:45 AM (23 months ago)
Author:
lowjoel
Message:

Merged revision(s) 2659 from trunk/eraser: When we are copying over the plausible deniability file, we just need to include some data from it; there's no need to lock the file for exclusive reading.

Location:
branches/eraser6/6.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/6.0

  • branches/eraser6/6.0/Eraser.Manager/FileSystem.cs

    r2252 r2665  
    164164            long amountToCopy = Math.Min(stream.Length, 
    165165                Math.Min(4 * 1024 * 1024, shadowFileInfo.Length)); 
    166             using (FileStream shadowFileStream = shadowFileInfo.OpenRead()) 
     166            using (FileStream shadowFileStream = shadowFileInfo.Open( 
     167                    FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) 
    167168            { 
    168169                while (stream.Position < amountToCopy) 
Note: See TracChangeset for help on using the changeset viewer.