Tiberiu Chibici
852cf1bb17
==================================================== Mainly changed: FS.Initrd + (kind of) refractored VFS, bugfixed + Rewrote 'initrd' file system, fixed many problems + Working 'cat' and 'dir' console commands + Wrote 'initrd' image write application (for windows), however it may be bugged
29 lines
444 B
C
29 lines
444 B
C
/*
|
|
* fat32.c
|
|
*
|
|
* Created on: Aug 31, 2011
|
|
* Author: Tiberiu
|
|
*/
|
|
#if NEVER
|
|
#include <fileio.h>
|
|
#include <memory.h>
|
|
#include "fat.h"
|
|
|
|
uint32 Fat32Detect (DevReadRoutine r, uint32 blocksz)
|
|
{
|
|
if (!r) return 0;
|
|
|
|
// Allocate buffer and call read routine
|
|
void* buffer = kmalloc(blocksz);
|
|
if (!(*r)(0,buffer)) return 0;
|
|
|
|
// Result of detection
|
|
uint32 res = FatDetect(buffer);
|
|
|
|
// Cleanup
|
|
kfree(buffer);
|
|
return (res == 32);
|
|
}
|
|
|
|
#endif
|