[ros-diffs] [pschweitzer] 50624: [FREELDR/NTFS] Some fixes and addings to the NTFS header. To be used later in order to fix NTFS driver in FreeLdr

pschweitzer at svn.reactos.org pschweitzer at svn.reactos.org
Tue Feb 8 23:36:15 UTC 2011


Author: pschweitzer
Date: Tue Feb  8 23:36:14 2011
New Revision: 50624

URL: http://svn.reactos.org/svn/reactos?rev=50624&view=rev
Log:
[FREELDR/NTFS]
Some fixes and addings to the NTFS header.
To be used later in order to fix NTFS driver in FreeLdr

Modified:
    trunk/reactos/boot/freeldr/freeldr/include/fs/ntfs.h

Modified: trunk/reactos/boot/freeldr/freeldr/include/fs/ntfs.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/include/fs/ntfs.h?rev=50624&r1=50623&r2=50624&view=diff
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/include/fs/ntfs.h [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/include/fs/ntfs.h [iso-8859-1] Tue Feb  8 23:36:14 2011
@@ -1,6 +1,7 @@
 /*
  *  FreeLoader NTFS support
  *  Copyright (C) 2004  Filip Navara  <xnavara at volny.cz>
+ *  Copyright (C) 2011  Pierre Schweitzer <pierre.schweitzer at reactos.org>
  *
  *  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
@@ -30,16 +31,22 @@
 #define NTFS_FILE_BADCLUS			8
 #define NTFS_FILE_QUOTA				9
 #define NTFS_FILE_UPCASE			10
+#define NTFS_FILE_EXTEND			11
 
 #define NTFS_ATTR_TYPE_STANDARD_INFORMATION	0x10
 #define NTFS_ATTR_TYPE_ATTRIBUTE_LIST		0x20
 #define NTFS_ATTR_TYPE_FILENAME			0x30
+#define NTFS_ATTR_TYPE_OBJECT_ID		0x40
 #define NTFS_ATTR_TYPE_SECURITY_DESCRIPTOR	0x50
+#define NTFS_ATTR_TYPE_VOLUME_NAME		0x60
+#define NTFS_ATTR_TYPE_VOLUME_INFORMATION	0x70
 #define NTFS_ATTR_TYPE_DATA			0x80
 #define NTFS_ATTR_TYPE_INDEX_ROOT		0x90
 #define NTFS_ATTR_TYPE_INDEX_ALLOCATION		0xa0
 #define NTFS_ATTR_TYPE_BITMAP			0xb0
-#define NTFS_ATTR_TYPE_SYMLINK			0xc0
+#define NTFS_ATTR_TYPE_REPARSE_POINT	0xc0
+#define NTFS_ATTR_TYPE_EA_INFORMATION	0xd0
+#define NTFS_ATTR_TYPE_EA			0xe0
 #define NTFS_ATTR_TYPE_END			0xffffffff
 
 #define NTFS_ATTR_NORMAL			0
@@ -126,7 +133,8 @@
 		{
 			ULONG		ValueLength;
 			USHORT		ValueOffset;
-			USHORT		Flags;
+			UCHAR		Flags;
+			UCHAR		Reserved;
 		} Resident;
 		// Non-resident attributes
 		struct
@@ -134,8 +142,8 @@
 			ULONGLONG		LowestVCN;
 			ULONGLONG		HighestVCN;
 			USHORT		MappingPairsOffset;
-			UCHAR		CompressionUnit;
-			UCHAR		Reserved[5];
+			USHORT		CompressionUnit;
+			UCHAR		Reserved[4];
 			LONGLONG		AllocatedSize;
 			LONGLONG		DataSize;
 			LONGLONG		InitializedSize;
@@ -180,7 +188,20 @@
 	WCHAR		FileName[0];
 } NTFS_FILE_NAME_ATTR, *PNTFS_FILE_NAME_ATTR;
 
-typedef struct {
+typedef struct
+{
+	ULONG		Type;
+	USHORT		RecLength;
+	UCHAR		NameLength;
+	UCHAR		NameOffset;
+	ULONGLONG	StartingVCN;
+	ULONGLONG	BaseFileRef;
+	USHORT		AttrId;
+	PWCHAR		Name;
+} NTFS_ATTR_LIST_ATTR, *PNTFS_ATTR_LIST_ATTR;
+
+typedef struct
+{
 	union
 	{
 		struct




More information about the Ros-diffs mailing list