mirror of
https://github.com/reactos/reactos.git
synced 2025-04-05 05:01:03 +00:00
[FMIFS]
Fix indentation and codig style. No code changes! svn path=/trunk/; revision=63694
This commit is contained in:
parent
e6a306946d
commit
6fe19b5048
8 changed files with 264 additions and 259 deletions
|
@ -10,7 +10,8 @@
|
|||
#include "precomp.h"
|
||||
|
||||
/* FMIFS.1 */
|
||||
VOID NTAPI
|
||||
VOID
|
||||
NTAPI
|
||||
Chkdsk(
|
||||
IN PWCHAR DriveRoot,
|
||||
IN PWCHAR Format,
|
||||
|
@ -25,8 +26,7 @@ Chkdsk(
|
|||
BOOLEAN Argument = FALSE;
|
||||
|
||||
/* FAIL immediately */
|
||||
Callback(
|
||||
DONE, /* Command */
|
||||
Callback(DONE, /* Command */
|
||||
0, /* DWORD Modifier */
|
||||
&Argument);/* Argument */
|
||||
}
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOLEAN NTAPI
|
||||
BOOLEAN
|
||||
NTAPI
|
||||
EnableVolumeCompression(
|
||||
IN PWCHAR DriveRoot,
|
||||
IN USHORT Compression)
|
||||
|
@ -21,20 +22,17 @@ EnableVolumeCompression(
|
|||
DWORD RetBytes;
|
||||
BOOL Ret;
|
||||
|
||||
hFile = CreateFileW(
|
||||
DriveRoot,
|
||||
hFile = CreateFileW(DriveRoot,
|
||||
FILE_READ_DATA | FILE_WRITE_DATA,
|
||||
FILE_SHARE_READ | FILE_SHARE_WRITE,
|
||||
NULL,
|
||||
OPEN_EXISTING,
|
||||
FILE_FLAG_BACKUP_SEMANTICS,
|
||||
NULL);
|
||||
|
||||
if (hFile == INVALID_HANDLE_VALUE)
|
||||
return FALSE;
|
||||
|
||||
Ret = DeviceIoControl(
|
||||
hFile,
|
||||
Ret = DeviceIoControl(hFile,
|
||||
FSCTL_SET_COMPRESSION,
|
||||
&Compression,
|
||||
sizeof(USHORT),
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
#include "precomp.h"
|
||||
|
||||
/* FMIFS.3 */
|
||||
VOID NTAPI
|
||||
VOID
|
||||
NTAPI
|
||||
DiskCopy(void)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -14,13 +14,15 @@
|
|||
#include <debug.h>
|
||||
|
||||
/* FMIFS.6 */
|
||||
VOID NTAPI
|
||||
VOID
|
||||
NTAPI
|
||||
Format(VOID)
|
||||
{
|
||||
}
|
||||
|
||||
/* FMIFS.7 */
|
||||
VOID NTAPI
|
||||
VOID
|
||||
NTAPI
|
||||
FormatEx(
|
||||
IN PWCHAR DriveRoot,
|
||||
IN FMIFS_MEDIA_FLAG MediaFlag,
|
||||
|
@ -41,8 +43,7 @@ FormatEx(
|
|||
if (!Provider)
|
||||
{
|
||||
/* Unknown file system */
|
||||
Callback(
|
||||
DONE, /* Command */
|
||||
Callback(DONE, /* Command */
|
||||
0, /* DWORD Modifier */
|
||||
&Argument); /* Argument */
|
||||
return;
|
||||
|
@ -54,12 +55,11 @@ FormatEx(
|
|||
RtlCreateUnicodeString(&usDriveRoot, VolumeName);
|
||||
/* Code disabled as long as our storage stack doesn't understand IOCTL_MOUNTDEV_QUERY_DEVICE_NAME */
|
||||
#else
|
||||
if (!GetVolumeNameForVolumeMountPointW(DriveRoot, VolumeName, MAX_PATH)
|
||||
|| !RtlDosPathNameToNtPathName_U(VolumeName, &usDriveRoot, NULL, &CurDir))
|
||||
if (!GetVolumeNameForVolumeMountPointW(DriveRoot, VolumeName, MAX_PATH) ||
|
||||
!RtlDosPathNameToNtPathName_U(VolumeName, &usDriveRoot, NULL, &CurDir))
|
||||
{
|
||||
/* Report an error. */
|
||||
Callback(
|
||||
DONE, /* Command */
|
||||
Callback(DONE, /* Command */
|
||||
0, /* DWORD Modifier */
|
||||
&Argument); /* Argument */
|
||||
return;
|
||||
|
@ -69,13 +69,13 @@ FormatEx(
|
|||
RtlInitUnicodeString(&usLabel, Label);
|
||||
|
||||
DPRINT("FormatEx - %S\n", Format);
|
||||
Provider->FormatEx(
|
||||
&usDriveRoot,
|
||||
Provider->FormatEx(&usDriveRoot,
|
||||
MediaFlag,
|
||||
&usLabel,
|
||||
QuickFormat,
|
||||
ClusterSize,
|
||||
Callback);
|
||||
|
||||
RtlFreeUnicodeString(&usDriveRoot);
|
||||
}
|
||||
|
||||
|
|
|
@ -37,7 +37,9 @@ GetProvider(
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static BOOLEAN
|
||||
|
||||
static
|
||||
BOOLEAN
|
||||
AddProvider(
|
||||
IN PCUNICODE_STRING FileSystem,
|
||||
IN PWCHAR DllFile)
|
||||
|
@ -82,8 +84,9 @@ cleanup:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static BOOLEAN
|
||||
InitializeFmIfsOnce(void)
|
||||
static
|
||||
BOOLEAN
|
||||
InitializeFmIfsOnce(VOID)
|
||||
{
|
||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||
UNICODE_STRING RegistryPath
|
||||
|
@ -149,7 +152,8 @@ InitializeFmIfsOnce(void)
|
|||
}
|
||||
|
||||
/* FMIFS.8 */
|
||||
BOOLEAN NTAPI
|
||||
BOOLEAN
|
||||
NTAPI
|
||||
InitializeFmIfs(
|
||||
IN PVOID hinstDll,
|
||||
IN DWORD dwReason,
|
||||
|
@ -158,9 +162,9 @@ InitializeFmIfs(
|
|||
switch (dwReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
if (FALSE == FmIfsInitialized)
|
||||
if (FmIfsInitialized == FALSE)
|
||||
{
|
||||
if (FALSE == InitializeFmIfsOnce())
|
||||
if (InitializeFmIfsOnce() == FALSE)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
#include "precomp.h"
|
||||
|
||||
/* FMIFS.9 */
|
||||
BOOL NTAPI
|
||||
BOOL
|
||||
NTAPI
|
||||
QuerySupportedMedia(
|
||||
IN PWCHAR DriveRoot,
|
||||
OUT FMIFS_MEDIA_FLAG *CurrentMedia OPTIONAL,
|
||||
|
|
|
@ -9,13 +9,14 @@
|
|||
|
||||
#include "precomp.h"
|
||||
|
||||
BOOLEAN NTAPI
|
||||
BOOLEAN
|
||||
NTAPI
|
||||
QueryAvailableFileSystemFormat(
|
||||
IN DWORD Index,
|
||||
IN OUT PWCHAR FileSystem, /* FIXME: Probably one minimal size is mandatory, but which one? */
|
||||
OUT UCHAR* Major,
|
||||
OUT UCHAR* Minor,
|
||||
OUT BOOLEAN* LatestVersion)
|
||||
OUT UCHAR *Major,
|
||||
OUT UCHAR *Minor,
|
||||
OUT BOOLEAN *LatestVersion)
|
||||
{
|
||||
PLIST_ENTRY ListEntry;
|
||||
PIFS_PROVIDER Provider;
|
||||
|
|
Loading…
Reference in a new issue