Changeset 2150 for trunk/eraser


Ignore:
Timestamp:
5/16/2010 11:39:14 AM (4 years ago)
Author:
lowjoel
Message:

Experimental fix to prevent those pesky disk full messages when erasing unused space.

Location:
trunk/eraser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.DefaultPlugins/FileSystems/Windows.cs

    r2149 r2150  
    158158                            break; 
    159159 
     160                        case Win32ErrorCode.DiskFull: 
     161                            //If the disk is full, we can't do anything except manually deleting 
     162                            //the file, break out of this loop. 
     163                            i = FileNameEraseTries; 
     164                            break; 
     165 
    160166                        default: 
    161167                            throw; 
  • trunk/eraser/Eraser.Util/Win32ErrorCodes.cs

    r2140 r2150  
    8686        public const int SharingViolation = 32; 
    8787        public const int InvalidParameter = 87; 
     88        public const int DiskFull = 112; 
    8889        public const int MoreData = 234; 
    8990        public const int NoMoreItems = 259; 
Note: See TracChangeset for help on using the changeset viewer.