[VFATLIB]

Enable FAT volumes checking.
Dedicated to Thomas

svn path=/trunk/; revision=69772
This commit is contained in:
Pierre Schweitzer 2015-11-01 13:04:23 +00:00
parent 76aa33bda1
commit 2a8185fa78
2 changed files with 4 additions and 8 deletions

View file

@ -343,12 +343,10 @@ VfatChkdsk(IN PUNICODE_STRING DriveRoot,
IN BOOLEAN ScanDrive,
IN PFMIFSCALLBACK Callback)
{
#if 0
BOOLEAN verify;
BOOLEAN salvage_files;
#endif
//ULONG free_clusters;
//DOS_FS fs;
ULONG free_clusters;
DOS_FS fs;
/* Store callback pointer */
ChkdskCallback = Callback;
@ -361,7 +359,6 @@ VfatChkdsk(IN PUNICODE_STRING DriveRoot,
FsCheckTotalFiles = 0;
#if 0
verify = TRUE;
salvage_files = TRUE;
@ -430,9 +427,6 @@ VfatChkdsk(IN PUNICODE_STRING DriveRoot,
/* Close the volume */
return fs_close(FixErrors) ? STATUS_SUCCESS : STATUS_UNSUCCESSFUL;
#else
return STATUS_SUCCESS;
#endif
}
/* EOF */

View file

@ -25,6 +25,8 @@
#include "check/io.h"
#include "check/fat.h"
#include "check/file.h"
#include "check/check.h"
#include "check/boot.h"
#include <pshpack1.h>
typedef struct _FAT16_BOOT_SECTOR