mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
[VFATLIB] Only check volume if full scan or if allowed to fix it
This allows doing a quick probe about whether a volume needs to be fixed by checking its dirty bit. CORE-14692
This commit is contained in:
parent
695547cd8c
commit
54f383d996
1 changed files with 8 additions and 0 deletions
|
@ -428,6 +428,14 @@ VfatChkdsk(IN PUNICODE_STRING DriveRoot,
|
||||||
/* No need to check FS */
|
/* No need to check FS */
|
||||||
return (fs_close(FALSE) == 0 ? STATUS_SUCCESS : STATUS_DISK_CORRUPT_ERROR);
|
return (fs_close(FALSE) == 0 ? STATUS_SUCCESS : STATUS_DISK_CORRUPT_ERROR);
|
||||||
}
|
}
|
||||||
|
else if (CheckOnlyIfDirty && fs_isdirty())
|
||||||
|
{
|
||||||
|
if (!(FsCheckFlags & FSCHECK_READ_WRITE) && !(FsCheckFlags & FSCHECK_INTERACTIVE))
|
||||||
|
{
|
||||||
|
fs_close(FALSE);
|
||||||
|
return STATUS_DISK_CORRUPT_ERROR;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
read_boot(&fs);
|
read_boot(&fs);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue