ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
February 2008
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
21 participants
460 discussions
Start a n
N
ew thread
[hpoussin] 32294: Load ext2.sys driver too
by hpoussin@svn.reactos.org
Author: hpoussin Date: Mon Feb 11 19:46:24 2008 New Revision: 32294 URL:
http://svn.reactos.org/svn/reactos?rev=32294&view=rev
Log: Load ext2.sys driver too Modified: trunk/reactos/boot/freeldr/freeldr/include/arch.h trunk/reactos/boot/freeldr/freeldr/reactos/setupldr.c Modified: trunk/reactos/boot/freeldr/freeldr/include/arch.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/inclu…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/include/arch.h (original) +++ trunk/reactos/boot/freeldr/freeldr/include/arch.h Mon Feb 11 19:46:24 2008 @@ -40,7 +40,7 @@ #define BIOSCALLBUFOFFSET 0x0000 /* Buffer to store temporary data for any Int386() call */ #define FILESYSBUFFER 0x80000 /* Buffer to store file system data (e.g. cluster buffer for FAT) */ #define DISKREADBUFFER 0x90000 /* Buffer to store data read in from the disk via the BIOS */ -#elif defined(_M_PPC) || defined(_M_ARM) +#elif defined(_M_PPC) || defined(_M_MIPS) || defined(_M_ARM) extern PVOID FsStaticBufferDisk, FsStaticBufferData; #define DISKREADBUFFER FsStaticBufferDisk #define FILESYSBUFFER FsStaticBufferData Modified: trunk/reactos/boot/freeldr/freeldr/reactos/setupldr.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/react…
============================================================================== --- trunk/reactos/boot/freeldr/freeldr/reactos/setupldr.c (original) +++ trunk/reactos/boot/freeldr/freeldr/reactos/setupldr.c Mon Feb 11 19:46:24 2008 @@ -404,6 +404,10 @@ if (!LoadDriver(SourcePath, "fastfat.sys")) return; + /* Load ext2.sys (could be loaded by the setup prog!) */ + if (!LoadDriver(SourcePath, "ext2.sys")) + return; + /* Load additional files specified in txtsetup.inf */ if (InfFindFirstLine(InfHandle, "SourceDisksFiles",
16 years, 10 months
1
0
0
0
[hpoussin] 32293: Fix ext2 driver compilation. NOT TESTED YET!
by hpoussin@svn.reactos.org
Author: hpoussin Date: Mon Feb 11 19:42:10 2008 New Revision: 32293 URL:
http://svn.reactos.org/svn/reactos?rev=32293&view=rev
Log: Fix ext2 driver compilation. NOT TESTED YET! Added: trunk/reactos/drivers/filesystems/ext2/ext2.rbuild (with props) Modified: trunk/reactos/drivers/filesystems/directory.rbuild trunk/reactos/drivers/filesystems/ext2/inc/ext2fsd.h trunk/reactos/drivers/filesystems/ext2/inc/struct.h trunk/reactos/drivers/filesystems/ext2/src/DiskIO.c trunk/reactos/drivers/filesystems/ext2/src/cleanup.c trunk/reactos/drivers/filesystems/ext2/src/close.c trunk/reactos/drivers/filesystems/ext2/src/create.c trunk/reactos/drivers/filesystems/ext2/src/devcntrl.c trunk/reactos/drivers/filesystems/ext2/src/dircntrl.c trunk/reactos/drivers/filesystems/ext2/src/ext2init.c trunk/reactos/drivers/filesystems/ext2/src/fastio.c trunk/reactos/drivers/filesystems/ext2/src/fileinfo.c trunk/reactos/drivers/filesystems/ext2/src/flush.c trunk/reactos/drivers/filesystems/ext2/src/fsctrl.c trunk/reactos/drivers/filesystems/ext2/src/io.c trunk/reactos/drivers/filesystems/ext2/src/metadata.c trunk/reactos/drivers/filesystems/ext2/src/misc.c trunk/reactos/drivers/filesystems/ext2/src/read.c trunk/reactos/drivers/filesystems/ext2/src/shutdown.c trunk/reactos/drivers/filesystems/ext2/src/volinfo.c trunk/reactos/drivers/filesystems/ext2/src/write.c Modified: trunk/reactos/drivers/filesystems/directory.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/direct…
============================================================================== --- trunk/reactos/drivers/filesystems/directory.rbuild (original) +++ trunk/reactos/drivers/filesystems/directory.rbuild Mon Feb 11 19:42:10 2008 @@ -3,6 +3,9 @@ <group xmlns:xi="
http://www.w3.org/2001/XInclude
"> <directory name="cdfs"> <xi:include href="cdfs/cdfs.rbuild" /> +</directory> +<directory name="ext2"> + <xi:include href="ext2/ext2.rbuild" /> </directory> <directory name="fs_rec"> <xi:include href="fs_rec/fs_rec.rbuild" /> Added: trunk/reactos/drivers/filesystems/ext2/ext2.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/e…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/ext2.rbuild (added) +++ trunk/reactos/drivers/filesystems/ext2/ext2.rbuild Mon Feb 11 19:42:10 2008 @@ -1,0 +1,31 @@ +<?xml version="1.0"?> +<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd"> +<module name="ext2fs" type="kernelmodedriver" installbase="system32/drivers" installname="ext2.sys" allowwarnings="true"> + <bootstrap installbase="$(CDOUTPUT)" /> + <include base="ext2fs">inc</include> + <linkerflag>-lgcc</linkerflag> + <library>ntoskrnl</library> + <library>hal</library> + <directory name="src"> + <file>cleanup.c</file> + <file>close.c</file> + <file>create.c</file> + <file>devcntrl.c</file> + <file>dircntrl.c</file> + <file>DiskIO.c</file> + <file>ext2init.c</file> + <file>fastio.c</file> + <file>fileinfo.c</file> + <file>flush.c</file> + <file>fsctrl.c</file> + <file>io.c</file> + <file>metadata.c</file> + <file>misc.c</file> + <file>read.c</file> + <file>shutdown.c</file> + <file>volinfo.c</file> + <file>write.c</file> + </directory> + <file>ext2fs.rc</file> + <pch>inc/ext2fsd.h</pch> +</module> Propchange: trunk/reactos/drivers/filesystems/ext2/ext2.rbuild ------------------------------------------------------------------------------ svn:eol-style = native Modified: trunk/reactos/drivers/filesystems/ext2/inc/ext2fsd.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/i…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/inc/ext2fsd.h (original) +++ trunk/reactos/drivers/filesystems/ext2/inc/ext2fsd.h Mon Feb 11 19:42:10 2008 @@ -185,7 +185,7 @@ { \ if( ( TYPE ) & ( PERMITTED_DEBUG_TRACE_TYPES ) ) \ { \ - DbgPrint("\n "); \ + DbgPrint(" "); \ DbgPrint(X,Y); \ if( ( DEBUG_TRACE_IRQL ) & ( PERMITTED_DEBUG_TRACE_TYPES ) ) \ { \ @@ -195,6 +195,7 @@ { \ DbgPrint( " [%s] Line No = %ld", __FILE__, __LINE__ ); \ } \ + DbgPrint("\n"); \ } \ } Modified: trunk/reactos/drivers/filesystems/ext2/inc/struct.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/i…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/inc/struct.h (original) +++ trunk/reactos/drivers/filesystems/ext2/inc/struct.h Mon Feb 11 19:42:10 2008 @@ -21,24 +21,22 @@ /************************************************************************** some useful definitions **************************************************************************/ -#ifdef _CPU_X86_ -typedef char int8; -typedef short int16; -typedef int int32; - -typedef unsigned char uint8; -typedef unsigned short uint16; -typedef unsigned int uint32; - -typedef PVOID PBCB; +typedef CHAR int8; +typedef SHORT int16; +typedef LONG int32; + +typedef UCHAR uint8; +typedef USHORT uint16; +typedef ULONG uint32; + +typedef PVOID PBCB; + +#define try if (1) +#define except(x) if (0 && (x)) +#define finally if (1) +#define GetExceptionInformation() 0 // we will use the LARGE_INTEGER structure as defined by NT - -#else // Please define appropriate types here - -!!!! You must define your types here for compilation to proceed !!!! - -#endif // if _CPU_X86_ /************************************************************************** some empty typedefs defined here so we can reference them easily Modified: trunk/reactos/drivers/filesystems/ext2/src/DiskIO.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/src/DiskIO.c (original) +++ trunk/reactos/drivers/filesystems/ext2/src/DiskIO.c Mon Feb 11 19:42:10 2008 @@ -38,7 +38,7 @@ * Return Value: The Status of the Read IO * *************************************************************************/ -NTSTATUS Ext2ReadLogicalBlocks ( +NTSTATUS NTAPI Ext2ReadLogicalBlocks ( PDEVICE_OBJECT PtrTargetDeviceObject, // the Target Device Object VOID *Buffer, // The Buffer that takes the data read in LARGE_INTEGER StartLogicalBlock, // The logical block from which reading is to start @@ -108,7 +108,7 @@ * Return Value: The Status of the Read IO * *************************************************************************/ -NTSTATUS Ext2ReadPhysicalBlocks ( +NTSTATUS NTAPI Ext2ReadPhysicalBlocks ( PDEVICE_OBJECT PtrTargetDeviceObject, // the Target Device Object VOID *Buffer, // The Buffer that takes the data read in LARGE_INTEGER StartPhysicalBlock, // The block from which reading is to start Modified: trunk/reactos/drivers/filesystems/ext2/src/cleanup.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/src/cleanup.c (original) +++ trunk/reactos/drivers/filesystems/ext2/src/cleanup.c Mon Feb 11 19:42:10 2008 @@ -37,7 +37,7 @@ * Return Value: Does not matter! * *************************************************************************/ -NTSTATUS Ext2Cleanup( +NTSTATUS NTAPI Ext2Cleanup( PDEVICE_OBJECT DeviceObject, // the logical volume device object PIRP Irp) // I/O Request Packet { @@ -99,7 +99,7 @@ * Return Value: Does not matter! * *************************************************************************/ -NTSTATUS Ext2CommonCleanup( +NTSTATUS NTAPI Ext2CommonCleanup( PtrExt2IrpContext PtrIrpContext, PIRP PtrIrp, BOOLEAN FirstAttempt ) Modified: trunk/reactos/drivers/filesystems/ext2/src/close.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/src/close.c (original) +++ trunk/reactos/drivers/filesystems/ext2/src/close.c Mon Feb 11 19:42:10 2008 @@ -38,7 +38,7 @@ * Return Value: Does not matter! * *************************************************************************/ -NTSTATUS Ext2Close( +NTSTATUS NTAPI Ext2Close( PDEVICE_OBJECT DeviceObject, // the logical volume device object PIRP Irp) // I/O Request Packet { @@ -102,7 +102,7 @@ * Return Value: Does not matter! * *************************************************************************/ -NTSTATUS Ext2CommonClose( +NTSTATUS NTAPI Ext2CommonClose( PtrExt2IrpContext PtrIrpContext, PIRP PtrIrp, BOOLEAN FirstAttempt ) Modified: trunk/reactos/drivers/filesystems/ext2/src/create.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/src/create.c (original) +++ trunk/reactos/drivers/filesystems/ext2/src/create.c Mon Feb 11 19:42:10 2008 @@ -36,7 +36,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2Create( +NTSTATUS NTAPI Ext2Create( PDEVICE_OBJECT DeviceObject, // the logical volume device object PIRP Irp) // I/O Request Packet { @@ -124,7 +124,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2CommonCreate( +NTSTATUS NTAPI Ext2CommonCreate( PtrExt2IrpContext PtrIrpContext, PIRP PtrIrp, BOOLEAN FirstAttempt) @@ -986,7 +986,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2OpenVolume( +NTSTATUS NTAPI Ext2OpenVolume( PtrExt2VCB PtrVCB, // volume to be opened PtrExt2IrpContext PtrIrpContext, // IRP context PIRP PtrIrp, // original/user IRP @@ -1121,7 +1121,7 @@ * Return Value: None * *************************************************************************/ -NTSTATUS Ext2OpenRootDirectory( +NTSTATUS NTAPI Ext2OpenRootDirectory( PtrExt2VCB PtrVCB, // volume PtrExt2IrpContext PtrIrpContext, // IRP context PIRP PtrIrp, // original/user IRP @@ -1156,7 +1156,7 @@ -PtrExt2FCB Ext2LocateChildFCBInCore( +PtrExt2FCB NTAPI Ext2LocateChildFCBInCore( PtrExt2VCB PtrVCB, PUNICODE_STRING PtrName, ULONG ParentInodeNo ) @@ -1187,7 +1187,7 @@ return NULL; } -PtrExt2FCB Ext2LocateFCBInCore( +PtrExt2FCB NTAPI Ext2LocateFCBInCore( PtrExt2VCB PtrVCB, ULONG InodeNo ) { @@ -1215,7 +1215,7 @@ } -ULONG Ext2LocateFileInDisk ( +ULONG NTAPI Ext2LocateFileInDisk ( PtrExt2VCB PtrVCB, PUNICODE_STRING PtrCurrentName, PtrExt2FCB PtrParentFCB, @@ -1439,7 +1439,7 @@ * Return Value: None * *************************************************************************/ -ULONG Ext2CreateFile( +ULONG NTAPI Ext2CreateFile( PtrExt2IrpContext PtrIrpContext, PtrExt2VCB PtrVCB, PUNICODE_STRING PtrName, @@ -1568,7 +1568,7 @@ * Return Value: None * *************************************************************************/ -BOOLEAN Ext2OverwriteFile( +BOOLEAN NTAPI Ext2OverwriteFile( PtrExt2FCB PtrFCB, PtrExt2IrpContext PtrIrpContext) { @@ -1631,7 +1631,7 @@ * Return Value: None * *************************************************************************/ -BOOLEAN Ext2SupersedeFile( +BOOLEAN NTAPI Ext2SupersedeFile( PtrExt2FCB PtrFCB, PtrExt2IrpContext PtrIrpContext) { Modified: trunk/reactos/drivers/filesystems/ext2/src/devcntrl.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/src/devcntrl.c (original) +++ trunk/reactos/drivers/filesystems/ext2/src/devcntrl.c Mon Feb 11 19:42:10 2008 @@ -52,7 +52,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2DeviceControl( +NTSTATUS NTAPI Ext2DeviceControl( PDEVICE_OBJECT DeviceObject, // the logical volume device object PIRP Irp) // I/O Request Packet { @@ -113,7 +113,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2CommonDeviceControl( +NTSTATUS NTAPI Ext2CommonDeviceControl( PtrExt2IrpContext PtrIrpContext, PIRP PtrIrp) { @@ -197,7 +197,7 @@ * Return Value: STATUS_SUCCESS * *************************************************************************/ -NTSTATUS Ext2DevIoctlCompletion( +NTSTATUS NTAPI Ext2DevIoctlCompletion( PDEVICE_OBJECT PtrDeviceObject, PIRP PtrIrp, void *Context) Modified: trunk/reactos/drivers/filesystems/ext2/src/dircntrl.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/src/dircntrl.c (original) +++ trunk/reactos/drivers/filesystems/ext2/src/dircntrl.c Mon Feb 11 19:42:10 2008 @@ -36,7 +36,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2DirControl( +NTSTATUS NTAPI Ext2DirControl( PDEVICE_OBJECT DeviceObject, // the logical volume device object PIRP Irp) // I/O Request Packet { @@ -100,7 +100,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2CommonDirControl( +NTSTATUS NTAPI Ext2CommonDirControl( PtrExt2IrpContext PtrIrpContext, PIRP PtrIrp) { @@ -176,7 +176,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2QueryDirectory( +NTSTATUS NTAPI Ext2QueryDirectory( PtrExt2IrpContext PtrIrpContext, PIRP PtrIrp, #ifdef _GNU_NTIFS_ @@ -814,7 +814,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2NotifyChangeDirectory( +NTSTATUS NTAPI Ext2NotifyChangeDirectory( PtrExt2IrpContext PtrIrpContext, PIRP PtrIrp, #ifdef _GNU_NTIFS_ Modified: trunk/reactos/drivers/filesystems/ext2/src/ext2init.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/src/ext2init.c (original) +++ trunk/reactos/drivers/filesystems/ext2/src/ext2init.c Mon Feb 11 19:42:10 2008 @@ -43,7 +43,7 @@ * Return Value: STATUS_SUCCESS/Error (will cause driver to be unloaded). * *************************************************************************/ -NTSTATUS DriverEntry( +NTSTATUS NTAPI DriverEntry( PDRIVER_OBJECT DriverObject, // created by the I/O sub-system PUNICODE_STRING RegistryPath) // path to the registry key { @@ -232,7 +232,7 @@ * Return Value: None * *************************************************************************/ -void Ext2FsdInitializeFunctionPointers( +void NTAPI Ext2FsdInitializeFunctionPointers( PDRIVER_OBJECT DriverObject) // created by the I/O sub-system { PFAST_IO_DISPATCH PtrFastIoDispatch = NULL; @@ -347,7 +347,7 @@ } -VOID Ext2QueueHandlerThread( +VOID NTAPI Ext2QueueHandlerThread( IN PVOID StartContext ) { Modified: trunk/reactos/drivers/filesystems/ext2/src/fastio.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/src/fastio.c (original) +++ trunk/reactos/drivers/filesystems/ext2/src/fastio.c Mon Feb 11 19:42:10 2008 @@ -35,7 +35,7 @@ * Return Value: TRUE/FALSE * *************************************************************************/ -BOOLEAN Ext2FastIoCheckIfPossible( +BOOLEAN NTAPI Ext2FastIoCheckIfPossible( IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, @@ -134,7 +134,7 @@ * Return Value: TRUE/FALSE * *************************************************************************/ -BOOLEAN Ext2FastIoRead( +BOOLEAN NTAPI Ext2FastIoRead( IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, @@ -218,7 +218,7 @@ * Return Value: TRUE/FALSE * *************************************************************************/ -BOOLEAN Ext2FastIoWrite( +BOOLEAN NTAPI Ext2FastIoWrite( IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, @@ -287,7 +287,7 @@ * Return Value: TRUE/FALSE * *************************************************************************/ -BOOLEAN Ext2FastIoQueryBasicInfo( +BOOLEAN NTAPI Ext2FastIoQueryBasicInfo( IN PFILE_OBJECT FileObject, IN BOOLEAN Wait, OUT PFILE_BASIC_INFORMATION Buffer, @@ -350,7 +350,7 @@ * Return Value: TRUE/FALSE * *************************************************************************/ -BOOLEAN Ext2FastIoQueryStdInfo( +BOOLEAN NTAPI Ext2FastIoQueryStdInfo( IN PFILE_OBJECT FileObject, IN BOOLEAN Wait, OUT PFILE_STANDARD_INFORMATION Buffer, @@ -413,7 +413,7 @@ * Return Value: TRUE/FALSE * *************************************************************************/ -BOOLEAN Ext2FastIoLock( +BOOLEAN NTAPI Ext2FastIoLock( IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN PLARGE_INTEGER Length, @@ -482,7 +482,7 @@ * Return Value: TRUE/FALSE * *************************************************************************/ -BOOLEAN Ext2FastIoUnlockSingle( +BOOLEAN NTAPI Ext2FastIoUnlockSingle( IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN PLARGE_INTEGER Length, @@ -549,7 +549,7 @@ * Return Value: TRUE/FALSE * *************************************************************************/ -BOOLEAN Ext2FastIoUnlockAll( +BOOLEAN NTAPI Ext2FastIoUnlockAll( IN PFILE_OBJECT FileObject, PEPROCESS ProcessId, OUT PIO_STATUS_BLOCK IoStatus, @@ -612,7 +612,7 @@ * Return Value: TRUE/FALSE * *************************************************************************/ -BOOLEAN Ext2FastIoUnlockAllByKey( +BOOLEAN NTAPI Ext2FastIoUnlockAllByKey( IN PFILE_OBJECT FileObject, PEPROCESS ProcessId, ULONG Key, @@ -676,7 +676,7 @@ * Return Value: None (we must be prepared to handle VMM initiated calls) * *************************************************************************/ -void Ext2FastIoAcqCreateSec( +void NTAPI Ext2FastIoAcqCreateSec( IN PFILE_OBJECT FileObject) { PtrExt2FCB PtrFCB = NULL; @@ -745,7 +745,7 @@ * Return Value: None * *************************************************************************/ -void Ext2FastIoRelCreateSec( +void NTAPI Ext2FastIoRelCreateSec( IN PFILE_OBJECT FileObject) { @@ -813,7 +813,7 @@ * Return Value: TRUE/FALSE (Cache Manager does not tolerate FALSE well) * *************************************************************************/ -BOOLEAN Ext2AcqLazyWrite( +BOOLEAN NTAPI Ext2AcqLazyWrite( IN PVOID Context, IN BOOLEAN Wait) { @@ -927,7 +927,7 @@ * Return Value: None * *************************************************************************/ -void Ext2RelLazyWrite( +void NTAPI Ext2RelLazyWrite( IN PVOID Context) { @@ -1024,7 +1024,7 @@ * Return Value: TRUE/FALSE (Cache Manager does not tolerate FALSE well) * *************************************************************************/ -BOOLEAN Ext2AcqReadAhead( +BOOLEAN NTAPI Ext2AcqReadAhead( IN PVOID Context, IN BOOLEAN Wait) { @@ -1102,7 +1102,7 @@ * Return Value: None * *************************************************************************/ -void Ext2RelReadAhead( +void NTAPI Ext2RelReadAhead( IN PVOID Context) { BOOLEAN ReturnedStatus = TRUE; @@ -1175,7 +1175,7 @@ * Return Value: TRUE/FALSE * *************************************************************************/ -BOOLEAN Ext2FastIoQueryNetInfo( +BOOLEAN NTAPI Ext2FastIoQueryNetInfo( IN PFILE_OBJECT FileObject, IN BOOLEAN Wait, OUT PFILE_NETWORK_OPEN_INFORMATION Buffer, @@ -1240,7 +1240,7 @@ * Return Value: TRUE/FALSE * *************************************************************************/ -BOOLEAN Ext2FastIoMdlRead( +BOOLEAN NTAPI Ext2FastIoMdlRead( IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, @@ -1309,7 +1309,7 @@ * Return Value: TRUE/FALSE * *************************************************************************/ -BOOLEAN Ext2FastIoMdlReadComplete( +BOOLEAN NTAPI Ext2FastIoMdlReadComplete( IN PFILE_OBJECT FileObject, OUT PMDL MdlChain, IN PDEVICE_OBJECT DeviceObject) @@ -1374,7 +1374,7 @@ * Return Value: TRUE/FALSE * *************************************************************************/ -BOOLEAN Ext2FastIoPrepareMdlWrite( +BOOLEAN NTAPI Ext2FastIoPrepareMdlWrite( IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, @@ -1442,7 +1442,7 @@ * Return Value: TRUE/FALSE * *************************************************************************/ -BOOLEAN Ext2FastIoMdlWriteComplete( +BOOLEAN NTAPI Ext2FastIoMdlWriteComplete( IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, OUT PMDL MdlChain, @@ -1506,7 +1506,7 @@ * Return Value: STATUS_SUCCESS/Error (try not to return an error, will 'ya ? :-) * *************************************************************************/ -NTSTATUS Ext2FastIoAcqModWrite( +NTSTATUS NTAPI Ext2FastIoAcqModWrite( IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER EndingOffset, OUT PERESOURCE *ResourceToRelease, @@ -1586,7 +1586,7 @@ * Return Value: STATUS_SUCCESS/Error (an error returned here is really not expected!) * *************************************************************************/ -NTSTATUS Ext2FastIoRelModWrite( +NTSTATUS NTAPI Ext2FastIoRelModWrite( IN PFILE_OBJECT FileObject, IN PERESOURCE ResourceToRelease, IN PDEVICE_OBJECT DeviceObject) @@ -1652,7 +1652,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2FastIoAcqCcFlush( +NTSTATUS NTAPI Ext2FastIoAcqCcFlush( IN PFILE_OBJECT FileObject, IN PDEVICE_OBJECT DeviceObject) { @@ -1712,7 +1712,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2FastIoRelCcFlush( +NTSTATUS NTAPI Ext2FastIoRelCcFlush( IN PFILE_OBJECT FileObject, IN PDEVICE_OBJECT DeviceObject) { Modified: trunk/reactos/drivers/filesystems/ext2/src/fileinfo.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/src/fileinfo.c (original) +++ trunk/reactos/drivers/filesystems/ext2/src/fileinfo.c Mon Feb 11 19:42:10 2008 @@ -36,7 +36,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2FileInfo( +NTSTATUS NTAPI Ext2FileInfo( PDEVICE_OBJECT DeviceObject, // the logical volume device object PIRP Irp) // I/O Request Packet { @@ -101,7 +101,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2CommonFileInfo( +NTSTATUS NTAPI Ext2CommonFileInfo( PtrExt2IrpContext PtrIrpContext, PIRP PtrIrp) { @@ -586,7 +586,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2GetBasicInformation( +NTSTATUS NTAPI Ext2GetBasicInformation( PtrExt2FCB PtrFCB, PFILE_BASIC_INFORMATION PtrBuffer, long *PtrReturnedLength ) @@ -646,7 +646,7 @@ return(RC); } -NTSTATUS Ext2GetStandardInformation( +NTSTATUS NTAPI Ext2GetStandardInformation( PtrExt2FCB PtrFCB, PFILE_STANDARD_INFORMATION PtrStdInformation, @@ -686,7 +686,7 @@ return(RC); } -NTSTATUS Ext2GetNetworkOpenInformation( +NTSTATUS NTAPI Ext2GetNetworkOpenInformation( PtrExt2FCB PtrFCB, PFILE_NETWORK_OPEN_INFORMATION PtrNetworkOpenInformation, long *PtrReturnedLength ) @@ -748,7 +748,7 @@ } -NTSTATUS Ext2GetFullNameInformation( +NTSTATUS NTAPI Ext2GetFullNameInformation( PtrExt2FCB PtrFCB, PtrExt2CCB PtrCCB, PFILE_NAME_INFORMATION PtrNameInformation, @@ -811,7 +811,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2SetBasicInformation( +NTSTATUS NTAPI Ext2SetBasicInformation( PtrExt2IrpContext PtrIrpContext, PtrExt2FCB PtrFCB, PFILE_OBJECT PtrFileObject, @@ -919,7 +919,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2SetDispositionInformation( +NTSTATUS NTAPI Ext2SetDispositionInformation( PtrExt2FCB PtrFCB, PtrExt2CCB PtrCCB, PtrExt2VCB PtrVCB, @@ -1011,7 +1011,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2SetAllocationInformation( +NTSTATUS NTAPI Ext2SetAllocationInformation( PtrExt2FCB PtrFCB, PtrExt2CCB PtrCCB, PtrExt2VCB PtrVCB, Modified: trunk/reactos/drivers/filesystems/ext2/src/flush.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/src/flush.c (original) +++ trunk/reactos/drivers/filesystems/ext2/src/flush.c Mon Feb 11 19:42:10 2008 @@ -36,7 +36,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2Flush( +NTSTATUS NTAPI Ext2Flush( PDEVICE_OBJECT DeviceObject, // the logical volume device object PIRP Irp) // I/O Request Packet { @@ -98,7 +98,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2CommonFlush( +NTSTATUS NTAPI Ext2CommonFlush( PtrExt2IrpContext PtrIrpContext, PIRP PtrIrp) { @@ -254,7 +254,7 @@ * Return Value: None * *************************************************************************/ -void Ext2FlushAFile( +void NTAPI Ext2FlushAFile( PtrExt2NTRequiredFCB PtrReqdFCB, PIO_STATUS_BLOCK PtrIoStatus) { @@ -276,7 +276,7 @@ * Return Value: None * *************************************************************************/ -void Ext2FlushLogicalVolume( +void NTAPI Ext2FlushLogicalVolume( PtrExt2IrpContext PtrIrpContext, PIRP PtrIrp, PtrExt2VCB PtrVCB) @@ -330,7 +330,7 @@ * Return Value: None * *************************************************************************/ -NTSTATUS Ext2FlushCompletion( +NTSTATUS NTAPI Ext2FlushCompletion( PDEVICE_OBJECT PtrDeviceObject, PIRP PtrIrp, PVOID Context) Modified: trunk/reactos/drivers/filesystems/ext2/src/fsctrl.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/src/fsctrl.c (original) +++ trunk/reactos/drivers/filesystems/ext2/src/fsctrl.c Mon Feb 11 19:42:10 2008 @@ -79,7 +79,7 @@ * NTSTATUS - The FSD status for the IRP * *************************************************************************/ -NTSTATUS +NTSTATUS NTAPI Ext2FileSystemControl( IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp @@ -907,7 +907,7 @@ -NTSTATUS Ext2VerifyVolume ( +NTSTATUS NTAPI Ext2VerifyVolume ( IN PIRP Irp, IN PIO_STACK_LOCATION IrpSp ) { Modified: trunk/reactos/drivers/filesystems/ext2/src/io.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/src/io.c (original) +++ trunk/reactos/drivers/filesystems/ext2/src/io.c Mon Feb 11 19:42:10 2008 @@ -31,7 +31,7 @@ * Return Value: STATUS_SUCCESS / STATUS_PENDING / Error * *************************************************************************/ -NTSTATUS Ext2PassDownMultiReadWriteIRP( +NTSTATUS NTAPI Ext2PassDownMultiReadWriteIRP( PEXT2_IO_RUN PtrIoRuns, UINT Count, ULONG TotalReadWriteLength, @@ -230,7 +230,7 @@ return(RC); } -NTSTATUS Ext2PassDownSingleReadWriteIRP( +NTSTATUS NTAPI Ext2PassDownSingleReadWriteIRP( PtrExt2IrpContext PtrIrpContext, PIRP PtrIrp, PtrExt2VCB PtrVCB, @@ -374,7 +374,7 @@ * Return Value: NTSTATUS - STATUS_SUCCESS(always) * *************************************************************************/ -NTSTATUS Ext2SingleSyncCompletionRoutine( +NTSTATUS NTAPI Ext2SingleSyncCompletionRoutine( IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID Contxt @@ -409,7 +409,7 @@ * Return Value: NTSTATUS - STATUS_SUCCESS(always) * *************************************************************************/ -NTSTATUS Ext2SingleAsyncCompletionRoutine( +NTSTATUS NTAPI Ext2SingleAsyncCompletionRoutine( IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID Contxt @@ -443,7 +443,7 @@ * Return Value: NTSTATUS - STATUS_SUCCESS(always) * *************************************************************************/ -NTSTATUS Ext2MultiSyncCompletionRoutine ( +NTSTATUS NTAPI Ext2MultiSyncCompletionRoutine ( IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID Contxt @@ -500,7 +500,7 @@ * Return Value: NTSTATUS - STATUS_SUCCESS(always) * *************************************************************************/ -NTSTATUS Ext2MultiAsyncCompletionRoutine ( +NTSTATUS NTAPI Ext2MultiAsyncCompletionRoutine ( IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID Contxt Modified: trunk/reactos/drivers/filesystems/ext2/src/metadata.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/src/metadata.c (original) +++ trunk/reactos/drivers/filesystems/ext2/src/metadata.c Mon Feb 11 19:42:10 2008 @@ -42,7 +42,7 @@ * *************************************************************************/ -NTSTATUS Ext2ReadInode ( +NTSTATUS NTAPI Ext2ReadInode ( PtrExt2VCB PtrVcb, // the Volume Control Block uint32 InodeNo, // The Inode no PEXT2_INODE PtrInode // The Inode Buffer @@ -174,7 +174,7 @@ * Return Value: None * *************************************************************************/ -void Ext2InitializeFCBInodeInfo ( +void NTAPI Ext2InitializeFCBInodeInfo ( PtrExt2FCB PtrFCB ) { PtrExt2VCB PtrVCB = NULL; @@ -262,7 +262,7 @@ * Return Value: The new i-node no or zero * *************************************************************************/ -ULONG Ext2AllocInode( +ULONG NTAPI Ext2AllocInode( PtrExt2IrpContext PtrIrpContext, PtrExt2VCB PtrVCB, ULONG ParentINodeNo ) @@ -502,7 +502,7 @@ * Return Value: Success / Failure... * *************************************************************************/ -BOOLEAN Ext2DeallocInode( +BOOLEAN NTAPI Ext2DeallocInode( PtrExt2IrpContext PtrIrpContext, PtrExt2VCB PtrVCB, ULONG INodeNo ) @@ -701,7 +701,7 @@ * Return Value: Success / Failure... * *************************************************************************/ -NTSTATUS Ext2WriteInode( +NTSTATUS NTAPI Ext2WriteInode( PtrExt2IrpContext PtrIrpContext, PtrExt2VCB PtrVcb, // the Volume Control Block uint32 InodeNo, // The Inode no @@ -823,7 +823,7 @@ * Return Value: Success / Failure... * *************************************************************************/ -BOOLEAN Ext2MakeNewDirectoryEntry( +BOOLEAN NTAPI Ext2MakeNewDirectoryEntry( PtrExt2IrpContext PtrIrpContext, // The Irp context PtrExt2FCB PtrParentFCB, // Parent Folder FCB PFILE_OBJECT PtrFileObject, // Parent Folder Object @@ -1062,7 +1062,7 @@ } -BOOLEAN Ext2FreeDirectoryEntry( +BOOLEAN NTAPI Ext2FreeDirectoryEntry( PtrExt2IrpContext PtrIrpContext, PtrExt2FCB PtrParentFCB, PUNICODE_STRING PtrName) @@ -1193,7 +1193,7 @@ * Return Value: Success / Failure... * *************************************************************************/ -BOOLEAN Ext2AddBlockToFile( +BOOLEAN NTAPI Ext2AddBlockToFile( PtrExt2IrpContext PtrIrpContext, PtrExt2VCB PtrVCB, PtrExt2FCB PtrFCB, @@ -1664,7 +1664,7 @@ * Return Value: Success / Failure... * *************************************************************************/ -ULONG Ext2AllocBlock( +ULONG NTAPI Ext2AllocBlock( PtrExt2IrpContext PtrIrpContext, PtrExt2VCB PtrVCB, ULONG Count) @@ -1895,7 +1895,7 @@ * Return Value: Success / Failure... * *************************************************************************/ -BOOLEAN Ext2DeallocBlock( +BOOLEAN NTAPI Ext2DeallocBlock( PtrExt2IrpContext PtrIrpContext, PtrExt2VCB PtrVCB, ULONG BlockNo ) @@ -2076,7 +2076,7 @@ return RC; } -BOOLEAN Ext2UpdateFileSize( +BOOLEAN NTAPI Ext2UpdateFileSize( PtrExt2IrpContext PtrIrpContext, PFILE_OBJECT PtrFileObject, PtrExt2FCB PtrFCB) @@ -2122,7 +2122,7 @@ * Return Value: Success / Failure... * *************************************************************************/ -BOOLEAN Ext2DeleteFile( +BOOLEAN NTAPI Ext2DeleteFile( PtrExt2FCB PtrFCB, PtrExt2IrpContext PtrIrpContext) { @@ -2208,7 +2208,7 @@ * Return Value: Success / Failure... * *************************************************************************/ -BOOLEAN Ext2ReleaseDataBlocks( +BOOLEAN NTAPI Ext2ReleaseDataBlocks( PtrExt2FCB PtrFCB, PtrExt2IrpContext PtrIrpContext) { @@ -2440,7 +2440,7 @@ } -BOOLEAN Ext2TruncateFileAllocationSize( +BOOLEAN NTAPI Ext2TruncateFileAllocationSize( PtrExt2IrpContext PtrIrpContext, PtrExt2FCB PtrFCB, PFILE_OBJECT PtrFileObject, @@ -2550,7 +2550,7 @@ return TRUE; } -BOOLEAN Ext2IsDirectoryEmpty( +BOOLEAN NTAPI Ext2IsDirectoryEmpty( PtrExt2FCB PtrFCB, PtrExt2CCB PtrCCB, PtrExt2IrpContext PtrIrpContext) @@ -2650,7 +2650,7 @@ } -NTSTATUS Ext2RenameOrLinkFile( +NTSTATUS NTAPI Ext2RenameOrLinkFile( PtrExt2FCB PtrSourceFCB, PFILE_OBJECT PtrSourceFileObject, PtrExt2IrpContext PtrIrpContext, Modified: trunk/reactos/drivers/filesystems/ext2/src/misc.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/src/misc.c (original) +++ trunk/reactos/drivers/filesystems/ext2/src/misc.c Mon Feb 11 19:42:10 2008 @@ -34,7 +34,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2InitializeZones( +NTSTATUS NTAPI Ext2InitializeZones( void) { NTSTATUS RC = STATUS_SUCCESS; @@ -186,7 +186,7 @@ * Return Value: None * *************************************************************************/ -void Ext2DestroyZones( +void NTAPI Ext2DestroyZones( void) { try { @@ -238,7 +238,7 @@ * Return Value: TRUE/FALSE (TRUE if top level was NULL when routine invoked) * *************************************************************************/ -BOOLEAN Ext2IsIrpTopLevel( +BOOLEAN NTAPI Ext2IsIrpTopLevel( PIRP Irp) // the IRP sent to our dispatch routine { BOOLEAN ReturnCode = FALSE; @@ -278,7 +278,7 @@ * Return Value: EXCEPTION_EXECUTE_HANDLER/EXECEPTION_CONTINUE_SEARCH * *************************************************************************/ -long Ext2ExceptionFilter( +long NTAPI Ext2ExceptionFilter( PtrExt2IrpContext PtrIrpContext, PEXCEPTION_POINTERS PtrExceptionPointers ) { @@ -341,7 +341,7 @@ * Return Value: Error code * *************************************************************************/ -NTSTATUS Ext2ExceptionHandler( +NTSTATUS NTAPI Ext2ExceptionHandler( PtrExt2IrpContext PtrIrpContext, PIRP Irp) { @@ -387,7 +387,7 @@ * Return Value: None * *************************************************************************/ -void Ext2LogEvent( +void NTAPI Ext2LogEvent( NTSTATUS Ext2EventLogId, // the Ext2 private message id NTSTATUS RC) // any NT error code we wish to log ... { @@ -424,7 +424,7 @@ * Return Value: A pointer to the ObjectName structure OR NULL. * *************************************************************************/ -PtrExt2ObjectName Ext2AllocateObjectName( +PtrExt2ObjectName NTAPI Ext2AllocateObjectName( void) { PtrExt2ObjectName PtrObjectName = NULL; @@ -488,7 +488,7 @@ * Return Value: None * *************************************************************************/ -void Ext2ReleaseObjectName( +void NTAPI Ext2ReleaseObjectName( PtrExt2ObjectName PtrObjectName) { KIRQL CurrentIrql; @@ -535,7 +535,7 @@ * Return Value: A pointer to the CCB structure OR NULL. * *************************************************************************/ -PtrExt2CCB Ext2AllocateCCB( +PtrExt2CCB NTAPI Ext2AllocateCCB( void) { PtrExt2CCB PtrCCB = NULL; @@ -605,7 +605,7 @@ * Return Value: None * *************************************************************************/ -void Ext2ReleaseCCB( +void NTAPI Ext2ReleaseCCB( PtrExt2CCB PtrCCB) { KIRQL CurrentIrql; @@ -660,7 +660,7 @@ * Return Value: A pointer to the FCB structure OR NULL. * *************************************************************************/ -PtrExt2FCB Ext2AllocateFCB( +PtrExt2FCB NTAPI Ext2AllocateFCB( void) { PtrExt2FCB PtrFCB = NULL; @@ -735,7 +735,7 @@ * Return Value: A pointer to the FCB structure OR NULL. * *************************************************************************/ -NTSTATUS Ext2CreateNewFCB( +NTSTATUS NTAPI Ext2CreateNewFCB( PtrExt2FCB *ReturnedFCB, LARGE_INTEGER AllocationSize, LARGE_INTEGER EndOfFile, @@ -859,7 +859,7 @@ * Return Value: None * *************************************************************************/ -void Ext2ReleaseFCB( +void NTAPI Ext2ReleaseFCB( PtrExt2FCB PtrFCB) { KIRQL CurrentIrql; @@ -919,7 +919,7 @@ * Return Value: A pointer to the Ext2ByteLocks structure OR NULL. * *************************************************************************/ -PtrExt2FileLockInfo Ext2AllocateByteLocks( +PtrExt2FileLockInfo NTAPI Ext2AllocateByteLocks( void) { PtrExt2FileLockInfo PtrByteLocks = NULL; @@ -978,7 +978,7 @@ * Return Value: None * *************************************************************************/ -void Ext2ReleaseByteLocks( +void NTAPI Ext2ReleaseByteLocks( PtrExt2FileLockInfo PtrByteLocks) { KIRQL CurrentIrql; @@ -1019,7 +1019,7 @@ * Return Value: A pointer to the IrpContext structure OR NULL. * *************************************************************************/ -PtrExt2IrpContext Ext2AllocateIrpContext( +PtrExt2IrpContext NTAPI Ext2AllocateIrpContext( PIRP Irp, PDEVICE_OBJECT PtrTargetDeviceObject) { @@ -1136,7 +1136,7 @@ * Return Value: None * *************************************************************************/ -void Ext2ReleaseIrpContext( +void NTAPI Ext2ReleaseIrpContext( PtrExt2IrpContext PtrIrpContext) { KIRQL CurrentIrql; @@ -1178,7 +1178,7 @@ * Return Value: STATUS_PENDING * *************************************************************************/ -NTSTATUS Ext2PostRequest( +NTSTATUS NTAPI Ext2PostRequest( PtrExt2IrpContext PtrIrpContext, PIRP PtrIrp) { @@ -1226,7 +1226,7 @@ * Return Value: None * *************************************************************************/ -void Ext2CommonDispatch( +void NTAPI Ext2CommonDispatch( void *Context ) // actually an IRPContext structure { NTSTATUS RC = STATUS_SUCCESS; @@ -1345,7 +1345,7 @@ * Return Value: None * *************************************************************************/ -void Ext2InitializeVCB( +void NTAPI Ext2InitializeVCB( PDEVICE_OBJECT PtrVolumeDeviceObject, PDEVICE_OBJECT PtrTargetDeviceObject, PVPB PtrVPB, @@ -1466,7 +1466,7 @@ * Return Value: none * *************************************************************************/ -void Ext2CompleteRequest( +void NTAPI Ext2CompleteRequest( IN PIRP Irp OPTIONAL, IN NTSTATUS Status ) @@ -1512,7 +1512,7 @@ * Return Value: A pointer to the CCB structure OR NULL. * *************************************************************************/ -NTSTATUS Ext2CreateNewCCB( +NTSTATUS NTAPI Ext2CreateNewCCB( PtrExt2CCB *ReturnedCCB, PtrExt2FCB PtrFCB, PFILE_OBJECT PtrFileObject ) @@ -1575,7 +1575,7 @@ * Return Value: NTSTATUS - STATUS_ACCESS_DENIED (always) * *************************************************************************/ -NTSTATUS Ext2DenyAccess( IN PIRP Irp ) +NTSTATUS NTAPI Ext2DenyAccess( IN PIRP Irp ) { ASSERT( Irp ); @@ -1605,7 +1605,7 @@ * Return Value: NTSTATUS - STATUS_SUCCESS(always) * *************************************************************************/ -NTSTATUS Ext2GetFCB_CCB_VCB_FromFileObject ( +NTSTATUS NTAPI Ext2GetFCB_CCB_VCB_FromFileObject ( IN PFILE_OBJECT PtrFileObject, OUT PtrExt2FCB *PPtrFCB, OUT PtrExt2CCB *PPtrCCB, @@ -1669,7 +1669,7 @@ } -void Ext2CopyUnicodeString( PUNICODE_STRING PtrDestinationString, PUNICODE_STRING PtrSourceString ) +void NTAPI Ext2CopyUnicodeString( PUNICODE_STRING PtrDestinationString, PUNICODE_STRING PtrSourceString ) { int Count; // Allcating space for Destination... @@ -1687,7 +1687,7 @@ } -void Ext2CopyWideCharToUnicodeString( +void NTAPI Ext2CopyWideCharToUnicodeString( PUNICODE_STRING PtrDestinationString, PCWSTR PtrSourceString ) { @@ -1712,7 +1712,7 @@ } -void Ext2CopyCharToUnicodeString( +void NTAPI Ext2CopyCharToUnicodeString( PUNICODE_STRING PtrDestinationString, PCSTR PtrSourceString, USHORT SourceStringLength ) @@ -1732,7 +1732,7 @@ } -void Ext2CopyZCharToUnicodeString( PUNICODE_STRING PtrDestinationString, PCSTR PtrSourceString ) +void NTAPI Ext2CopyZCharToUnicodeString( PUNICODE_STRING PtrDestinationString, PCSTR PtrSourceString ) { int Count; @@ -1754,14 +1754,14 @@ } } -void Ext2ZerooutUnicodeString( PUNICODE_STRING PtrUnicodeString ) +void NTAPI Ext2ZerooutUnicodeString( PUNICODE_STRING PtrUnicodeString ) { PtrUnicodeString->Length = 0; PtrUnicodeString->MaximumLength =0; PtrUnicodeString->Buffer = 0; } -void Ext2DeallocateUnicodeString( PUNICODE_STRING PtrUnicodeString ) +void NTAPI Ext2DeallocateUnicodeString( PUNICODE_STRING PtrUnicodeString ) { if( PtrUnicodeString && PtrUnicodeString->Buffer ) { @@ -1773,7 +1773,7 @@ PtrUnicodeString->Buffer = 0; } -PtrExt2FCB Ext2GetUsedFCB( +PtrExt2FCB NTAPI Ext2GetUsedFCB( PtrExt2VCB PtrVCB ) { @@ -1838,7 +1838,7 @@ return PtrFCB; } -BOOLEAN Ext2CloseClosableFCB( +BOOLEAN NTAPI Ext2CloseClosableFCB( PtrExt2FCB PtrFCB) { KIRQL Irql = 0; @@ -1917,7 +1917,7 @@ } -BOOLEAN Ext2SaveBCB( +BOOLEAN NTAPI Ext2SaveBCB( PtrExt2IrpContext PtrIrpContext, PBCB PtrBCB, PFILE_OBJECT PtrFileObject) @@ -1984,7 +1984,7 @@ } -BOOLEAN Ext2FlushSavedBCBs( +BOOLEAN NTAPI Ext2FlushSavedBCBs( PtrExt2IrpContext PtrIrpContext ) { @@ -2045,7 +2045,7 @@ return RC; } -BOOLEAN AssertBCB( PBCB PtrBCB ) +BOOLEAN NTAPI AssertBCB( PBCB PtrBCB ) { PFILE_OBJECT PtrFileObject = NULL; @@ -2069,7 +2069,7 @@ } -ULONG Ext2Align( ULONG NumberToBeAligned, ULONG Alignment ) +ULONG NTAPI Ext2Align( ULONG NumberToBeAligned, ULONG Alignment ) { if( Alignment & ( Alignment - 1 ) ) { @@ -2087,7 +2087,7 @@ return NumberToBeAligned; } -LONGLONG Ext2Align64( LONGLONG NumberToBeAligned, LONGLONG Alignment ) +LONGLONG NTAPI Ext2Align64( LONGLONG NumberToBeAligned, LONGLONG Alignment ) { if( Alignment & ( Alignment - 1 ) ) { Modified: trunk/reactos/drivers/filesystems/ext2/src/read.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/src/read.c (original) +++ trunk/reactos/drivers/filesystems/ext2/src/read.c Mon Feb 11 19:42:10 2008 @@ -36,7 +36,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2Read( +NTSTATUS NTAPI Ext2Read( PDEVICE_OBJECT DeviceObject, // the logical volume device object PIRP Irp) // I/O Request Packet { @@ -101,7 +101,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2CommonRead( +NTSTATUS NTAPI Ext2CommonRead( PtrExt2IrpContext PtrIrpContext, PIRP PtrIrp, BOOLEAN FirstAttempt ) @@ -1329,7 +1329,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -void * Ext2GetCallersBuffer ( +void * NTAPI Ext2GetCallersBuffer ( PIRP PtrIrp ) { void * ReturnedBuffer = NULL; @@ -1363,7 +1363,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2LockCallersBuffer( +NTSTATUS NTAPI Ext2LockCallersBuffer( PIRP PtrIrp, BOOLEAN IsReadOperation, uint32 Length) @@ -1436,7 +1436,7 @@ * Return Value: None. * *************************************************************************/ -void Ext2MdlComplete( +void NTAPI Ext2MdlComplete( PtrExt2IrpContext PtrIrpContext, PIRP PtrIrp, PIO_STACK_LOCATION PtrIoStackLocation, Modified: trunk/reactos/drivers/filesystems/ext2/src/shutdown.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/src/shutdown.c (original) +++ trunk/reactos/drivers/filesystems/ext2/src/shutdown.c Mon Feb 11 19:42:10 2008 @@ -40,7 +40,7 @@ * Return Value: Irrelevant. * *************************************************************************/ -NTSTATUS Ext2Shutdown( +NTSTATUS NTAPI Ext2Shutdown( PDEVICE_OBJECT DeviceObject, // the logical volume device object PIRP Irp) // I/O Request Packet { @@ -102,7 +102,7 @@ * Return Value: Irrelevant * *************************************************************************/ -NTSTATUS Ext2CommonShutdown( +NTSTATUS NTAPI Ext2CommonShutdown( PtrExt2IrpContext PtrIrpContext, PIRP PtrIrp) { Modified: trunk/reactos/drivers/filesystems/ext2/src/volinfo.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/src/volinfo.c (original) +++ trunk/reactos/drivers/filesystems/ext2/src/volinfo.c Mon Feb 11 19:42:10 2008 @@ -49,7 +49,7 @@ * NTSTATUS - The FSD status for the IRP * *************************************************************************/ -NTSTATUS Ext2QueryVolInfo ( +NTSTATUS NTAPI Ext2QueryVolInfo ( IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) { @@ -192,7 +192,7 @@ -NTSTATUS Ext2SetVolInfo( +NTSTATUS NTAPI Ext2SetVolInfo( IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) { Modified: trunk/reactos/drivers/filesystems/ext2/src/write.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ext2/s…
============================================================================== --- trunk/reactos/drivers/filesystems/ext2/src/write.c (original) +++ trunk/reactos/drivers/filesystems/ext2/src/write.c Mon Feb 11 19:42:10 2008 @@ -36,7 +36,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2Write( +NTSTATUS NTAPI Ext2Write( PDEVICE_OBJECT DeviceObject, // the logical volume device object PIRP Irp) // I/O Request Packet { @@ -97,7 +97,7 @@ * Return Value: STATUS_SUCCESS/Error * *************************************************************************/ -NTSTATUS Ext2CommonWrite( +NTSTATUS NTAPI Ext2CommonWrite( PtrExt2IrpContext PtrIrpContext, PIRP PtrIrp) { @@ -1471,7 +1471,7 @@ * Return Value: None * *************************************************************************/ -void Ext2DeferredWriteCallBack ( +void NTAPI Ext2DeferredWriteCallBack ( void *Context1, // Should be PtrIrpContext void *Context2 ) // Should be PtrIrp {
16 years, 10 months
1
0
0
0
[hpoussin] 32292: Fix ext2 recognizer compilation, but let it disabled atm
by hpoussin@svn.reactos.org
Author: hpoussin Date: Mon Feb 11 19:41:25 2008 New Revision: 32292 URL:
http://svn.reactos.org/svn/reactos?rev=32292&view=rev
Log: Fix ext2 recognizer compilation, but let it disabled atm Modified: trunk/reactos/drivers/filesystems/fs_rec/ext2.c trunk/reactos/drivers/filesystems/fs_rec/fat.c trunk/reactos/drivers/filesystems/fs_rec/fs_rec.c trunk/reactos/drivers/filesystems/fs_rec/fs_rec.h trunk/reactos/drivers/filesystems/fs_rec/fs_rec.rbuild Modified: trunk/reactos/drivers/filesystems/fs_rec/ext2.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fs_rec…
============================================================================== --- trunk/reactos/drivers/filesystems/fs_rec/ext2.c (original) +++ trunk/reactos/drivers/filesystems/fs_rec/ext2.c Mon Feb 11 19:41:25 2008 @@ -1,136 +1,107 @@ /* - * ReactOS kernel - * Copyright (C) 2002,2003 ReactOS Team - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ -/* $Id: fat.c 9284 2004-05-02 20:12:38Z hbirr $ - * * COPYRIGHT: See COPYING in the top level directory - * PROJECT: ReactOS kernel - * FILE: drivers/fs/fs_rec/ext2.c (based on vfat.c) - * PURPOSE: Filesystem recognizer driver + * PROJECT: ReactOS File System Recognizer + * FILE: drivers/filesystems/fs_rec/ext2.c + * PURPOSE: EXT2 Recognizer * PROGRAMMER: Eric Kohl */ /* INCLUDES *****************************************************************/ -#include <ddk/ntddk.h> -#include <rosrtl/string.h> - +#include "fs_rec.h" #define NDEBUG #include <debug.h> -#include "fs_rec.h" - - /* FUNCTIONS ****************************************************************/ -static NTSTATUS -FsRecIsExt2Volume(IN PDEVICE_OBJECT DeviceObject) +BOOLEAN +NTAPI +FsRecIsExt2Volume(IN PVOID PackedBootSector) { - NTSTATUS Status; - PARTITION_INFORMATION PartitionInfo; - DISK_GEOMETRY DiskGeometry; - ULONG Size; - BOOL RecognizedFS = FALSE; - Size = sizeof(DISK_GEOMETRY); - - Status = FsRecDeviceIoControl(DeviceObject, - IOCTL_DISK_GET_DRIVE_GEOMETRY, - NULL, - 0, - &DiskGeometry, - &Size); - if (!NT_SUCCESS(Status)) - { - DPRINT("FsRecDeviceIoControl faild (%x)\n", Status); - return Status; - } - if (DiskGeometry.MediaType == FixedMedia || DiskGeometry.MediaType == RemovableMedia) - { - // We have found a hard disk - Size = sizeof(PARTITION_INFORMATION); - Status = FsRecDeviceIoControl(DeviceObject, - IOCTL_DISK_GET_PARTITION_INFO, - NULL, - 0, - &PartitionInfo, - &Size); - if (!NT_SUCCESS(Status)) - { - DPRINT("FsRecDeviceIoControl faild (%x)\n", Status); - return Status; - } - - if (PartitionInfo.PartitionType) - { - if (PartitionInfo.PartitionType == PARTITION_EXT2) - { - RecognizedFS = TRUE; - } - } - } - - return RecognizedFS ? STATUS_SUCCESS : STATUS_UNRECOGNIZED_VOLUME; + /* For now, always return failure... */ + return FALSE; } +NTSTATUS +NTAPI +FsRecExt2FsControl(IN PDEVICE_OBJECT DeviceObject, + IN PIRP Irp) +{ + PIO_STACK_LOCATION Stack; + NTSTATUS Status; + PDEVICE_OBJECT MountDevice; + PVOID Bpb = NULL; + ULONG SectorSize; + LARGE_INTEGER Offset = {{0}}; + BOOLEAN DeviceError = FALSE; + PAGED_CODE(); -NTSTATUS -FsRecExt2FsControl(IN PDEVICE_OBJECT DeviceObject, - IN PIRP Irp) -{ - PIO_STACK_LOCATION Stack; - UNICODE_STRING RegistryPath; - NTSTATUS Status; + /* Get the I/O Stack and check the function type */ + Stack = IoGetCurrentIrpStackLocation(Irp); + switch (Stack->MinorFunction) + { + case IRP_MN_MOUNT_VOLUME: - Stack = IoGetCurrentIrpStackLocation(Irp); + /* Assume failure */ + Status = STATUS_UNRECOGNIZED_VOLUME; - switch (Stack->MinorFunction) - { - case IRP_MN_MOUNT_VOLUME: - DPRINT("FAT: IRP_MN_MOUNT_VOLUME\n"); - Status = FsRecIsExt2Volume(Stack->Parameters.MountVolume.DeviceObject); - if (NT_SUCCESS(Status)) - { - DPRINT("Identified FAT volume\n"); - Status = STATUS_FS_DRIVER_REQUIRED; - } - break; + /* Get the device object and request the sector size */ + MountDevice = Stack->Parameters.MountVolume.DeviceObject; + if (FsRecGetDeviceSectorSize(MountDevice, &SectorSize)) + { + /* Try to read the BPB */ + if (FsRecReadBlock(MountDevice, + &Offset, + 512, + SectorSize, + (PVOID)&Bpb, + &DeviceError)) + { + /* Check if it's an actual EXT2 volume */ + if (FsRecIsExt2Volume(Bpb)) + { + /* It is! */ + Status = STATUS_FS_DRIVER_REQUIRED; + } + } - case IRP_MN_LOAD_FILE_SYSTEM: - DPRINT("FAT: IRP_MN_LOAD_FILE_SYSTEM\n"); - RtlRosInitUnicodeStringFromLiteral(&RegistryPath, - L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\Ext2"); - Status = ZwLoadDriver(&RegistryPath); - if (!NT_SUCCESS(Status)) - { - DPRINT("ZwLoadDriver failed (Status %x)\n", Status); - } - else - { - IoUnregisterFileSystem(DeviceObject); - } - break; + /* Free the boot sector if we have one */ + ExFreePool(Bpb); + } + else + { + /* We have some sort of failure in the storage stack */ + DeviceError = TRUE; + } - default: - DPRINT("FAT: Unknown minor function %lx\n", Stack->MinorFunction); - Status = STATUS_INVALID_DEVICE_REQUEST; - break; + /* Check if we have an error on the stack */ + if (DeviceError) + { + /* Was this because of a floppy? */ + if (MountDevice->Characteristics & FILE_FLOPPY_DISKETTE) + { + /* Let the FS try anyway */ + Status = STATUS_FS_DRIVER_REQUIRED; + } + } + + break; + + case IRP_MN_LOAD_FILE_SYSTEM: + + /* Load the file system */ + Status = FsRecLoadFileSystem(DeviceObject, + L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\Ext2"); + break; + + default: + + /* Invalid request */ + Status = STATUS_INVALID_DEVICE_REQUEST; } - return(Status); + + /* Return Status */ + return Status; } /* EOF */ Modified: trunk/reactos/drivers/filesystems/fs_rec/fat.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fs_rec…
============================================================================== --- trunk/reactos/drivers/filesystems/fs_rec/fat.c (original) +++ trunk/reactos/drivers/filesystems/fs_rec/fat.c Mon Feb 11 19:41:25 2008 @@ -15,7 +15,7 @@ /* FUNCTIONS ****************************************************************/ -NTSTATUS +BOOLEAN NTAPI FsRecIsFatVolume(IN PPACKED_BOOT_SECTOR PackedBootSector) { @@ -163,7 +163,7 @@ /* Load the file system */ Status = FsRecLoadFileSystem(DeviceObject, - L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\Vfatfs"); + L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\fastfat"); break; default: Modified: trunk/reactos/drivers/filesystems/fs_rec/fs_rec.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fs_rec…
============================================================================== --- trunk/reactos/drivers/filesystems/fs_rec/fs_rec.c (original) +++ trunk/reactos/drivers/filesystems/fs_rec/fs_rec.c Mon Feb 11 19:41:25 2008 @@ -151,6 +151,12 @@ /* Send UDFS command */ Status = FsRecUdfsFsControl(DeviceObject, Irp); + break; + + case FS_TYPE_EXT2: + + /* Send EXT2 command */ + Status = FsRecExt2FsControl(DeviceObject, Irp); break; default: @@ -359,6 +365,16 @@ FILE_DEVICE_DISK_FILE_SYSTEM); if (NT_SUCCESS(Status)) DeviceCount++; + /* Register EXT2 */ + /*Status = FsRecRegisterFs(DriverObject, + NULL, + NULL, + L"\\Ext2", + L"\\FileSystem\\Ext2Recognizer", + FS_TYPE_EXT2, + FILE_DEVICE_DISK_FILE_SYSTEM); + if (NT_SUCCESS(Status)) DeviceCount++;*/ + /* Return appropriate Status */ return (DeviceCount > 0) ? STATUS_SUCCESS : STATUS_IMAGE_ALREADY_LOADED; } Modified: trunk/reactos/drivers/filesystems/fs_rec/fs_rec.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fs_rec…
============================================================================== --- trunk/reactos/drivers/filesystems/fs_rec/fs_rec.h (original) +++ trunk/reactos/drivers/filesystems/fs_rec/fs_rec.h Mon Feb 11 19:41:25 2008 @@ -180,7 +180,8 @@ FS_TYPE_VFAT, FS_TYPE_NTFS, FS_TYPE_CDFS, - FS_TYPE_UDFS + FS_TYPE_UDFS, + FS_TYPE_EXT2, } FILE_SYSTEM_TYPE, *PFILE_SYSTEM_TYPE; // @@ -230,6 +231,13 @@ NTSTATUS NTAPI FsRecUdfsFsControl( + IN PDEVICE_OBJECT DeviceObject, + IN PIRP Irp +); + +NTSTATUS +NTAPI +FsRecExt2FsControl( IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp ); Modified: trunk/reactos/drivers/filesystems/fs_rec/fs_rec.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fs_rec…
============================================================================== --- trunk/reactos/drivers/filesystems/fs_rec/fs_rec.rbuild (original) +++ trunk/reactos/drivers/filesystems/fs_rec/fs_rec.rbuild Mon Feb 11 19:41:25 2008 @@ -6,6 +6,7 @@ <library>hal</library> <file>blockdev.c</file> <file>cdfs.c</file> + <file>ext2.c</file> <file>fat.c</file> <file>fs_rec.c</file> <file>ntfs.c</file>
16 years, 10 months
1
0
0
0
[hpoussin] 32291: Those a __stdcall functions
by hpoussin@svn.reactos.org
Author: hpoussin Date: Mon Feb 11 19:27:30 2008 New Revision: 32291 URL:
http://svn.reactos.org/svn/reactos?rev=32291&view=rev
Log: Those a __stdcall functions Modified: trunk/reactos/ntoskrnl/ntoskrnl_i386.def Modified: trunk/reactos/ntoskrnl/ntoskrnl_i386.def URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ntoskrnl_i386.def…
============================================================================== --- trunk/reactos/ntoskrnl/ntoskrnl_i386.def (original) +++ trunk/reactos/ntoskrnl/ntoskrnl_i386.def Mon Feb 11 19:27:30 2008 @@ -199,7 +199,7 @@ FsRtlDeleteTunnelCache FsRtlDeregisterUncProvider FsRtlDissectDbcs -FsRtlDissectName +FsRtlDissectName@16 FsRtlDoesDbcsContainWildCards FsRtlDoesNameContainWildCards@4 FsRtlFastCheckLockForRead @@ -230,7 +230,7 @@ FsRtlIsFatDbcsLegal FsRtlIsHpfsDbcsLegal FsRtlIsNameInExpression@16 -FsRtlIsNtstatusExpected +FsRtlIsNtstatusExpected@4 FsRtlIsPagingFile FsRtlIsTotalDeviceFailure FsRtlLegalAnsiCharacterArray=_FsRtlLegalAnsiCharacterArray @@ -255,7 +255,7 @@ FsRtlNotifyCleanup FsRtlNotifyFilterChangeDirectory FsRtlNotifyFilterReportChange -FsRtlNotifyFullChangeDirectory +FsRtlNotifyFullChangeDirectory@40 FsRtlNotifyFullReportChange FsRtlNotifyInitializeSync FsRtlNotifyReportChange
16 years, 10 months
1
0
0
0
[hpoussin] 32290: Display a message when directories are created
by hpoussin@svn.reactos.org
Author: hpoussin Date: Mon Feb 11 17:06:37 2008 New Revision: 32290 URL:
http://svn.reactos.org/svn/reactos?rev=32290&view=rev
Log: Display a message when directories are created Modified: trunk/reactos/Makefile Modified: trunk/reactos/Makefile URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/Makefile?rev=32290&r1=3228…
============================================================================== --- trunk/reactos/Makefile (original) +++ trunk/reactos/Makefile Mon Feb 11 17:06:37 2008 @@ -365,15 +365,22 @@ RBUILD_FLAGS := -rReactOS-$(ARCH).rbuild -DARCH=$(ARCH) $(INTERMEDIATE): + $(ECHO_MKDIR) ${mkdir} $@ ifneq ($(INTERMEDIATE),$(OUTPUT)) $(OUTPUT): + $(ECHO_MKDIR) ${mkdir} $@ endif +ifneq ($(TEMPORARY),$(INTERMEDIATE)) +ifneq ($(TEMPORARY),$(OUTPUT)) $(TEMPORARY): + $(ECHO_MKDIR) ${mkdir} $@ +endif +endif BUILDNO_H = $(INTERMEDIATE_)include$(SEP)reactos$(SEP)buildno.h
16 years, 10 months
1
0
0
0
[hpoussin] 32289: Fix case when $(TEMPORARY) is not the current directory. Fixed with the help of nanotonne (nanotonne at free.fr) on IRC
by hpoussin@svn.reactos.org
Author: hpoussin Date: Mon Feb 11 16:43:27 2008 New Revision: 32289 URL:
http://svn.reactos.org/svn/reactos?rev=32289&view=rev
Log: Fix case when $(TEMPORARY) is not the current directory. Fixed with the help of nanotonne (nanotonne at free.fr) on IRC Modified: trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp Modified: trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/backend/mingw…
============================================================================== --- trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp (original) +++ trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp Mon Feb 11 16:43:27 2008 @@ -1260,7 +1260,7 @@ "\t$(Q)${nasm} -f win32 $< -o $@ $($(module_name)_NASMFLAGS)\n", "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_$(module_name).o", "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)", NULL ); -Rule windresRule ( "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_$(module_name).coff: $(source) $(module_rbuild) $(WRC_TARGET) | $(INTERMEDIATE)$(SEP)$(source_dir)\n" +Rule windresRule ( "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_$(module_name).coff: $(source) $(module_rbuild) $(WRC_TARGET) | $(INTERMEDIATE)$(SEP)$(source_dir) $(TEMPORARY)\n" "\t$(ECHO_WRC)\n" "\t${gcc} -xc -E -DRC_INVOKED ${$(module_name)_RCFLAGS} $(source) > $(TEMPORARY)$(SEP)$(module_name).$(source_name_noext).rci.tmp\n" "\t$(Q)$(WRC_TARGET) ${$(module_name)_RCFLAGS} $(TEMPORARY)$(SEP)$(module_name).$(source_name_noext).rci.tmp $(TEMPORARY)$(SEP)$(module_name).$(source_name_noext).res.tmp\n"
16 years, 10 months
1
0
0
0
[hpoussin] 32288: Fix return type
by hpoussin@svn.reactos.org
Author: hpoussin Date: Mon Feb 11 16:19:06 2008 New Revision: 32288 URL:
http://svn.reactos.org/svn/reactos?rev=32288&view=rev
Log: Fix return type Modified: trunk/reactos/include/ndk/rtlfuncs.h Modified: trunk/reactos/include/ndk/rtlfuncs.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/rtlfuncs.h?rev…
============================================================================== --- trunk/reactos/include/ndk/rtlfuncs.h (original) +++ trunk/reactos/include/ndk/rtlfuncs.h Mon Feb 11 16:19:06 2008 @@ -3050,7 +3050,7 @@ ); NTSYSAPI -VOID +BOOLEAN NTAPI RtlTimeToSecondsSince1970( PLARGE_INTEGER Time,
16 years, 10 months
1
0
0
0
[hpoussin] 32287: Fix build
by hpoussin@svn.reactos.org
Author: hpoussin Date: Mon Feb 11 16:00:06 2008 New Revision: 32287 URL:
http://svn.reactos.org/svn/reactos?rev=32287&view=rev
Log: Fix build Modified: trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp Modified: trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/backend/mingw…
============================================================================== --- trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp (original) +++ trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp Mon Feb 11 16:00:06 2008 @@ -1282,33 +1282,33 @@ "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).spec.def", "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).stubs.c", "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)", NULL ); -Rule widlHeaderRule ( "$(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext).h: $(source) $(module_rbuild) $(WIDL_TARGET) | $(INTERMEDIATE)\\$(source_dir)\n" +Rule widlHeaderRule ( "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).h: $(source) $(module_rbuild) $(WIDL_TARGET) | $(INTERMEDIATE)$(SEP)$(source_dir)\n" "\t$(ECHO_WIDL)\n" - "\t$(Q)$(WIDL_TARGET) $($(module_name)_WIDLFLAGS) -h -H $(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext).h $(source)\n", - "$(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext).h", - "$(INTERMEDIATE)\\$(source_dir)\\", NULL ); -Rule widlServerRule ( "$(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext)_s.c $(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext)_s.h: $(source) $(module_rbuild) $(WIDL_TARGET) | $(INTERMEDIATE)\\$(source_dir)\n" + "\t$(Q)$(WIDL_TARGET) $($(module_name)_WIDLFLAGS) -h -H $(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).h $(source)\n", + "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).h", + "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)", NULL ); +Rule widlServerRule ( "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_s.c $(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_s.h: $(source) $(module_rbuild) $(WIDL_TARGET) | $(INTERMEDIATE)$(SEP)$(source_dir)\n" "\t$(ECHO_WIDL)\n" - "\t$(Q)$(WIDL_TARGET) $($(module_name)_WIDLFLAGS) -h -H $(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext)_s.h -s -S $(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext)_s.c $(source)\n", - "$(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext)_s.h", - "$(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext)_s.c", - "$(INTERMEDIATE)\\$(source_dir)\\", NULL ); -Rule widlClientRule ( "$(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext)_c.c $(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext)_c.h: $(source) $(module_rbuild) $(WIDL_TARGET) | $(INTERMEDIATE)\\$(source_dir)\n" + "\t$(Q)$(WIDL_TARGET) $($(module_name)_WIDLFLAGS) -h -H $(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_s.h -s -S $(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_s.c $(source)\n", + "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_s.h", + "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_s.c", + "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)", NULL ); +Rule widlClientRule ( "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_c.c $(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_c.h: $(source) $(module_rbuild) $(WIDL_TARGET) | $(INTERMEDIATE)$(SEP)$(source_dir)\n" "\t$(ECHO_WIDL)\n" - "\t$(Q)$(WIDL_TARGET) $($(module_name)_WIDLFLAGS) -h -H $(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext)_c.h -c -C $(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext)_c.c $(source)\n", - "$(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext)_c.h", - "$(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext)_c.c", - "$(INTERMEDIATE)\\$(source_dir)\\", NULL ); -Rule widlProxyRule ( "$(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext)_p.c $(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext)_p.h: $(source) $(module_rbuild) $(WIDL_TARGET) | $(INTERMEDIATE)\\$(source_dir)\n" + "\t$(Q)$(WIDL_TARGET) $($(module_name)_WIDLFLAGS) -h -H $(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_c.h -c -C $(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_c.c $(source)\n", + "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_c.h", + "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_c.c", + "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)", NULL ); +Rule widlProxyRule ( "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_p.c $(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_p.h: $(source) $(module_rbuild) $(WIDL_TARGET) | $(INTERMEDIATE)$(SEP)$(source_dir)\n" "\t$(ECHO_WIDL)\n" - "\t$(Q)$(WIDL_TARGET) $($(module_name)_WIDLFLAGS) -h -H $(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext)_p.h -p -P $(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext)_p.c $(source)\n", - "$(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext)_p.h", - "$(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext)_p.c", - "$(INTERMEDIATE)\\$(source_dir)\\", NULL ); -Rule widlTlbRule ( "$(OUTPUT)\\$(source_dir)\\$(module_name).tlb: $(source) $(module_rbuild) $(WIDL_TARGET) | $(INTERMEDIATE)\\$(source_dir)\n" + "\t$(Q)$(WIDL_TARGET) $($(module_name)_WIDLFLAGS) -h -H $(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_p.h -p -P $(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_p.c $(source)\n", + "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_p.h", + "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext)_p.c", + "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)", NULL ); +Rule widlTlbRule ( "$(OUTPUT)$(SEP)$(source_dir)$(SEP)$(module_name).tlb: $(source) $(module_rbuild) $(WIDL_TARGET) | $(INTERMEDIATE)$(SEP)$(source_dir)\n" "\t$(ECHO_WIDL)\n" - "\t$(Q)$(WIDL_TARGET) $($(module_name)_WIDLFLAGS) -t -T $(INTERMEDIATE)\\$(source_dir)\\$(source_name_noext).tlb $(source)\n", - "$(INTERMEDIATE)\\$(source_dir)\\", NULL ); + "\t$(Q)$(WIDL_TARGET) $($(module_name)_WIDLFLAGS) -t -T $(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)$(source_name_noext).tlb $(source)\n", + "$(INTERMEDIATE)$(SEP)$(source_dir)$(SEP)", NULL ); void MingwModuleHandler::GenerateGccCommand (
16 years, 10 months
1
0
0
0
[hpoussin] 32286: Forgot to add this file...
by hpoussin@svn.reactos.org
Author: hpoussin Date: Mon Feb 11 15:54:30 2008 New Revision: 32286 URL:
http://svn.reactos.org/svn/reactos?rev=32286&view=rev
Log: Forgot to add this file... Added: trunk/reactos/lib/fslib/ext2lib/ext2lib.rbuild (with props) Added: trunk/reactos/lib/fslib/ext2lib/ext2lib.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/ext2lib/ext2lib.…
============================================================================== --- trunk/reactos/lib/fslib/ext2lib/ext2lib.rbuild (added) +++ trunk/reactos/lib/fslib/ext2lib/ext2lib.rbuild Mon Feb 11 15:54:30 2008 @@ -1,0 +1,15 @@ +<?xml version="1.0"?> +<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd"> +<module name="ext2lib" type="staticlibrary"> + <include base="ext2lib">.</include> + <define name="_DISABLE_TIDENTS" /> + <file>Badblock.c</file> + <file>Bitmap.c</file> + <file>Disk.c</file> + <file>Group.c</file> + <file>Inode.c</file> + <file>Memory.c</file> + <file>Mke2fs.c</file> + <file>Super.c</file> + <file>Uuid.c</file> +</module> Propchange: trunk/reactos/lib/fslib/ext2lib/ext2lib.rbuild ------------------------------------------------------------------------------ svn:eol-style = native
16 years, 10 months
1
0
0
0
[hpoussin] 32285: Fix ext2lib compilation
by hpoussin@svn.reactos.org
Author: hpoussin Date: Mon Feb 11 15:49:51 2008 New Revision: 32285 URL:
http://svn.reactos.org/svn/reactos?rev=32285&view=rev
Log: Fix ext2lib compilation Modified: trunk/reactos/lib/fslib/directory.rbuild trunk/reactos/lib/fslib/ext2lib/Bitmap.c trunk/reactos/lib/fslib/ext2lib/Disk.c trunk/reactos/lib/fslib/ext2lib/Group.c trunk/reactos/lib/fslib/ext2lib/Inode.c trunk/reactos/lib/fslib/ext2lib/Memory.c trunk/reactos/lib/fslib/ext2lib/Mke2fs.c trunk/reactos/lib/fslib/ext2lib/Mke2fs.h trunk/reactos/lib/fslib/ext2lib/Super.c Modified: trunk/reactos/lib/fslib/directory.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/directory.rbuild…
============================================================================== --- trunk/reactos/lib/fslib/directory.rbuild (original) +++ trunk/reactos/lib/fslib/directory.rbuild Mon Feb 11 15:49:51 2008 @@ -1,6 +1,9 @@ <?xml version="1.0"?> <!DOCTYPE group SYSTEM "../../tools/rbuild/project.dtd"> <group xmlns:xi="
http://www.w3.org/2001/XInclude
"> + <directory name="ext2lib"> + <xi:include href="ext2lib/ext2lib.rbuild" /> + </directory> <directory name="vfatlib"> <xi:include href="vfatlib/vfatlib.rbuild" /> </directory> Modified: trunk/reactos/lib/fslib/ext2lib/Bitmap.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/ext2lib/Bitmap.c…
============================================================================== --- trunk/reactos/lib/fslib/ext2lib/Bitmap.c (original) +++ trunk/reactos/lib/fslib/ext2lib/Bitmap.c Mon Feb 11 15:49:51 2008 @@ -8,6 +8,7 @@ /* INCLUDES **************************************************************/ #include "Mke2fs.h" +#include <debug.h> /* DEFINITIONS ***********************************************************/ @@ -102,11 +103,11 @@ PEXT2_SUPER_BLOCK pExt2Sb = Ext2Sys->ext2_sb; Ext2Sys->block_map = (PEXT2_BLOCK_BITMAP) - RtlAllocateHeap(GetProcessHeap(), 0, sizeof(EXT2_BLOCK_BITMAP)); + RtlAllocateHeap(RtlGetProcessHeap(), 0, sizeof(EXT2_BLOCK_BITMAP)); if (!Ext2Sys->block_map) { - KdPrint(("Mke2fs: error allocating block bitmap...\n")); + DPRINT1("Mke2fs: error allocating block bitmap...\n"); return false; } @@ -120,13 +121,13 @@ size = (((Ext2Sys->block_map->real_end - Ext2Sys->block_map->start) / 8) + 1); Ext2Sys->block_map->bitmap = - (char *)RtlAllocateHeap(GetProcessHeap(), 0, size); + (char *)RtlAllocateHeap(RtlGetProcessHeap(), 0, size); if (!Ext2Sys->block_map->bitmap) { - RtlFreeHeap(GetProcessHeap(), 0, Ext2Sys->block_map); + RtlFreeHeap(RtlGetProcessHeap(), 0, Ext2Sys->block_map); Ext2Sys->block_map = NULL; - KdPrint(("Mke2fs: error allocating block bitmap...\n")); + DPRINT1("Mke2fs: error allocating block bitmap...\n"); return false; } @@ -143,11 +144,11 @@ PEXT2_SUPER_BLOCK pExt2Sb = Ext2Sys->ext2_sb; Ext2Sys->inode_map = (PEXT2_INODE_BITMAP) - RtlAllocateHeap(GetProcessHeap(), 0, sizeof(EXT2_INODE_BITMAP)); + RtlAllocateHeap(RtlGetProcessHeap(), 0, sizeof(EXT2_INODE_BITMAP)); if (!Ext2Sys->inode_map) { - KdPrint(("Mke2fs: error allocating inode bitmap...\n")); + DPRINT1("Mke2fs: error allocating inode bitmap...\n"); return false; } @@ -161,13 +162,13 @@ size = (((Ext2Sys->inode_map->real_end - Ext2Sys->inode_map->start) / 8) + 1); Ext2Sys->inode_map->bitmap = - (char *)RtlAllocateHeap(GetProcessHeap(), 0, size); + (char *)RtlAllocateHeap(RtlGetProcessHeap(), 0, size); if (!Ext2Sys->inode_map->bitmap) { - RtlFreeHeap(GetProcessHeap(), 0, Ext2Sys->inode_map); + RtlFreeHeap(RtlGetProcessHeap(), 0, Ext2Sys->inode_map); Ext2Sys->inode_map = NULL; - KdPrint(("Mke2fs: error allocating block bitmap...\n")); + DPRINT1("Mke2fs: error allocating block bitmap...\n"); return false; } @@ -183,11 +184,11 @@ if (bitmap->bitmap) { - RtlFreeHeap(GetProcessHeap(), 0, bitmap->bitmap); + RtlFreeHeap(RtlGetProcessHeap(), 0, bitmap->bitmap); bitmap->bitmap = 0; } - RtlFreeHeap(GetProcessHeap(), 0, bitmap); + RtlFreeHeap(RtlGetProcessHeap(), 0, bitmap); } void ext2_free_inode_bitmap(PEXT2_FILESYS Ext2Sys) @@ -226,7 +227,7 @@ nbytes = (size_t) ((EXT2_INODES_PER_GROUP(fs->ext2_sb)+7) / 8); - bitmap_block = (char *)RtlAllocateHeap(GetProcessHeap(), 0, fs->blocksize); + bitmap_block = (char *)RtlAllocateHeap(RtlGetProcessHeap(), 0, fs->blocksize); if (!bitmap_block) return false; memset(bitmap_block, 0xff, fs->blocksize); @@ -253,7 +254,7 @@ if (!retval) { - RtlFreeHeap(GetProcessHeap(), 0, bitmap_block); + RtlFreeHeap(RtlGetProcessHeap(), 0, bitmap_block); return false; } } @@ -261,7 +262,7 @@ inode_bitmap += nbytes; } - RtlFreeHeap(GetProcessHeap(), 0, bitmap_block); + RtlFreeHeap(RtlGetProcessHeap(), 0, bitmap_block); return true; } @@ -282,7 +283,7 @@ nbytes = EXT2_BLOCKS_PER_GROUP(fs->ext2_sb) / 8; - bitmap_block = (char *)RtlAllocateHeap(GetProcessHeap(), 0, fs->blocksize); + bitmap_block = (char *)RtlAllocateHeap(RtlGetProcessHeap(), 0, fs->blocksize); if (!bitmap_block) return false; @@ -325,7 +326,7 @@ if (!retval) { - RtlFreeHeap(GetProcessHeap(), 0, bitmap_block); + RtlFreeHeap(RtlGetProcessHeap(), 0, bitmap_block); return false; } } @@ -333,7 +334,7 @@ block_bitmap += nbytes; } - RtlFreeHeap(GetProcessHeap(), 0, bitmap_block); + RtlFreeHeap(RtlGetProcessHeap(), 0, bitmap_block); return true; } @@ -465,13 +466,13 @@ if (do_block) { - RtlFreeHeap(GetProcessHeap(), 0, fs->block_map); + RtlFreeHeap(RtlGetProcessHeap(), 0, fs->block_map); fs->block_map = NULL; } if (do_inode) { - RtlFreeHeap(GetProcessHeap(), 0, fs->inode_map); + RtlFreeHeap(RtlGetProcessHeap(), 0, fs->inode_map); fs->inode_map = 0; } Modified: trunk/reactos/lib/fslib/ext2lib/Disk.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/ext2lib/Disk.c?r…
============================================================================== --- trunk/reactos/lib/fslib/ext2lib/Disk.c (original) +++ trunk/reactos/lib/fslib/ext2lib/Disk.c Mon Feb 11 15:49:51 2008 @@ -8,6 +8,7 @@ /* INCLUDES **************************************************************/ #include "Mke2fs.h" +#include <debug.h> /* DEFINITIONS ***********************************************************/ @@ -15,7 +16,7 @@ /* FUNCTIONS *************************************************************/ -PUCHAR +PCCHAR Ext2StatusToString ( IN NTSTATUS Status ) { switch (Status) @@ -1001,7 +1002,7 @@ AlignedLength += ((ULONG)(Offset - Address.QuadPart) + SECTOR_SIZE - 1) & (~(SECTOR_SIZE - 1)); - NonPagedBuffer = RtlAllocateHeap(GetProcessHeap(), 0, AlignedLength); + NonPagedBuffer = RtlAllocateHeap(RtlGetProcessHeap(), 0, AlignedLength); if (!NonPagedBuffer) { Status = STATUS_INSUFFICIENT_RESOURCES; @@ -1031,7 +1032,7 @@ errorout: if (NonPagedBuffer) - RtlFreeHeap(GetProcessHeap(), 0, NonPagedBuffer); + RtlFreeHeap(RtlGetProcessHeap(), 0, NonPagedBuffer); return Status; } @@ -1096,7 +1097,7 @@ AlignedLength += ((ULONG)(Offset - Address.QuadPart) + SECTOR_SIZE - 1) & (~(SECTOR_SIZE - 1)); - NonPagedBuffer = RtlAllocateHeap(GetProcessHeap(), 0, AlignedLength); + NonPagedBuffer = RtlAllocateHeap(RtlGetProcessHeap(), 0, AlignedLength); if (!NonPagedBuffer) { Status = STATUS_INSUFFICIENT_RESOURCES; @@ -1138,7 +1139,7 @@ errorout: if (NonPagedBuffer) - RtlFreeHeap(GetProcessHeap(), 0, NonPagedBuffer); + RtlFreeHeap(RtlGetProcessHeap(), 0, NonPagedBuffer); return Status; } @@ -1221,8 +1222,8 @@ if (!NT_SUCCESS(Status)) { - KdPrint(("Mke2fs: Error when locking volume: Status = %lxh %s...\n", - Status, Ext2StatusToString(Status))); + DPRINT1("Mke2fs: Error when locking volume: Status = %lxh %s...\n", + Status, Ext2StatusToString(Status)); goto errorout; } @@ -1246,7 +1247,7 @@ if (!NT_SUCCESS(Status)) { - KdPrint(("Mke2fs: Error when unlocking volume ...\n")); + DPRINT1("Mke2fs: Error when unlocking volume ...\n"); goto errorout; } @@ -1269,7 +1270,7 @@ if (!NT_SUCCESS(Status)) { - KdPrint(("Mke2fs: Error when dismounting volume ...\n")); + DPRINT1("Mke2fs: Error when dismounting volume ...\n"); goto errorout; } @@ -1318,7 +1319,7 @@ // if( !NT_SUCCESS(Status) ) { - KdPrint(("Mke2fs: Create system service failed status = 0x%lx\n", Status)); + DPRINT1("Mke2fs: Create system service failed status = 0x%lx\n", Status); return Status; } @@ -1328,7 +1329,7 @@ // if(!NT_SUCCESS(Iosb.Status) ) { - KdPrint(("Mke2fs: Create failed with status = 0x%lx\n",Iosb.Status)); + DPRINT1("Mke2fs: Create failed with status = 0x%lx\n",Iosb.Status); return Status; } Modified: trunk/reactos/lib/fslib/ext2lib/Group.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/ext2lib/Group.c?…
============================================================================== --- trunk/reactos/lib/fslib/ext2lib/Group.c (original) +++ trunk/reactos/lib/fslib/ext2lib/Group.c Mon Feb 11 15:49:51 2008 @@ -47,7 +47,7 @@ size = Ext2Sys->desc_blocks * Ext2Sys->blocksize; Ext2Sys->group_desc = - (PEXT2_GROUP_DESC)RtlAllocateHeap(GetProcessHeap(), 0, size); + (PEXT2_GROUP_DESC)RtlAllocateHeap(RtlGetProcessHeap(), 0, size); if (Ext2Sys->group_desc) { @@ -62,7 +62,7 @@ { if (Ext2Sys->group_desc) { - RtlFreeHeap(GetProcessHeap(), 0, Ext2Sys->group_desc); + RtlFreeHeap(RtlGetProcessHeap(), 0, Ext2Sys->group_desc); Ext2Sys->group_desc = NULL; } } Modified: trunk/reactos/lib/fslib/ext2lib/Inode.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/ext2lib/Inode.c?…
============================================================================== --- trunk/reactos/lib/fslib/ext2lib/Inode.c (original) +++ trunk/reactos/lib/fslib/ext2lib/Inode.c Mon Feb 11 15:49:51 2008 @@ -8,6 +8,7 @@ /* INCLUDES **************************************************************/ #include "Mke2fs.h" +#include <debug.h> /* DEFINITIONS ***********************************************************/ @@ -23,8 +24,8 @@ if (no < 1 || no > pExt2Sb->s_inodes_count) { - KdPrint(("Mke2fs: Inode value %lu was out of range in load_inode.(1-%ld)\n", - no, pExt2Sb->s_inodes_count)); + DPRINT1("Mke2fs: Inode value %lu was out of range in load_inode.(1-%ld)\n", + no, pExt2Sb->s_inodes_count); *offset = 0; return false; } @@ -138,7 +139,7 @@ PEXT2_SUPER_BLOCK pExt2Sb = Ext2Sys->ext2_sb; - pData = (ULONG *)RtlAllocateHeap(GetProcessHeap(), 0, Ext2Sys->blocksize); + pData = (ULONG *)RtlAllocateHeap(RtlGetProcessHeap(), 0, Ext2Sys->blocksize); if (!pData) { @@ -186,7 +187,7 @@ if (!ext2_expand_block(Ext2Sys, Inode, dwBlk, j, layer - 1, bDirty, &dwNewBlk, &Offset)) { bRet = false; - KdPrint(("Mke2fs: ext2_expand_block: ... error recuise...\n")); + DPRINT1("Mke2fs: ext2_expand_block: ... error recuise...\n"); goto errorout; } } @@ -200,7 +201,7 @@ errorout: if (pData) - RtlFreeHeap(GetProcessHeap(), 0, pData); + RtlFreeHeap(RtlGetProcessHeap(), 0, pData); if (bRet && dwRet) *dwRet = dwNewBlk; @@ -233,7 +234,7 @@ if (Index >= dwTotal) { - KdPrint(("Mke2fs: ext2_expand_inode: beyond the maxinum size of an inode.\n")); + DPRINT1("Mke2fs: ext2_expand_inode: beyond the maxinum size of an inode.\n"); return false; } @@ -300,7 +301,7 @@ Offset = (LONGLONG) dwContent; Offset = Offset * Ext2Sys->blocksize; - pData = (ULONG *)RtlAllocateHeap(GetProcessHeap(), 0, Ext2Sys->blocksize); + pData = (ULONG *)RtlAllocateHeap(RtlGetProcessHeap(), 0, Ext2Sys->blocksize); if (!pData) { @@ -329,7 +330,7 @@ if (!ext2_get_block(Ext2Sys, pData[i], j, layer - 1, &dwBlk)) { bRet = false; - KdPrint(("Mke2fs: ext2_get_block: ... error recuise...\n")); + DPRINT1("Mke2fs: ext2_get_block: ... error recuise...\n"); goto errorout; } } @@ -337,7 +338,7 @@ errorout: if (pData) - RtlFreeHeap(GetProcessHeap(), 0, pData); + RtlFreeHeap(RtlGetProcessHeap(), 0, pData); if (bRet && dwRet) *dwRet = dwBlk; @@ -363,7 +364,7 @@ if (Index >= inode->i_blocks / (Ext2Sys->blocksize / SECTOR_SIZE)) { - KdPrint(("Mke2fs: ext2_block_map: beyond the size of the inode.\n")); + DPRINT1("Mke2fs: ext2_block_map: beyond the size of the inode.\n"); return false; } @@ -409,7 +410,7 @@ if (offset >= ext2_inode->i_size) { - KdPrint(("Mke2fs: ext2_build_bdl: beyond the file range.\n")); + DPRINT1("Mke2fs: ext2_build_bdl: beyond the file range.\n"); return 0; } @@ -428,7 +429,7 @@ if (nBlocks > 0) { ext2bdl = (PEXT2_BDL) - RtlAllocateHeap(GetProcessHeap(), 0, sizeof(EXT2_BDL) * nBlocks); + RtlAllocateHeap(RtlGetProcessHeap(), 0, sizeof(EXT2_BDL) * nBlocks); if (ext2bdl) { @@ -486,7 +487,7 @@ fail: if (ext2bdl) - RtlFreeHeap(GetProcessHeap(), 0, ext2bdl); + RtlFreeHeap(RtlGetProcessHeap(), 0, ext2bdl); // Error return 0; @@ -534,7 +535,7 @@ *dwReturn = dwTotal; if (ext2_bdl) - RtlFreeHeap(GetProcessHeap(), 0, ext2_bdl); + RtlFreeHeap(RtlGetProcessHeap(), 0, ext2_bdl); return bRet; } @@ -612,7 +613,7 @@ errorout: if (ext2_bdl) - RtlFreeHeap(GetProcessHeap(), 0, ext2_bdl); + RtlFreeHeap(RtlGetProcessHeap(), 0, ext2_bdl); return bRet; } @@ -636,7 +637,7 @@ return false; } - buf = (char *)RtlAllocateHeap(GetProcessHeap(), 0, parent_inode.i_size); + buf = (char *)RtlAllocateHeap(RtlGetProcessHeap(), 0, parent_inode.i_size); if (!ext2_read_inode(Ext2Sys, parent, 0, buf, parent_inode.i_size, &dwRet)) { Modified: trunk/reactos/lib/fslib/ext2lib/Memory.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/ext2lib/Memory.c…
============================================================================== --- trunk/reactos/lib/fslib/ext2lib/Memory.c (original) +++ trunk/reactos/lib/fslib/ext2lib/Memory.c Mon Feb 11 15:49:51 2008 @@ -8,6 +8,7 @@ /* INCLUDES **************************************************************/ #include "Mke2fs.h" +#include <debug.h> /* DEFINITIONS ***********************************************************/ @@ -232,9 +233,9 @@ retval = zero_blocks(fs, blk, num, &blk, &num); if (!retval) { - KdPrint(("\nMke2fs: Could not write %lu blocks " + DPRINT1("\nMke2fs: Could not write %lu blocks " "in inode table starting at %lu.\n", - num, blk)); + num, blk); zero_blocks(0, 0, 0, 0, 0); return false; @@ -296,7 +297,7 @@ ULONG block; char *buf = NULL; - buf = (char *)RtlAllocateHeap(GetProcessHeap(), HEAP_ZERO_MEMORY, fs->blocksize); + buf = (char *)RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY, fs->blocksize); if (!buf) return false; @@ -327,7 +328,7 @@ if (buf) { - RtlFreeHeap(GetProcessHeap(), 0, buf); + RtlFreeHeap(RtlGetProcessHeap(), 0, buf); } return true; @@ -336,7 +337,7 @@ if (buf) { - RtlFreeHeap(GetProcessHeap(), 0, buf); + RtlFreeHeap(RtlGetProcessHeap(), 0, buf); } return false; @@ -354,7 +355,7 @@ int rec_len; int filetype = 0; - buf = (char *)RtlAllocateHeap(GetProcessHeap(), HEAP_ZERO_MEMORY, fs->blocksize); + buf = (char *)RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY, fs->blocksize); if (!buf) return false; Modified: trunk/reactos/lib/fslib/ext2lib/Mke2fs.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/ext2lib/Mke2fs.c…
============================================================================== --- trunk/reactos/lib/fslib/ext2lib/Mke2fs.c (original) +++ trunk/reactos/lib/fslib/ext2lib/Mke2fs.c Mon Feb 11 15:49:51 2008 @@ -8,7 +8,7 @@ /* INCLUDES **************************************************************/ #include "Mke2fs.h" -#include <fmifs.h> +#include <debug.h> /* GLOBALS ***************************************************************/ @@ -126,7 +126,7 @@ { if (buf) { - RtlFreeHeap(GetProcessHeap(), 0, buf); + RtlFreeHeap(RtlGetProcessHeap(), 0, buf); buf = 0; } return true; @@ -138,10 +138,10 @@ if (!buf) { buf = (unsigned char *) - RtlAllocateHeap(GetProcessHeap(), 0, fs->blocksize * STRIDE_LENGTH); + RtlAllocateHeap(RtlGetProcessHeap(), 0, fs->blocksize * STRIDE_LENGTH); if (!buf) { - KdPrint(("Mke2fs: while allocating zeroizing buffer")); + DPRINT1("Mke2fs: while allocating zeroizing buffer"); return false; } memset(buf, 0, fs->blocksize * STRIDE_LENGTH); @@ -188,11 +188,11 @@ ULONG *magic; buf = (unsigned char *) - RtlAllocateHeap(GetProcessHeap(), 0, SECTOR_SIZE*nsect); + RtlAllocateHeap(RtlGetProcessHeap(), 0, SECTOR_SIZE*nsect); if (!buf) { - KdPrint(("Mke2fs: Out of memory erasing sectors %d-%d\n", - sect, sect + nsect - 1)); + DPRINT1("Mke2fs: Out of memory erasing sectors %d-%d\n", + sect, sect + nsect - 1); return false; } @@ -223,7 +223,7 @@ clean_up: - RtlFreeHeap(GetProcessHeap(), 0, buf); + RtlFreeHeap(RtlGetProcessHeap(), 0, buf); return true; } @@ -352,7 +352,7 @@ if (block) { - RtlFreeHeap(GetProcessHeap(), 0, block); + RtlFreeHeap(RtlGetProcessHeap(), 0, block); block = NULL; } @@ -368,7 +368,7 @@ if (!retval) { - KdPrint(("Mke2fs: while creating root dir")); + DPRINT1("Mke2fs: while creating root dir"); return false; } @@ -379,7 +379,7 @@ retval = ext2_save_inode(fs, EXT2_ROOT_INO, &inode); if (!retval) { - KdPrint(("Mke2fs: while setting root inode ownership")); + DPRINT1("Mke2fs: while setting root inode ownership"); return false; } } @@ -401,7 +401,7 @@ char * buf; - buf = (char *)RtlAllocateHeap(GetProcessHeap(), 0, Ext2Sys->blocksize); + buf = (char *)RtlAllocateHeap(RtlGetProcessHeap(), 0, Ext2Sys->blocksize); if (!buf) { bExt = FALSE; @@ -419,7 +419,7 @@ if (!retval) { - KdPrint(("Mke2fs: while creating /lost+found.\n")); + DPRINT1("Mke2fs: while creating /lost+found.\n"); return false; } @@ -437,14 +437,14 @@ if (! retval) { - KdPrint(("Mke2fs: create_lost_and_found: error alloc block.\n")); + DPRINT1("Mke2fs: create_lost_and_found: error alloc block.\n"); break; } retval = ext2_expand_inode(Ext2Sys, &inode, dwBlk); if (!retval) { - KdPrint(("Mke2fs: errors when expanding /lost+found.\n")); + DPRINT1("Mke2fs: errors when expanding /lost+found.\n"); break; } @@ -471,7 +471,7 @@ if (buf) { - RtlFreeHeap(GetProcessHeap(), 0, buf); + RtlFreeHeap(RtlGetProcessHeap(), 0, buf); } return true; @@ -658,11 +658,11 @@ if (!retval) { - KdPrint(("Mke2fs: ext2_create_journal_dev: while initializing journal superblock.\n")); + DPRINT1("Mke2fs: ext2_create_journal_dev: while initializing journal superblock.\n"); return false; } - KdPrint(("Mke2fs: Zeroing journal device: \n")); + DPRINT("Mke2fs: Zeroing journal device: \n"); retval = zero_blocks(fs, 0, fs->ext2_sb->s_blocks_count, &blk, &count); @@ -671,8 +671,8 @@ if (!retval) { - KdPrint(("Mke2fs: create_journal_dev: while zeroing journal device (block %lu, count %lu).\n", - blk, count)); + DPRINT1("Mke2fs: create_journal_dev: while zeroing journal device (block %lu, count %lu).\n", + blk, count); return false; } @@ -683,7 +683,7 @@ if (!retval) { - KdPrint(("Mke2fs: create_journal_dev: while writing journal superblock.\n")); + DPRINT1("Mke2fs: create_journal_dev: while writing journal superblock.\n"); return false; } @@ -812,29 +812,29 @@ EXT2_FILESYS FileSys; ULONG Percent; - KdPrint(("%s:%d\n", __FILE__, __LINE__)); + CHECKPOINT; Callback(PROGRESS, 0, (PVOID)&Percent); - - KdPrint(("%s:%d\n", __FILE__, __LINE__)); + + CHECKPOINT; RtlZeroMemory(&Ext2Sb, sizeof(EXT2_SUPER_BLOCK)); RtlZeroMemory(&FileSys, sizeof(EXT2_FILESYS)); FileSys.ext2_sb = &Ext2Sb; - KdPrint(("%s:%d\n", __FILE__, __LINE__)); + CHECKPOINT; if (!NT_SUCCESS(Ext2OpenDevice(&FileSys, DriveRoot))) { - KdPrint(("Mke2fs: Volume %wZ does not exist, ...\n", DriveRoot)); + DPRINT1("Mke2fs: Volume %wZ does not exist, ...\n", DriveRoot); goto clean_up; } - KdPrint(("%s:%d\n", __FILE__, __LINE__)); + CHECKPOINT; if (!NT_SUCCESS(Ext2GetMediaInfo(&FileSys))) { - KdPrint(("Mke2fs: Can't get media information\n")); + DPRINT1("Mke2fs: Can't get media information\n"); goto clean_up; } @@ -843,7 +843,7 @@ Ext2Sb.s_blocks_count = FileSys.PartInfo.PartitionLength.QuadPart / EXT2_BLOCK_SIZE(&Ext2Sb); - KdPrint(("%s:%d\n", __FILE__, __LINE__)); + CHECKPOINT; /* * Calculate number of inodes based on the inode ratio @@ -856,7 +856,7 @@ */ Ext2Sb.s_r_blocks_count = (Ext2Sb.s_blocks_count * 5) / 100; - KdPrint(("%s:%d\n", __FILE__, __LINE__)); + CHECKPOINT; Status = Ext2LockVolume(&FileSys); if (NT_SUCCESS(Status)) @@ -864,16 +864,16 @@ bLocked = TRUE; } - KdPrint(("%s:%d\n", __FILE__, __LINE__)); + CHECKPOINT; // Initialize if (!ext2_initialize_sb(&FileSys)) { - KdPrint(("Mke2fs: error...\n")); + DPRINT1("Mke2fs: error...\n"); goto clean_up; } - KdPrint(("%s:%d\n", __FILE__, __LINE__)); + CHECKPOINT; zap_sector(&FileSys, 2, 6); @@ -946,7 +946,7 @@ if (!bRet) { - KdPrint(("Mke2fs: zeroing block %lu at end of filesystem", ret_blk)); + DPRINT1("Mke2fs: zeroing block %lu at end of filesystem", ret_blk); goto clean_up; } @@ -959,21 +959,21 @@ create_bad_block_inode(&FileSys, NULL); - KdPrint(("Mke2fs: Writing superblocks and filesystem accounting information ... \n")); + DPRINT("Mke2fs: Writing superblocks and filesystem accounting information ... \n"); if (!QuickFormat) { - KdPrint(("Mke2fs: Slow format not supported yet\n")); + DPRINT1("Mke2fs: Slow format not supported yet\n"); } if (!ext2_flush(&FileSys)) { bRet = false; - KdPrint(("Mke2fs: Warning, had trouble writing out superblocks.\n")); + DPRINT1("Mke2fs: Warning, had trouble writing out superblocks.\n"); goto clean_up; } - KdPrint(("Mke2fs: Writing superblocks and filesystem accounting information done!\n")); + DPRINT("Mke2fs: Writing superblocks and filesystem accounting information done!\n"); bRet = true; Status = STATUS_SUCCESS; @@ -998,13 +998,13 @@ } } - KdPrint(("%s:%d\n", __FILE__, __LINE__)); + CHECKPOINT; Ext2CloseDevice(&FileSys); - KdPrint(("%s:%d\n", __FILE__, __LINE__)); - - KdPrint(("%s:%d\n", __FILE__, __LINE__)); + CHECKPOINT; + + CHECKPOINT; Callback(DONE, 0, (PVOID)&bRet); - KdPrint(("%s:%d\n", __FILE__, __LINE__)); + CHECKPOINT; return Status; } Modified: trunk/reactos/lib/fslib/ext2lib/Mke2fs.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/ext2lib/Mke2fs.h…
============================================================================== --- trunk/reactos/lib/fslib/ext2lib/Mke2fs.h (original) +++ trunk/reactos/lib/fslib/ext2lib/Mke2fs.h Mon Feb 11 15:49:51 2008 @@ -12,16 +12,12 @@ /* INCLUDES **************************************************************/ -#include <stdlib.h> -#include <stdio.h> -#include <ntddk.h> -#include <ntdddisk.h> - -#include <napi/teb.h> - -#include "time.h" -#include "stdio.h" -#include "stdlib.h" +#define WIN32_NO_STATUS +#include <windows.h> +#define NTOS_MODE_USER +#include <ndk/ntndk.h> +#include <fmifs/fmifs.h> + #include "string.h" #include "ctype.h" @@ -29,8 +25,6 @@ #include "ext2_fs.h" #include "getopt.h" - -#define NTSYSAPI /* DEFINITIONS ***********************************************************/ @@ -224,466 +218,6 @@ bool create_bad_block_inode(PEXT2_FILESYS fs, PEXT2_BADBLK_LIST bb_list); -// -// Definitions -// - -#define FSCTL_REQUEST_OPLOCK_LEVEL_1 CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 0, METHOD_BUFFERED, FILE_ANY_ACCESS) -#define FSCTL_REQUEST_OPLOCK_LEVEL_2 CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 1, METHOD_BUFFERED, FILE_ANY_ACCESS) -#define FSCTL_REQUEST_BATCH_OPLOCK CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 2, METHOD_BUFFERED, FILE_ANY_ACCESS) -#define FSCTL_OPLOCK_BREAK_ACKNOWLEDGE CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 3, METHOD_BUFFERED, FILE_ANY_ACCESS) -#define FSCTL_OPBATCH_ACK_CLOSE_PENDING CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 4, METHOD_BUFFERED, FILE_ANY_ACCESS) -#define FSCTL_OPLOCK_BREAK_NOTIFY CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 5, METHOD_BUFFERED, FILE_ANY_ACCESS) -#define FSCTL_LOCK_VOLUME CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 6, METHOD_BUFFERED, FILE_ANY_ACCESS) -#define FSCTL_UNLOCK_VOLUME CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 7, METHOD_BUFFERED, FILE_ANY_ACCESS) -#define FSCTL_DISMOUNT_VOLUME CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 8, METHOD_BUFFERED, FILE_ANY_ACCESS) -// decommissioned fsctl value 9 -#define FSCTL_IS_VOLUME_MOUNTED CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 10, METHOD_BUFFERED, FILE_ANY_ACCESS) -#define FSCTL_IS_PATHNAME_VALID CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 11, METHOD_BUFFERED, FILE_ANY_ACCESS) // PATHNAME_BUFFER, -#define FSCTL_MARK_VOLUME_DIRTY CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 12, METHOD_BUFFERED, FILE_ANY_ACCESS) -// decommissioned fsctl value 13 -#define FSCTL_QUERY_RETRIEVAL_POINTERS CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 14, METHOD_NEITHER, FILE_ANY_ACCESS) -#define FSCTL_GET_COMPRESSION CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 15, METHOD_BUFFERED, FILE_ANY_ACCESS) -#define FSCTL_SET_COMPRESSION CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 16, METHOD_BUFFERED, FILE_READ_DATA | FILE_WRITE_DATA) -// decommissioned fsctl value 17 -// decommissioned fsctl value 18 -#define FSCTL_MARK_AS_SYSTEM_HIVE CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 19, METHOD_NEITHER, FILE_ANY_ACCESS) -#define FSCTL_OPLOCK_BREAK_ACK_NO_2 CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 20, METHOD_BUFFERED, FILE_ANY_ACCESS) -#define FSCTL_INVALIDATE_VOLUMES CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 21, METHOD_BUFFERED, FILE_ANY_ACCESS) -#define FSCTL_QUERY_FAT_BPB CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 22, METHOD_BUFFERED, FILE_ANY_ACCESS) // , FSCTL_QUERY_FAT_BPB_BUFFER -#define FSCTL_REQUEST_FILTER_OPLOCK CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 23, METHOD_BUFFERED, FILE_ANY_ACCESS) -#define FSCTL_FILESYSTEM_GET_STATISTICS CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 24, METHOD_BUFFERED, FILE_ANY_ACCESS) // , FILESYSTEM_STATISTICS - - -// -// Disk I/O Routines -// - -NTSYSAPI -NTSTATUS -NTAPI -NtReadFile(HANDLE FileHandle, - HANDLE Event OPTIONAL, - PIO_APC_ROUTINE ApcRoutine OPTIONAL, - PVOID ApcContext OPTIONAL, - PIO_STATUS_BLOCK IoStatusBlock, - PVOID Buffer, - ULONG Length, - PLARGE_INTEGER ByteOffset OPTIONAL, - PULONG Key OPTIONAL); - -NTSYSAPI -NTSTATUS -NTAPI -NtWriteFile(HANDLE FileHandle, - HANDLE Event OPTIONAL, - PIO_APC_ROUTINE ApcRoutine OPTIONAL, - PVOID ApcContext OPTIONAL, - PIO_STATUS_BLOCK IoStatusBlock, - PVOID Buffer, - ULONG Length, - PLARGE_INTEGER ByteOffset OPTIONAL, - PULONG Key OPTIONAL); - -NTSYSAPI -NTSTATUS -NTAPI -NtClose(HANDLE Handle); - -NTSYSAPI -NTSTATUS -NTAPI -NtCreateFile(PHANDLE FileHandle, - ACCESS_MASK DesiredAccess, - POBJECT_ATTRIBUTES ObjectAttributes, - PIO_STATUS_BLOCK IoStatusBlock, - PLARGE_INTEGER AllocationSize OPTIONAL, - ULONG FileAttributes, - ULONG ShareAccess, - ULONG CreateDisposition, - ULONG CreateOptions, - PVOID EaBuffer OPTIONAL, - ULONG EaLength); - - -NTSYSAPI -NTSTATUS -NTAPI -NtDeviceIoControlFile( - IN HANDLE FileHandle, - IN HANDLE Event, - IN PIO_APC_ROUTINE ApcRoutine, - IN PVOID ApcContext, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN ULONG IoControlCode, - IN PVOID InputBuffer, - IN ULONG InputBufferLength, - OUT PVOID OutputBuffer, - OUT ULONG OutputBufferLength - ); - -NTSYSAPI -NTSTATUS -NTAPI -NtFsControlFile( - IN HANDLE FileHandle, - IN HANDLE Event OPTIONAL, - IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, - IN PVOID ApcContext OPTIONAL, - OUT PIO_STATUS_BLOCK IoStatusBlock, - IN ULONG FsControlCode, - IN PVOID InputBuffer OPTIONAL, - IN ULONG InputBufferLength, - OUT PVOID OutputBuffer OPTIONAL, - IN ULONG OutputBufferLength -); - - -NTSYSAPI -NTSTATUS -NTAPI -NtQueryInformationFile( - IN HANDLE FileHandle, - OUT PIO_STATUS_BLOCK IoStatusBlock, - OUT PVOID FileInformation, - IN ULONG Length, - IN FILE_INFORMATION_CLASS FileInformationClass - ); - -// -// Bitmap Routines -// - - -// -// BitMap routines. The following structure, routines, and macros are -// for manipulating bitmaps. The user is responsible for allocating a bitmap -// structure (which is really a header) and a buffer (which must be longword -// aligned and multiple longwords in size). -// - -// -// The following routine initializes a new bitmap. It does not alter the -// data currently in the bitmap. This routine must be called before -// any other bitmap routine/macro. -// - -NTSYSAPI -VOID -NTAPI -RtlInitializeBitMap ( - PRTL_BITMAP BitMapHeader, - PULONG BitMapBuffer, - ULONG SizeOfBitMap - ); - -// -// The following two routines either clear or set all of the bits -// in a bitmap. -// - -NTSYSAPI -VOID -NTAPI -RtlClearAllBits ( - PRTL_BITMAP BitMapHeader - ); - -NTSYSAPI -VOID -NTAPI -RtlSetAllBits ( - PRTL_BITMAP BitMapHeader - ); - -// -// The following two routines locate a contiguous region of either -// clear or set bits within the bitmap. The region will be at least -// as large as the number specified, and the search of the bitmap will -// begin at the specified hint index (which is a bit index within the -// bitmap, zero based). The return value is the bit index of the located -// region (zero based) or -1 (i.e., 0xffffffff) if such a region cannot -// be located -// - -NTSYSAPI -ULONG -NTAPI -RtlFindClearBits ( - PRTL_BITMAP BitMapHeader, - ULONG NumberToFind, - ULONG HintIndex - ); - -NTSYSAPI -ULONG -NTAPI -RtlFindSetBits ( - PRTL_BITMAP BitMapHeader, - ULONG NumberToFind, - ULONG HintIndex - ); - -// -// The following two routines locate a contiguous region of either -// clear or set bits within the bitmap and either set or clear the bits -// within the located region. The region will be as large as the number -// specified, and the search for the region will begin at the specified -// hint index (which is a bit index within the bitmap, zero based). The -// return value is the bit index of the located region (zero based) or -// -1 (i.e., 0xffffffff) if such a region cannot be located. If a region -// cannot be located then the setting/clearing of the bitmap is not performed. -// - -NTSYSAPI -ULONG -NTAPI -RtlFindClearBitsAndSet ( - PRTL_BITMAP BitMapHeader, - ULONG NumberToFind, - ULONG HintIndex - ); - -NTSYSAPI -ULONG -NTAPI -RtlFindSetBitsAndClear ( - PRTL_BITMAP BitMapHeader, - ULONG NumberToFind, - ULONG HintIndex - ); - -// -// The following two routines clear or set bits within a specified region -// of the bitmap. The starting index is zero based. -// - -NTSYSAPI -VOID -NTAPI -RtlClearBits ( - PRTL_BITMAP BitMapHeader, - ULONG StartingIndex, - ULONG NumberToClear - ); - -NTSYSAPI -VOID -NTAPI -RtlSetBits ( - PRTL_BITMAP BitMapHeader, - ULONG StartingIndex, - ULONG NumberToSet - ); - -// -// The following routine locates a set of contiguous regions of clear -// bits within the bitmap. The caller specifies whether to return the -// longest runs or just the first found lcoated. The following structure is -// used to denote a contiguous run of bits. The two routines return an array -// of this structure, one for each run located. -// - -NTSYSAPI -ULONG -NTAPI -RtlFindClearRuns ( - PRTL_BITMAP BitMapHeader, - PRTL_BITMAP_RUN RunArray, - ULONG SizeOfRunArray, - BOOLEAN LocateLongestRuns - ); -// -// The following routine locates the longest contiguous region of -// clear bits within the bitmap. The returned starting index value -// denotes the first contiguous region located satisfying our requirements -// The return value is the length (in bits) of the longest region found. -// - -NTSYSAPI -ULONG -NTAPI -RtlFindLongestRunClear ( - PRTL_BITMAP BitMapHeader, - PULONG StartingIndex - ); - -// -// The following routine locates the first contiguous region of -// clear bits within the bitmap. The returned starting index value -// denotes the first contiguous region located satisfying our requirements -// The return value is the length (in bits) of the region found. -// - -NTSYSAPI -ULONG -NTAPI -RtlFindFirstRunClear ( - PRTL_BITMAP BitMapHeader, - PULONG StartingIndex - ); - -// -// The following macro returns the value of the bit stored within the -// bitmap at the specified location. If the bit is set a value of 1 is -// returned otherwise a value of 0 is returned. -// -// ULONG -// RtlCheckBit ( -// PRTL_BITMAP BitMapHeader, -// ULONG BitPosition -// ); -// -// -// To implement CheckBit the macro retrieves the longword containing the -// bit in question, shifts the longword to get the bit in question into the -// low order bit position and masks out all other bits. -// - -#define RtlCheckBit(BMH,BP) ((((BMH)->Buffer[(BP) / 32]) >> ((BP) % 32)) & 0x1) - -// -// The following two procedures return to the caller the total number of -// clear or set bits within the specified bitmap. -// - -NTSYSAPI -ULONG -NTAPI -RtlNumberOfClearBits ( - PRTL_BITMAP BitMapHeader - ); - -NTSYSAPI -ULONG -NTAPI -RtlNumberOfSetBits ( - PRTL_BITMAP BitMapHeader - ); - -// -// The following two procedures return to the caller a boolean value -// indicating if the specified range of bits are all clear or set. -// - -NTSYSAPI -BOOLEAN -NTAPI -RtlAreBitsClear ( - PRTL_BITMAP BitMapHeader, - ULONG StartingIndex, - ULONG Length - ); - -NTSYSAPI -BOOLEAN -NTAPI -RtlAreBitsSet ( - PRTL_BITMAP BitMapHeader, - ULONG StartingIndex, - ULONG Length - ); - -NTSYSAPI -ULONG -NTAPI -RtlFindNextForwardRunClear ( - IN PRTL_BITMAP BitMapHeader, - IN ULONG FromIndex, - IN PULONG StartingRunIndex - ); - -NTSYSAPI -ULONG -NTAPI -RtlFindLastBackwardRunClear ( - IN PRTL_BITMAP BitMapHeader, - IN ULONG FromIndex, - IN PULONG StartingRunIndex - ); - -// -// The following two procedures return to the caller a value indicating -// the position within a ULONGLONG of the most or least significant non-zero -// bit. A value of zero results in a return value of -1. -// - -NTSYSAPI -CCHAR -NTAPI -RtlFindLeastSignificantBit ( - IN ULONGLONG Set - ); - -NTSYSAPI -CCHAR -NTAPI -RtlFindMostSignificantBit ( - IN ULONGLONG Set - ); - - -// -// Random routines ... -// - -NTSYSAPI -ULONG -NTAPI -RtlRandom( - IN OUT PULONG Seed - ); - -// -// Time routines ... -// - -NTSYSAPI -CCHAR -NTAPI -NtQuerySystemTime( - OUT PLARGE_INTEGER CurrentTime - ); - - -NTSYSAPI -BOOLEAN -NTAPI -RtlTimeToSecondsSince1970( - IN PLARGE_INTEGER Time, - OUT PULONG ElapsedSeconds - ); - - -NTSYSAPI -VOID -NTAPI -RtlSecondsSince1970ToTime( - IN ULONG ElapsedSeconds, - OUT PLARGE_INTEGER Time - ); - -// -// Heap routines... -// - -#define GetProcessHeap() (NtCurrentTeb()->Peb->ProcessHeap) - -PVOID STDCALL -RtlAllocateHeap ( - HANDLE Heap, - ULONG Flags, - ULONG Size - ); - -BOOLEAN -STDCALL -RtlFreeHeap ( - HANDLE Heap, - ULONG Flags, - PVOID Address - ); - /* * Bitmap.c */ Modified: trunk/reactos/lib/fslib/ext2lib/Super.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/ext2lib/Super.c?…
============================================================================== --- trunk/reactos/lib/fslib/ext2lib/Super.c (original) +++ trunk/reactos/lib/fslib/ext2lib/Super.c Mon Feb 11 15:49:51 2008 @@ -8,6 +8,7 @@ /* INCLUDES **************************************************************/ #include "Mke2fs.h" +#include <debug.h> /* DEFINITIONS ***********************************************************/ @@ -20,50 +21,49 @@ { int i; - KdPrint(("\nExt2 Super Block Details ...\n\n")); - KdPrint((" Inode Count: %lu\n", pExt2Sb->s_inodes_count)); - KdPrint((" Block Count: %lu\n", pExt2Sb->s_blocks_count)); - KdPrint((" Reserved Block Count: %lu\n", pExt2Sb->s_r_blocks_count)); - KdPrint((" Free Blocks: %lu\n", pExt2Sb->s_free_blocks_count)); - KdPrint((" Free Inodes: %lu\n", pExt2Sb->s_free_inodes_count)); - KdPrint((" First Data Block: %lu\n", pExt2Sb->s_first_data_block)); - KdPrint((" Log Block Size: %lu\n", pExt2Sb->s_log_block_size)); - KdPrint((" Log Frag Size: %ld\n", pExt2Sb->s_log_frag_size)); - KdPrint((" Blocks per Group: %lu\n", pExt2Sb->s_blocks_per_group)); - KdPrint((" Fragments per Group: %lu\n", pExt2Sb->s_frags_per_group)); - KdPrint((" Inodes per Group: %lu\n", pExt2Sb->s_inodes_per_group)); -// KdPrint((" Mount Time: %s", ctime((time_t *) & (pExt2Sb->s_mtime)))); -// KdPrint((" Write Time: %s", ctime((time_t *) & (pExt2Sb->s_wtime)))); - KdPrint((" Mount Count: %u\n", pExt2Sb->s_mnt_count)); - KdPrint((" Max Mount Count: %d\n", pExt2Sb->s_max_mnt_count)); - KdPrint((" Magic Number: %X (%s)\n", pExt2Sb->s_magic, - pExt2Sb->s_magic == EXT2_SUPER_MAGIC ? "OK" : "BAD")); - KdPrint((" File System State: %X\n", pExt2Sb->s_state)); - KdPrint((" Error Behaviour: %X\n", pExt2Sb->s_errors)); - KdPrint((" Minor rev: %u\n", pExt2Sb->s_minor_rev_level)); -// KdPrint((" Last Check: %s", ctime((time_t *) & (pExt2Sb->s_lastcheck)))); - KdPrint((" Check Interval: %lu\n", pExt2Sb->s_checkinterval)); - KdPrint((" Creator OS: %lu\n", pExt2Sb->s_creator_os)); - KdPrint((" Revision Level: %lu\n", pExt2Sb->s_rev_level)); - KdPrint((" Reserved Block Default UID: %u\n", pExt2Sb->s_def_resuid)); - KdPrint((" Reserved Block Default GID: %u\n", pExt2Sb->s_def_resgid)); - KdPrint((" uuid = ")); + DPRINT("\nExt2 Super Block Details ...\n\n"); + DPRINT(" Inode Count: %lu\n", pExt2Sb->s_inodes_count); + DPRINT(" Block Count: %lu\n", pExt2Sb->s_blocks_count); + DPRINT(" Reserved Block Count: %lu\n", pExt2Sb->s_r_blocks_count); + DPRINT(" Free Blocks: %lu\n", pExt2Sb->s_free_blocks_count); + DPRINT(" Free Inodes: %lu\n", pExt2Sb->s_free_inodes_count); + DPRINT(" First Data Block: %lu\n", pExt2Sb->s_first_data_block); + DPRINT(" Log Block Size: %lu\n", pExt2Sb->s_log_block_size); + DPRINT(" Log Frag Size: %ld\n", pExt2Sb->s_log_frag_size); + DPRINT(" Blocks per Group: %lu\n", pExt2Sb->s_blocks_per_group); + DPRINT(" Fragments per Group: %lu\n", pExt2Sb->s_frags_per_group); + DPRINT(" Inodes per Group: %lu\n", pExt2Sb->s_inodes_per_group); +// DPRINT(" Mount Time: %s", ctime((time_t *) & (pExt2Sb->s_mtime))); +// DPRINT(" Write Time: %s", ctime((time_t *) & (pExt2Sb->s_wtime))); + DPRINT(" Mount Count: %u\n", pExt2Sb->s_mnt_count); + DPRINT(" Max Mount Count: %d\n", pExt2Sb->s_max_mnt_count); + DPRINT(" Magic Number: %X (%s)\n", pExt2Sb->s_magic, + pExt2Sb->s_magic == EXT2_SUPER_MAGIC ? "OK" : "BAD"); + DPRINT(" File System State: %X\n", pExt2Sb->s_state); + DPRINT(" Error Behaviour: %X\n", pExt2Sb->s_errors); + DPRINT(" Minor rev: %u\n", pExt2Sb->s_minor_rev_level); +// DPRINT(" Last Check: %s", ctime((time_t *) & (pExt2Sb->s_lastcheck))); + DPRINT(" Check Interval: %lu\n", pExt2Sb->s_checkinterval); + DPRINT(" Creator OS: %lu\n", pExt2Sb->s_creator_os); + DPRINT(" Revision Level: %lu\n", pExt2Sb->s_rev_level); + DPRINT(" Reserved Block Default UID: %u\n", pExt2Sb->s_def_resuid); + DPRINT(" Reserved Block Default GID: %u\n", pExt2Sb->s_def_resgid); + DPRINT(" uuid = "); for (i=0; i < 16; i++) - KdPrint(("%x ", pExt2Sb->s_uuid[i])); - KdPrint(("\n")); - - KdPrint((" volume label name: ")); + DbgPrint("%x ", pExt2Sb->s_uuid[i]); + DbgPrint("\n"); + + DPRINT(" volume label name: "); for (i=0; i < 16; i++) { if (pExt2Sb->s_volume_name[i] == 0) break; - KdPrint(("%c", pExt2Sb->s_volume_name[i])); - } - KdPrint(("\n")); - - KdPrint(("\n\n")); + DbgPrint("%c", pExt2Sb->s_volume_name[i]); + } + DbgPrint("\n"); + + DPRINT("\n\n"); } - #define set_field(field, default) if (!pExt2Sb->field) pExt2Sb->field = (default);
16 years, 10 months
1
0
0
0
← Newer
1
...
22
23
24
25
26
27
28
...
46
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Results per page:
10
25
50
100
200