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

View file

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