reactos/sdk/lib
Pierre Schweitzer 6ff94017e4
[VFATLIB] Fix FAT partitions formatting in a non clean fashion.
(So the fun begins)
In spite of what VFATLIB headers pretend, there's not magic in FAT boot sector.
The 3 first bytes are just the jump instruction (to the boot code). No jump, no boot.
Also, some (many?) FAT implementations rely on the jump code to help detecting that
a FAT volume is really a FAT volume. Like MS FastFAT. Or our own FAT recognizer in FS_REC.
The story is that, up to that commit, we zeroed the 3 first bytes; leading to broken
FAT volumes.
This got hidden in most cases by the fact that during setup, when we install boot
loader, we erase parts of the boot sector, including the jump instruction, making the
volume valid again. But that wouldn't fix secondary volumes where the boot loader isn't
installed.
And, also, imagine a scenario where you want to install ReactOS on a newly formatted volume
with MS FastFAT instead of our own implementation... That would simply not work to
the fact that the driver wouldn't recognize the fresh formatted volume!

(So the non fashion begins)
Fix this by putting a not that valid jump into the boot sector when formatting our
partitions. That way, our volume is always regarding a FAT view point. But, instead of
putting values that mean (nearly) nothing. We should also put a dummy bootloader
displaying the user and error message, as done by dosfstools.

(So the hope begins)
This opens the way for trying to install ReactOS with MS FastFAT (doesn't work yet).

CORE-11819
CORE-14362
2018-02-21 00:26:13 +01:00
..
3rdparty [STRMBASE] Sync with Wine 3.0. CORE-14225 2018-02-10 17:53:05 +01:00
atl [ATL] CWindow: Add an overload of GetDlgItemText which takes a CSimpleString as parameter 2017-12-27 19:25:58 +02:00
cmlib
comsupp
conutils [CONUTILS] Relax the enforcement of using FORMAT_MESSAGE_MAX_WIDTH_MASK in the ConMsg* and ConResMsg* functions. 2018-02-11 18:10:08 +01:00
cportlib
cpprt
crt [CRT:STARTUP] Fix a Clang-Cl warning about GS_ExceptionPointers 2018-02-10 18:13:12 +01:00
cryptlib
debugsup
delayimp
dnslib
drivers [IP] Silence "TCP operation failed" debug spam. 2018-02-15 12:26:35 +01:00
dxguid
epsapi
evtlib [EVTLIB] Make the header C++ compatible. 2018-01-27 16:07:32 +01:00
fast486
fslib [VFATLIB] Fix FAT partitions formatting in a non clean fashion. 2018-02-21 00:26:13 +01:00
gcc_ssp
inflib
ioevent
lsalib
nt
ppcmmu
pseh
rossym [NTOSKRNL][ROSSYM] ZwReadFile() calls: Use explicit NULL instead of ambiguous 0. CORE-13910 2017-10-27 13:38:02 +02:00
rossym_new [NTOSKRNL][ROSSYM] ZwReadFile() calls: Use explicit NULL instead of ambiguous 0. CORE-13910 2017-10-27 13:38:02 +02:00
rtl [RTL][XDK][KERNERL32_WINETEST] Import wine actctx changes from 3.2-37c98396 2018-02-19 22:23:39 +01:00
runtmchk
scrnsave
skiplist
smlib
strmiids
tdilib
uuid [UUID] Add SID_SHTMLEditServices. 2017-12-18 13:18:26 +01:00
wdmguid
CMakeLists.txt