2006-11-10 21:00:24 +00:00
|
|
|
#include "usetup.h"
|
|
|
|
|
|
|
|
/* Filesystem headers */
|
2008-02-11 16:52:49 +00:00
|
|
|
#include <fslib/ext2lib.h>
|
2006-11-10 21:00:24 +00:00
|
|
|
#include <fslib/vfatlib.h>
|
|
|
|
#include <fslib/vfatxlib.h>
|
|
|
|
|
|
|
|
BOOLEAN
|
|
|
|
NATIVE_CreateFileSystemList(
|
|
|
|
IN PFILE_SYSTEM_LIST List)
|
|
|
|
{
|
|
|
|
FS_AddProvider(List, L"FAT", VfatFormat, VfatChkdsk);
|
2008-02-11 16:52:49 +00:00
|
|
|
//FS_AddProvider(List, L"EXT2", Ext2Format, Ext2Chkdsk);
|
2006-11-10 21:00:24 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOLEAN
|
|
|
|
NATIVE_FormatPartition(
|
|
|
|
IN PFILE_SYSTEM_ITEM FileSystem,
|
|
|
|
IN PCUNICODE_STRING DriveRoot,
|
|
|
|
IN PFMIFSCALLBACK Callback)
|
|
|
|
{
|
|
|
|
NTSTATUS Status;
|
|
|
|
|
|
|
|
Status = FileSystem->FormatFunc(
|
|
|
|
(PUNICODE_STRING)DriveRoot,
|
|
|
|
FMIFS_HARDDISK, /* MediaFlag */
|
|
|
|
NULL, /* Label */
|
|
|
|
FileSystem->QuickFormat, /* QuickFormat */
|
|
|
|
0, /* ClusterSize */
|
|
|
|
Callback); /* Callback */
|
|
|
|
|
|
|
|
return NT_SUCCESS(Status);
|
|
|
|
}
|