Ignore:
Timestamp:
3/1/2010 2:57:41 AM (2 years ago)
Author:
lowjoel
Message:

For NTFS MFT Record lengths we need volume (data) read access so instead catch unauthorized access exceptions (i.e. when running under a split user token in 7) and return using the heuristic of one of volume cluster size and 1024 bytes, whichever is smaller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6/Eraser.DefaultPlugins/FileSystems/Ntfs.cs

    r1802 r1859  
    165165            //TODO: any more deterministic way of finding out? 
    166166            VolumeInfo volume = VolumeInfo.FromMountPoint(info.DirectoryName); 
    167             if (info.Length < Math.Max(volume.ClusterSize, 1024)) 
     167            if (info.Length < NtfsApi.GetMftRecordSegmentSize(volume)) 
    168168            { 
    169169                //Yes it does, erase exactly to the file length 
Note: See TracChangeset for help on using the changeset viewer.