reactos/sdk/lib/fslib/vfatlib
Pierre Schweitzer b0bf7dfb62
[VFATLIB] Never touch the file system if not in interactive or RW mode.
It's critical not to perform any write on a volume without an exclusive lock on it.
That lock is only acquired if ChkDsk is started in RW mode.
Also added an assert in write routine, to make sure that when we're about to perform
a write operation, we're really allowed to do so.

This will avoid volume corruptions when a simple "chkdsk" is issued from cmd.
To put it simple: check will really check now, and won't attempt any repair.

CORE-14119
2017-12-17 14:02:31 +01:00
..
check [VFATLIB] Never touch the file system if not in interactive or RW mode. 2017-12-17 14:02:31 +01:00
CMakeLists.txt
common.c
common.h
fat12.c
fat16.c
fat32.c
README.txt
vfatlib.c [VFATLIB] Make Chkdsk handle volume opening locking failures. 2017-12-09 21:12:09 +01:00
vfatlib.h

The FAT Checker is taken from dosfstools' fsck.vfat
https://github.com/dosfstools/dosfstools
Synced with master branch, commit ed4e47b6757c05d4c23a9075b8b68003aa5dbfb8