22cadd4e771c7a29518504579e4a42d807f3732d
[reactos.git] / reactos / drivers / filesystems / ntfs / ntfs.h
1 #ifndef NTFS_H
2 #define NTFS_H
3
4 #include <ntifs.h>
5
6 #define CACHEPAGESIZE(pDeviceExt) \
7 ((pDeviceExt)->NtfsInfo.UCHARsPerCluster > PAGE_SIZE ? \
8 (pDeviceExt)->NtfsInfo.UCHARsPerCluster : PAGE_SIZE)
9
10 #define TAG_NTFS 'SFTN'
11
12 #define ROUND_UP(N, S) ((((N) + (S) - 1) / (S)) * (S))
13
14 #define DEVICE_NAME L"\\Ntfs"
15
16 #include <pshpack1.h>
17 typedef struct _BIOS_PARAMETERS_BLOCK
18 {
19 USHORT BytesPerSector; // 0x0B
20 UCHAR SectorsPerCluster; // 0x0D
21 UCHAR Unused0[7]; // 0x0E, checked when volume is mounted
22 UCHAR MediaId; // 0x15
23 UCHAR Unused1[2]; // 0x16
24 USHORT SectorsPerTrack; // 0x18
25 USHORT Heads; // 0x1A
26 UCHAR Unused2[4]; // 0x1C
27 UCHAR Unused3[4]; // 0x20, checked when volume is mounted
28 } BIOS_PARAMETERS_BLOCK, *PBIOS_PARAMETERS_BLOCK;
29
30 typedef struct _EXTENDED_BIOS_PARAMETERS_BLOCK
31 {
32 USHORT Unknown[2]; // 0x24, always 80 00 80 00
33 ULONGLONG SectorCount; // 0x28
34 ULONGLONG MftLocation; // 0x30
35 ULONGLONG MftMirrLocation; // 0x38
36 CHAR ClustersPerMftRecord; // 0x40
37 UCHAR Unused4[3]; // 0x41
38 CHAR ClustersPerIndexRecord; // 0x44
39 UCHAR Unused5[3]; // 0x45
40 ULONGLONG SerialNumber; // 0x48
41 UCHAR Checksum[4]; // 0x50
42 } EXTENDED_BIOS_PARAMETERS_BLOCK, *PEXTENDED_BIOS_PARAMETERS_BLOCK;
43
44 typedef struct _BOOT_SECTOR
45 {
46 UCHAR Jump[3]; // 0x00
47 UCHAR OEMID[8]; // 0x03
48 BIOS_PARAMETERS_BLOCK BPB;
49 EXTENDED_BIOS_PARAMETERS_BLOCK EBPB;
50 UCHAR BootStrap[426]; // 0x54
51 USHORT EndSector; // 0x1FE
52 } BOOT_SECTOR, *PBOOT_SECTOR;
53 #include <poppack.h>
54
55 //typedef struct _BootSector BootSector;
56
57 typedef struct _NTFS_INFO
58 {
59 ULONG BytesPerSector;
60 ULONG SectorsPerCluster;
61 ULONG BytesPerCluster;
62 ULONGLONG SectorCount;
63 ULARGE_INTEGER MftStart;
64 ULARGE_INTEGER MftMirrStart;
65 ULONG BytesPerFileRecord;
66 ULONG BytesPerIndexRecord;
67
68 ULONGLONG SerialNumber;
69 USHORT VolumeLabelLength;
70 WCHAR VolumeLabel[MAXIMUM_VOLUME_LABEL_LENGTH];
71 UCHAR MajorVersion;
72 UCHAR MinorVersion;
73 USHORT Flags;
74
75 } NTFS_INFO, *PNTFS_INFO;
76
77 #define NTFS_TYPE_CCB '20SF'
78 #define NTFS_TYPE_FCB '30SF'
79 #define NTFS_TYPE_VCB '50SF'
80 #define NTFS_TYPE_IRP_CONTEST '60SF'
81 #define NTFS_TYPE_GLOBAL_DATA '70SF'
82
83 typedef struct
84 {
85 ULONG Type;
86 ULONG Size;
87 } NTFSIDENTIFIER, *PNTFSIDENTIFIER;
88
89 typedef struct
90 {
91 NTFSIDENTIFIER Identifier;
92
93 ERESOURCE DirResource;
94 // ERESOURCE FatResource;
95
96 KSPIN_LOCK FcbListLock;
97 LIST_ENTRY FcbListHead;
98
99 PVPB Vpb;
100 PDEVICE_OBJECT StorageDevice;
101 PFILE_OBJECT StreamFileObject;
102
103 struct _NTFS_ATTR_CONTEXT* MFTContext;
104 struct _FILE_RECORD_HEADER* MasterFileTable;
105 struct _FCB *VolumeFcb;
106
107 NTFS_INFO NtfsInfo;
108
109 } DEVICE_EXTENSION, *PDEVICE_EXTENSION, NTFS_VCB, *PNTFS_VCB;
110
111
112 #define FCB_CACHE_INITIALIZED 0x0001
113 #define FCB_IS_VOLUME_STREAM 0x0002
114 #define FCB_IS_VOLUME 0x0004
115 #define MAX_PATH 260
116
117 typedef struct _FCB
118 {
119 NTFSIDENTIFIER Identifier;
120
121 FSRTL_COMMON_FCB_HEADER RFCB;
122 SECTION_OBJECT_POINTERS SectionObjectPointers;
123
124 PFILE_OBJECT FileObject;
125 PNTFS_VCB Vcb;
126
127 WCHAR *ObjectName; /* point on filename (250 chars max) in PathName */
128 WCHAR PathName[MAX_PATH]; /* path+filename 260 max */
129
130 ERESOURCE PagingIoResource;
131 ERESOURCE MainResource;
132
133 LIST_ENTRY FcbListEntry;
134 struct _FCB* ParentFcb;
135
136 ULONG DirIndex;
137
138 LONG RefCount;
139 ULONG Flags;
140
141 ULONGLONG MFTIndex;
142
143 // DIR_RECORD Entry;
144
145 } NTFS_FCB, *PNTFS_FCB;
146
147
148 typedef struct
149 {
150 NTFSIDENTIFIER Identifier;
151 LIST_ENTRY NextCCB;
152 PFILE_OBJECT PtrFileObject;
153 LARGE_INTEGER CurrentByteOffset;
154 /* for DirectoryControl */
155 ULONG Entry;
156 /* for DirectoryControl */
157 PWCHAR DirectorySearchPattern;
158 ULONG LastCluster;
159 ULONG LastOffset;
160 } NTFS_CCB, *PNTFS_CCB;
161
162 #define TAG_CCB 'BCCI'
163
164 typedef struct
165 {
166 NTFSIDENTIFIER Identifier;
167 ERESOURCE Resource;
168 PDRIVER_OBJECT DriverObject;
169 PDEVICE_OBJECT DeviceObject;
170 CACHE_MANAGER_CALLBACKS CacheMgrCallbacks;
171 ULONG Flags;
172 } NTFS_GLOBAL_DATA, *PNTFS_GLOBAL_DATA;
173
174
175 typedef enum
176 {
177 AttributeStandardInformation = 0x10,
178 AttributeAttributeList = 0x20,
179 AttributeFileName = 0x30,
180 AttributeObjectId = 0x40,
181 AttributeSecurityDescriptor = 0x50,
182 AttributeVolumeName = 0x60,
183 AttributeVolumeInformation = 0x70,
184 AttributeData = 0x80,
185 AttributeIndexRoot = 0x90,
186 AttributeIndexAllocation = 0xA0,
187 AttributeBitmap = 0xB0,
188 AttributeReparsePoint = 0xC0,
189 AttributeEAInformation = 0xD0,
190 AttributeEA = 0xE0,
191 AttributePropertySet = 0xF0,
192 AttributeLoggedUtilityStream = 0x100,
193 AttributeEnd = 0xFFFFFFFF
194 } ATTRIBUTE_TYPE, *PATTRIBUTE_TYPE;
195
196 #define NTFS_FILE_MFT 0
197 #define NTFS_FILE_MFTMIRR 1
198 #define NTFS_FILE_LOGFILE 2
199 #define NTFS_FILE_VOLUME 3
200 #define NTFS_FILE_ATTRDEF 4
201 #define NTFS_FILE_ROOT 5
202 #define NTFS_FILE_BITMAP 6
203 #define NTFS_FILE_BOOT 7
204 #define NTFS_FILE_BADCLUS 8
205 #define NTFS_FILE_QUOTA 9
206 #define NTFS_FILE_UPCASE 10
207 #define NTFS_FILE_EXTEND 11
208
209 #define COLLATION_BINARY 0x00
210 #define COLLATION_FILE_NAME 0x01
211 #define COLLATION_UNICODE_STRING 0x02
212 #define COLLATION_NTOFS_ULONG 0x10
213 #define COLLATION_NTOFS_SID 0x11
214 #define COLLATION_NTOFS_SECURITY_HASH 0x12
215 #define COLLATION_NTOFS_ULONGS 0x13
216
217 #define INDEX_ROOT_SMALL 0x0
218 #define INDEX_ROOT_LARGE 0x1
219
220 #define NTFS_INDEX_ENTRY_NODE 1
221 #define NTFS_INDEX_ENTRY_END 2
222
223 #define NTFS_FILE_NAME_POSIX 0
224 #define NTFS_FILE_NAME_WIN32 1
225 #define NTFS_FILE_NAME_DOS 2
226 #define NTFS_FILE_NAME_WIN32_AND_DOS 3
227
228 typedef struct
229 {
230 ULONG Type; /* Magic number 'FILE' */
231 USHORT UsaOffset; /* Offset to the update sequence */
232 USHORT UsaCount; /* Size in words of Update Sequence Number & Array (S) */
233 ULONGLONG Lsn; /* $LogFile Sequence Number (LSN) */
234 } NTFS_RECORD_HEADER, *PNTFS_RECORD_HEADER;
235
236 /* NTFS_RECORD_HEADER.Type */
237 #define NRH_FILE_TYPE 0x454C4946 /* 'FILE' */
238
239
240 typedef struct _FILE_RECORD_HEADER
241 {
242 NTFS_RECORD_HEADER Ntfs;
243 USHORT SequenceNumber; /* Sequence number */
244 USHORT LinkCount; /* Hard link count */
245 USHORT AttributeOffset; /* Offset to the first Attribute */
246 USHORT Flags; /* Flags */
247 ULONG BytesInUse; /* Real size of the FILE record */
248 ULONG BytesAllocated; /* Allocated size of the FILE record */
249 ULONGLONG BaseFileRecord; /* File reference to the base FILE record */
250 USHORT NextAttributeNumber; /* Next Attribute Id */
251 USHORT Pading; /* Align to 4 UCHAR boundary (XP) */
252 ULONG MFTRecordNumber; /* Number of this MFT Record (XP) */
253 } FILE_RECORD_HEADER, *PFILE_RECORD_HEADER;
254
255 /* Flags in FILE_RECORD_HEADER */
256
257 #define FRH_IN_USE 0x0001 /* Record is in use */
258 #define FRH_DIRECTORY 0x0002 /* Record is a directory */
259 #define FRH_UNKNOWN1 0x0004 /* Don't know */
260 #define FRH_UNKNOWN2 0x0008 /* Don't know */
261
262 typedef struct
263 {
264 ULONG Type;
265 ULONG Length;
266 UCHAR IsNonResident;
267 UCHAR NameLength;
268 USHORT NameOffset;
269 USHORT Flags;
270 USHORT Instance;
271 union
272 {
273 // Resident attributes
274 struct
275 {
276 ULONG ValueLength;
277 USHORT ValueOffset;
278 UCHAR Flags;
279 UCHAR Reserved;
280 } Resident;
281 // Non-resident attributes
282 struct
283 {
284 ULONGLONG LowestVCN;
285 ULONGLONG HighestVCN;
286 USHORT MappingPairsOffset;
287 USHORT CompressionUnit;
288 UCHAR Reserved[4];
289 LONGLONG AllocatedSize;
290 LONGLONG DataSize;
291 LONGLONG InitializedSize;
292 LONGLONG CompressedSize;
293 } NonResident;
294 };
295 } NTFS_ATTR_RECORD, *PNTFS_ATTR_RECORD;
296
297 typedef struct
298 {
299 ULONGLONG CreationTime;
300 ULONGLONG ChangeTime;
301 ULONGLONG LastWriteTime;
302 ULONGLONG LastAccessTime;
303 ULONG FileAttribute;
304 ULONG AlignmentOrReserved[3];
305 #if 0
306 ULONG QuotaId;
307 ULONG SecurityId;
308 ULONGLONG QuotaCharge;
309 USN Usn;
310 #endif
311 } STANDARD_INFORMATION, *PSTANDARD_INFORMATION;
312
313
314 typedef struct
315 {
316 ATTRIBUTE_TYPE AttributeType;
317 USHORT Length;
318 UCHAR NameLength;
319 UCHAR NameOffset;
320 ULONGLONG StartVcn; // LowVcn
321 ULONGLONG FileReferenceNumber;
322 USHORT AttributeNumber;
323 USHORT AlignmentOrReserved[3];
324 } ATTRIBUTE_LIST, *PATTRIBUTE_LIST;
325
326
327 typedef struct
328 {
329 ULONGLONG DirectoryFileReferenceNumber;
330 ULONGLONG CreationTime;
331 ULONGLONG ChangeTime;
332 ULONGLONG LastWriteTime;
333 ULONGLONG LastAccessTime;
334 ULONGLONG AllocatedSize;
335 ULONGLONG DataSize;
336 ULONG FileAttributes;
337 ULONG AlignmentOrReserved;
338 UCHAR NameLength;
339 UCHAR NameType;
340 WCHAR Name[1];
341 } FILENAME_ATTRIBUTE, *PFILENAME_ATTRIBUTE;
342
343 typedef struct
344 {
345 ULONG FirstEntryOffset;
346 ULONG TotalSizeOfEntries;
347 ULONG AllocatedSize;
348 UCHAR Flags;
349 UCHAR Padding[3];
350 } INDEX_HEADER_ATTRIBUTE, *PINDEX_HEADER_ATTRIBUTE;
351
352 typedef struct
353 {
354 ULONG AttributeType;
355 ULONG CollationRule;
356 ULONG SizeOfEntry;
357 UCHAR ClustersPerIndexRecord;
358 UCHAR Padding[3];
359 INDEX_HEADER_ATTRIBUTE Header;
360 } INDEX_ROOT_ATTRIBUTE, *PINDEX_ROOT_ATTRIBUTE;
361
362 typedef struct
363 {
364 union
365 {
366 struct
367 {
368 ULONGLONG IndexedFile;
369 } Directory;
370 struct
371 {
372 USHORT DataOffset;
373 USHORT DataLength;
374 ULONG Reserved;
375 } ViewIndex;
376 } Data;
377 USHORT Length;
378 USHORT KeyLength;
379 USHORT Flags;
380 USHORT Reserved;
381 FILENAME_ATTRIBUTE FileName;
382 } INDEX_ENTRY_ATTRIBUTE, *PINDEX_ENTRY_ATTRIBUTE;
383
384 typedef struct
385 {
386 ULONGLONG Unknown1;
387 UCHAR MajorVersion;
388 UCHAR MinorVersion;
389 USHORT Flags;
390 ULONG Unknown2;
391 } VOLINFO_ATTRIBUTE, *PVOLINFO_ATTRIBUTE;
392
393 typedef struct
394 {
395 NTFSIDENTIFIER Identifier;
396 ULONG Flags;
397 UCHAR MajorFunction;
398 UCHAR MinorFunction;
399 WORK_QUEUE_ITEM WorkQueueItem;
400 PIRP Irp;
401 BOOLEAN IsTopLevel;
402 PDEVICE_OBJECT DeviceObject;
403 NTSTATUS SavedExceptionCode;
404 } NTFS_IRP_CONTEXT, *PNTFS_IRP_CONTEXT;
405
406 typedef struct _NTFS_ATTR_CONTEXT
407 {
408 PUCHAR CacheRun;
409 ULONGLONG CacheRunOffset;
410 LONGLONG CacheRunStartLCN;
411 ULONGLONG CacheRunLength;
412 LONGLONG CacheRunLastLCN;
413 ULONGLONG CacheRunCurrentOffset;
414 NTFS_ATTR_RECORD Record;
415 } NTFS_ATTR_CONTEXT, *PNTFS_ATTR_CONTEXT;
416
417 extern PNTFS_GLOBAL_DATA NtfsGlobalData;
418
419 //int CdfsStrcmpi( wchar_t *str1, wchar_t *str2 );
420 //void CdfsWstrcpy( wchar_t *str1, wchar_t *str2, int max );
421
422
423 /* attrib.c */
424
425 //VOID
426 //NtfsDumpAttribute(PATTRIBUTE Attribute);
427
428 PUCHAR
429 DecodeRun(PUCHAR DataRun,
430 LONGLONG *DataRunOffset,
431 ULONGLONG *DataRunLength);
432
433 VOID
434 NtfsDumpFileAttributes(PFILE_RECORD_HEADER FileRecord);
435
436
437 /* blockdev.c */
438
439 NTSTATUS
440 NtfsReadDisk(IN PDEVICE_OBJECT DeviceObject,
441 IN LONGLONG StartingOffset,
442 IN ULONG Length,
443 IN OUT PUCHAR Buffer,
444 IN BOOLEAN Override);
445
446 NTSTATUS
447 NtfsReadSectors(IN PDEVICE_OBJECT DeviceObject,
448 IN ULONG DiskSector,
449 IN ULONG SectorCount,
450 IN ULONG SectorSize,
451 IN OUT PUCHAR Buffer,
452 IN BOOLEAN Override);
453
454 NTSTATUS
455 NtfsDeviceIoControl(IN PDEVICE_OBJECT DeviceObject,
456 IN ULONG ControlCode,
457 IN PVOID InputBuffer,
458 IN ULONG InputBufferSize,
459 IN OUT PVOID OutputBuffer,
460 IN OUT PULONG OutputBufferSize,
461 IN BOOLEAN Override);
462
463
464 /* close.c */
465
466 DRIVER_DISPATCH NtfsFsdClose;
467 NTSTATUS NTAPI
468 NtfsFsdClose(PDEVICE_OBJECT DeviceObject,
469 PIRP Irp);
470
471
472 /* create.c */
473
474 DRIVER_DISPATCH NtfsFsdCreate;
475 NTSTATUS NTAPI
476 NtfsFsdCreate(PDEVICE_OBJECT DeviceObject,
477 PIRP Irp);
478
479
480 /* dirctl.c */
481
482 DRIVER_DISPATCH NtfsFsdDirectoryControl;
483 NTSTATUS NTAPI
484 NtfsFsdDirectoryControl(PDEVICE_OBJECT DeviceObject,
485 PIRP Irp);
486
487
488 /* dispatch.c */
489
490 DRIVER_DISPATCH NtfsFsdDispatch;
491 NTSTATUS NTAPI
492 NtfsFsdDispatch(PDEVICE_OBJECT DeviceObject,
493 PIRP Irp);
494
495
496 /* fastio.c */
497
498 BOOLEAN NTAPI
499 NtfsAcqLazyWrite(PVOID Context,
500 BOOLEAN Wait);
501
502 VOID NTAPI
503 NtfsRelLazyWrite(PVOID Context);
504
505 BOOLEAN NTAPI
506 NtfsAcqReadAhead(PVOID Context,
507 BOOLEAN Wait);
508
509 VOID NTAPI
510 NtfsRelReadAhead(PVOID Context);
511
512
513 /* fcb.c */
514
515 PNTFS_FCB
516 NtfsCreateFCB(PCWSTR FileName,
517 PNTFS_VCB Vcb);
518
519 VOID
520 NtfsDestroyFCB(PNTFS_FCB Fcb);
521
522 BOOLEAN
523 NtfsFCBIsDirectory(PNTFS_FCB Fcb);
524
525 BOOLEAN
526 NtfsFCBIsRoot(PNTFS_FCB Fcb);
527
528 VOID
529 NtfsGrabFCB(PNTFS_VCB Vcb,
530 PNTFS_FCB Fcb);
531
532 VOID
533 NtfsReleaseFCB(PNTFS_VCB Vcb,
534 PNTFS_FCB Fcb);
535
536 VOID
537 NtfsAddFCBToTable(PNTFS_VCB Vcb,
538 PNTFS_FCB Fcb);
539
540 PNTFS_FCB
541 NtfsGrabFCBFromTable(PNTFS_VCB Vcb,
542 PCWSTR FileName);
543
544 NTSTATUS
545 NtfsFCBInitializeCache(PNTFS_VCB Vcb,
546 PNTFS_FCB Fcb);
547
548 PNTFS_FCB
549 NtfsMakeRootFCB(PNTFS_VCB Vcb);
550
551 PNTFS_FCB
552 NtfsOpenRootFCB(PNTFS_VCB Vcb);
553
554 NTSTATUS
555 NtfsAttachFCBToFileObject(PNTFS_VCB Vcb,
556 PNTFS_FCB Fcb,
557 PFILE_OBJECT FileObject);
558
559 NTSTATUS
560 NtfsGetFCBForFile(PNTFS_VCB Vcb,
561 PNTFS_FCB *pParentFCB,
562 PNTFS_FCB *pFCB,
563 const PWSTR pFileName);
564
565
566 /* finfo.c */
567
568 DRIVER_DISPATCH NtfsFsdQueryInformation;
569 NTSTATUS NTAPI
570 NtfsFsdQueryInformation(PDEVICE_OBJECT DeviceObject,
571 PIRP Irp);
572
573
574 /* fsctl.c */
575
576 DRIVER_DISPATCH NtfsFsdFileSystemControl;
577 NTSTATUS NTAPI
578 NtfsFsdFileSystemControl(PDEVICE_OBJECT DeviceObject,
579 PIRP Irp);
580
581
582 /* mft.c */
583 ULONG
584 ReadAttribute(PDEVICE_EXTENSION Vcb,
585 PNTFS_ATTR_CONTEXT Context,
586 ULONGLONG Offset,
587 PCHAR Buffer,
588 ULONG Length);
589
590 ULONGLONG
591 AttributeDataLength(PNTFS_ATTR_RECORD AttrRecord);
592
593 ULONG
594 AttributeAllocatedLength(PNTFS_ATTR_RECORD AttrRecord);
595
596 NTSTATUS
597 ReadFileRecord(PDEVICE_EXTENSION Vcb,
598 ULONGLONG index,
599 PFILE_RECORD_HEADER file);
600
601 NTSTATUS
602 FindAttribute(PDEVICE_EXTENSION Vcb,
603 PFILE_RECORD_HEADER MftRecord,
604 ULONG Type,
605 PUNICODE_STRING Name,
606 PNTFS_ATTR_CONTEXT * AttrCtx);
607
608 VOID
609 ReadVCN(PDEVICE_EXTENSION Vcb,
610 PFILE_RECORD_HEADER file,
611 ATTRIBUTE_TYPE type,
612 ULONGLONG vcn,
613 ULONG count,
614 PVOID buffer);
615
616 NTSTATUS
617 FixupUpdateSequenceArray(PDEVICE_EXTENSION Vcb,
618 PNTFS_RECORD_HEADER Record);
619
620 NTSTATUS
621 ReadLCN(PDEVICE_EXTENSION Vcb,
622 ULONGLONG lcn,
623 ULONG count,
624 PVOID buffer);
625
626 VOID
627 EnumerAttribute(PFILE_RECORD_HEADER file,
628 PDEVICE_EXTENSION Vcb,
629 PDEVICE_OBJECT DeviceObject);
630
631 NTSTATUS
632 NtfsLookupFile(PDEVICE_EXTENSION Vcb,
633 PUNICODE_STRING PathName,
634 PFILE_RECORD_HEADER *FileRecord,
635 PNTFS_ATTR_CONTEXT *DataContext);
636
637 NTSTATUS
638 NtfsLookupFileAt(PDEVICE_EXTENSION Vcb,
639 PUNICODE_STRING PathName,
640 PFILE_RECORD_HEADER *FileRecord,
641 PNTFS_ATTR_CONTEXT *DataContext,
642 ULONGLONG CurrentMFTIndex);
643
644 /* misc.c */
645
646 BOOLEAN
647 NtfsIsIrpTopLevel(PIRP Irp);
648
649 PNTFS_IRP_CONTEXT
650 NtfsAllocateIrpContext(PDEVICE_OBJECT DeviceObject,
651 PIRP Irp);
652
653 #if 0
654 BOOLEAN
655 wstrcmpjoki(PWSTR s1, PWSTR s2);
656
657 VOID
658 CdfsSwapString(PWCHAR Out,
659 PUCHAR In,
660 ULONG Count);
661
662 VOID
663 CdfsDateTimeToFileTime(PFCB Fcb,
664 TIME *FileTime);
665
666 VOID
667 CdfsFileFlagsToAttributes(PFCB Fcb,
668 PULONG FileAttributes);
669 #endif
670
671
672 /* rw.c */
673
674 DRIVER_DISPATCH NtfsFsdRead;
675 NTSTATUS NTAPI
676 NtfsFsdRead(PDEVICE_OBJECT DeviceObject,
677 PIRP Irp);
678
679 DRIVER_DISPATCH NtfsFsdWrite;
680 NTSTATUS NTAPI
681 NtfsFsdWrite(PDEVICE_OBJECT DeviceObject,
682 PIRP Irp);
683
684
685 /* volinfo.c */
686
687 NTSTATUS
688 NtfsQueryVolumeInformation(PNTFS_IRP_CONTEXT IrpContext);
689
690 NTSTATUS
691 NtfsSetVolumeInformation(PNTFS_IRP_CONTEXT IrpContext);
692
693
694 /* ntfs.c */
695
696 DRIVER_INITIALIZE DriverEntry;
697
698 VOID
699 NTAPI
700 NtfsInitializeFunctionPointers(PDRIVER_OBJECT DriverObject);
701
702 #endif /* NTFS_H */