Fix indentation and codig style. No code changes!

svn path=/trunk/; revision=63694
This commit is contained in:
Eric Kohl 2014-07-06 14:03:04 +00:00
parent e6a306946d
commit 6fe19b5048
8 changed files with 264 additions and 259 deletions

View file

@ -10,7 +10,8 @@
#include "precomp.h" #include "precomp.h"
/* FMIFS.1 */ /* FMIFS.1 */
VOID NTAPI VOID
NTAPI
Chkdsk( Chkdsk(
IN PWCHAR DriveRoot, IN PWCHAR DriveRoot,
IN PWCHAR Format, IN PWCHAR Format,
@ -25,8 +26,7 @@ Chkdsk(
BOOLEAN Argument = FALSE; BOOLEAN Argument = FALSE;
/* FAIL immediately */ /* FAIL immediately */
Callback( Callback(DONE, /* Command */
DONE, /* Command */
0, /* DWORD Modifier */ 0, /* DWORD Modifier */
&Argument);/* Argument */ &Argument);/* Argument */
} }

View file

@ -12,7 +12,8 @@
/* /*
* @implemented * @implemented
*/ */
BOOLEAN NTAPI BOOLEAN
NTAPI
EnableVolumeCompression( EnableVolumeCompression(
IN PWCHAR DriveRoot, IN PWCHAR DriveRoot,
IN USHORT Compression) IN USHORT Compression)
@ -21,20 +22,17 @@ EnableVolumeCompression(
DWORD RetBytes; DWORD RetBytes;
BOOL Ret; BOOL Ret;
hFile = CreateFileW( hFile = CreateFileW(DriveRoot,
DriveRoot,
FILE_READ_DATA | FILE_WRITE_DATA, FILE_READ_DATA | FILE_WRITE_DATA,
FILE_SHARE_READ | FILE_SHARE_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL, NULL,
OPEN_EXISTING, OPEN_EXISTING,
FILE_FLAG_BACKUP_SEMANTICS, FILE_FLAG_BACKUP_SEMANTICS,
NULL); NULL);
if (hFile == INVALID_HANDLE_VALUE) if (hFile == INVALID_HANDLE_VALUE)
return FALSE; return FALSE;
Ret = DeviceIoControl( Ret = DeviceIoControl(hFile,
hFile,
FSCTL_SET_COMPRESSION, FSCTL_SET_COMPRESSION,
&Compression, &Compression,
sizeof(USHORT), sizeof(USHORT),

View file

@ -10,7 +10,8 @@
#include "precomp.h" #include "precomp.h"
/* FMIFS.3 */ /* FMIFS.3 */
VOID NTAPI VOID
NTAPI
DiskCopy(void) DiskCopy(void)
{ {
} }

View file

@ -14,13 +14,15 @@
#include <debug.h> #include <debug.h>
/* FMIFS.6 */ /* FMIFS.6 */
VOID NTAPI VOID
NTAPI
Format(VOID) Format(VOID)
{ {
} }
/* FMIFS.7 */ /* FMIFS.7 */
VOID NTAPI VOID
NTAPI
FormatEx( FormatEx(
IN PWCHAR DriveRoot, IN PWCHAR DriveRoot,
IN FMIFS_MEDIA_FLAG MediaFlag, IN FMIFS_MEDIA_FLAG MediaFlag,
@ -41,8 +43,7 @@ FormatEx(
if (!Provider) if (!Provider)
{ {
/* Unknown file system */ /* Unknown file system */
Callback( Callback(DONE, /* Command */
DONE, /* Command */
0, /* DWORD Modifier */ 0, /* DWORD Modifier */
&Argument); /* Argument */ &Argument); /* Argument */
return; return;
@ -54,12 +55,11 @@ FormatEx(
RtlCreateUnicodeString(&usDriveRoot, VolumeName); RtlCreateUnicodeString(&usDriveRoot, VolumeName);
/* Code disabled as long as our storage stack doesn't understand IOCTL_MOUNTDEV_QUERY_DEVICE_NAME */ /* Code disabled as long as our storage stack doesn't understand IOCTL_MOUNTDEV_QUERY_DEVICE_NAME */
#else #else
if (!GetVolumeNameForVolumeMountPointW(DriveRoot, VolumeName, MAX_PATH) if (!GetVolumeNameForVolumeMountPointW(DriveRoot, VolumeName, MAX_PATH) ||
|| !RtlDosPathNameToNtPathName_U(VolumeName, &usDriveRoot, NULL, &CurDir)) !RtlDosPathNameToNtPathName_U(VolumeName, &usDriveRoot, NULL, &CurDir))
{ {
/* Report an error. */ /* Report an error. */
Callback( Callback(DONE, /* Command */
DONE, /* Command */
0, /* DWORD Modifier */ 0, /* DWORD Modifier */
&Argument); /* Argument */ &Argument); /* Argument */
return; return;
@ -69,13 +69,13 @@ FormatEx(
RtlInitUnicodeString(&usLabel, Label); RtlInitUnicodeString(&usLabel, Label);
DPRINT("FormatEx - %S\n", Format); DPRINT("FormatEx - %S\n", Format);
Provider->FormatEx( Provider->FormatEx(&usDriveRoot,
&usDriveRoot,
MediaFlag, MediaFlag,
&usLabel, &usLabel,
QuickFormat, QuickFormat,
ClusterSize, ClusterSize,
Callback); Callback);
RtlFreeUnicodeString(&usDriveRoot); RtlFreeUnicodeString(&usDriveRoot);
} }

View file

@ -37,7 +37,9 @@ GetProvider(
return NULL; return NULL;
} }
static BOOLEAN
static
BOOLEAN
AddProvider( AddProvider(
IN PCUNICODE_STRING FileSystem, IN PCUNICODE_STRING FileSystem,
IN PWCHAR DllFile) IN PWCHAR DllFile)
@ -82,8 +84,9 @@ cleanup:
return ret; return ret;
} }
static BOOLEAN static
InitializeFmIfsOnce(void) BOOLEAN
InitializeFmIfsOnce(VOID)
{ {
OBJECT_ATTRIBUTES ObjectAttributes; OBJECT_ATTRIBUTES ObjectAttributes;
UNICODE_STRING RegistryPath UNICODE_STRING RegistryPath
@ -149,7 +152,8 @@ InitializeFmIfsOnce(void)
} }
/* FMIFS.8 */ /* FMIFS.8 */
BOOLEAN NTAPI BOOLEAN
NTAPI
InitializeFmIfs( InitializeFmIfs(
IN PVOID hinstDll, IN PVOID hinstDll,
IN DWORD dwReason, IN DWORD dwReason,
@ -158,9 +162,9 @@ InitializeFmIfs(
switch (dwReason) switch (dwReason)
{ {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
if (FALSE == FmIfsInitialized) if (FmIfsInitialized == FALSE)
{ {
if (FALSE == InitializeFmIfsOnce()) if (InitializeFmIfsOnce() == FALSE)
{ {
return FALSE; return FALSE;
} }

View file

@ -10,7 +10,8 @@
#include "precomp.h" #include "precomp.h"
/* FMIFS.9 */ /* FMIFS.9 */
BOOL NTAPI BOOL
NTAPI
QuerySupportedMedia( QuerySupportedMedia(
IN PWCHAR DriveRoot, IN PWCHAR DriveRoot,
OUT FMIFS_MEDIA_FLAG *CurrentMedia OPTIONAL, OUT FMIFS_MEDIA_FLAG *CurrentMedia OPTIONAL,

View file

@ -9,7 +9,8 @@
#include "precomp.h" #include "precomp.h"
BOOLEAN NTAPI BOOLEAN
NTAPI
QueryAvailableFileSystemFormat( QueryAvailableFileSystemFormat(
IN DWORD Index, IN DWORD Index,
IN OUT PWCHAR FileSystem, /* FIXME: Probably one minimal size is mandatory, but which one? */ IN OUT PWCHAR FileSystem, /* FIXME: Probably one minimal size is mandatory, but which one? */