3 * Copyright (C) 2002, 2004 ReactOS Team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 * COPYRIGHT: See COPYING in the top level directory
22 * PROJECT: ReactOS kernel
23 * FILE: services/fs/cdfs/dirctl.c
24 * PURPOSE: CDROM (ISO 9660) filesystem driver
25 * PROGRAMMER: Art Yerkes
30 /* INCLUDES *****************************************************************/
37 /* FUNCTIONS ****************************************************************/
39 #define ROUND_DOWN(N, S) (((N) / (S)) * (S))
40 #define ROUND_UP(N, S) ((((N) + (S) - 1) / (S)) * (S))
42 /* FUNCTIONS ****************************************************************/
45 * FUNCTION: Retrieves the file name, be it in short or long file name format
48 CdfsGetEntryName(PDEVICE_EXTENSION DeviceExt
,
51 PLARGE_INTEGER StreamOffset
,
58 PDIR_RECORD Record
= *Ptr
;
61 if (*CurrentOffset
>= DirLength
)
62 return(STATUS_NO_MORE_ENTRIES
);
64 if (*CurrentOffset
== 0)
67 Record
= (PDIR_RECORD
)*Block
;
68 while (Index
< *pIndex
)
70 (*Ptr
) = (PVOID
)((ULONG_PTR
)(*Ptr
) + Record
->RecordLength
);
71 (*CurrentOffset
) += Record
->RecordLength
;
73 if ((ULONG_PTR
)(*Ptr
) - (ULONG_PTR
)(*Block
) >= BLOCKSIZE
|| Record
->RecordLength
== 0)
75 DPRINT("Map next sector\n");
76 CcUnpinData(*Context
);
77 StreamOffset
->QuadPart
+= BLOCKSIZE
;
78 *CurrentOffset
= ROUND_UP(*CurrentOffset
, BLOCKSIZE
);
79 if (!CcMapData(DeviceExt
->StreamFileObject
,
84 DPRINT("CcMapData() failed\n");
85 return(STATUS_UNSUCCESSFUL
);
88 Record
= (PDIR_RECORD
)*Ptr
;
90 if (*CurrentOffset
>= DirLength
)
91 return(STATUS_NO_MORE_ENTRIES
);
97 if ((ULONG_PTR
)(*Ptr
) - (ULONG_PTR
)(*Block
) >= BLOCKSIZE
|| Record
->RecordLength
== 0)
99 DPRINT("Map next sector\n");
100 CcUnpinData(*Context
);
101 StreamOffset
->QuadPart
+= BLOCKSIZE
;
102 *CurrentOffset
= ROUND_UP(*CurrentOffset
, BLOCKSIZE
);
103 if (!CcMapData(DeviceExt
->StreamFileObject
,
108 DPRINT("CcMapData() failed\n");
109 return(STATUS_UNSUCCESSFUL
);
112 Record
= (PDIR_RECORD
)*Ptr
;
115 if (*CurrentOffset
>= DirLength
)
116 return STATUS_NO_MORE_ENTRIES
;
118 DPRINT("Index %lu RecordLength %lu Offset %lu\n",
119 *pIndex
, Record
->RecordLength
, *CurrentOffset
);
121 if (Record
->FileIdLength
== 1 && Record
->FileId
[0] == 0)
125 else if (Record
->FileIdLength
== 1 && Record
->FileId
[0] == 1)
131 if (DeviceExt
->CdInfo
.JolietLevel
== 0)
135 for (i
= 0; i
< Record
->FileIdLength
&& Record
->FileId
[i
] != ';'; i
++)
136 Name
[i
] = (WCHAR
)Record
->FileId
[i
];
141 CdfsSwapString(Name
, Record
->FileId
, Record
->FileIdLength
);
145 DPRINT("Name '%S'\n", Name
);
149 return(STATUS_SUCCESS
);
154 * FUNCTION: Find a file
157 CdfsFindFile(PDEVICE_EXTENSION DeviceExt
,
160 PUNICODE_STRING FileToFind
,
165 WCHAR ShortNameBuffer
[13];
166 UNICODE_STRING TempString
;
167 UNICODE_STRING ShortName
;
168 UNICODE_STRING LongName
;
169 UNICODE_STRING FileToFindUpcase
;
176 PVOID Context
= NULL
;
179 LARGE_INTEGER StreamOffset
, OffsetOfEntry
;
181 DPRINT("FindFile(Parent %x, FileToFind '%wZ', DirIndex: %d)\n",
182 Parent
, FileToFind
, pDirIndex
? *pDirIndex
: 0);
183 DPRINT("FindFile: old Pathname %x, old Objectname %x)\n",
184 Fcb
->PathName
, Fcb
->ObjectName
);
189 if (FileToFind
== NULL
|| FileToFind
->Length
== 0)
191 RtlInitUnicodeString(&TempString
, L
".");
192 FileToFind
= &TempString
;
197 if (Parent
->Entry
.ExtentLocationL
== DeviceExt
->CdInfo
.RootStart
)
209 StreamOffset
.QuadPart
= (LONGLONG
)DeviceExt
->CdInfo
.RootStart
* (LONGLONG
)BLOCKSIZE
;
210 DirSize
= DeviceExt
->CdInfo
.RootSize
;
213 if (FileToFind
->Buffer
[0] == 0 ||
214 (FileToFind
->Buffer
[0] == '\\' && FileToFind
->Buffer
[1] == 0) ||
215 (FileToFind
->Buffer
[0] == '.' && FileToFind
->Buffer
[1] == 0))
217 /* it's root : complete essentials fields then return ok */
218 RtlZeroMemory(Fcb
, sizeof(FCB
));
220 Fcb
->PathName
[0] = '\\';
221 Fcb
->ObjectName
= &Fcb
->PathName
[1];
222 Fcb
->Entry
.ExtentLocationL
= DeviceExt
->CdInfo
.RootStart
;
223 Fcb
->Entry
.DataLengthL
= DeviceExt
->CdInfo
.RootSize
;
224 Fcb
->Entry
.FileFlags
= 0x02; //FILE_ATTRIBUTE_DIRECTORY;
230 DPRINT("CdfsFindFile: new Pathname %S, new Objectname %S)\n",Fcb
->PathName
, Fcb
->ObjectName
);
231 return STATUS_SUCCESS
;
236 StreamOffset
.QuadPart
= (LONGLONG
)Parent
->Entry
.ExtentLocationL
* (LONGLONG
)BLOCKSIZE
;
237 DirSize
= Parent
->Entry
.DataLengthL
;
240 DPRINT("StreamOffset %I64u DirSize %lu\n", StreamOffset
.QuadPart
, DirSize
);
242 if (pDirIndex
&& (*pDirIndex
))
243 DirIndex
= *pDirIndex
;
245 if (pOffset
&& (*pOffset
))
248 StreamOffset
.QuadPart
+= ROUND_DOWN(Offset
, BLOCKSIZE
);
251 if (!CcMapData(DeviceExt
->StreamFileObject
, &StreamOffset
,
252 BLOCKSIZE
, TRUE
, &Context
, &Block
))
254 DPRINT("CcMapData() failed\n");
255 return STATUS_UNSUCCESSFUL
;
258 Record
= (PDIR_RECORD
) ((ULONG_PTR
)Block
+ Offset
% BLOCKSIZE
);
261 Offset
+= Record
->RecordLength
;
262 Record
= (PDIR_RECORD
)((ULONG_PTR
)Record
+ Record
->RecordLength
);
265 /* Upper case the expression for FsRtlIsNameInExpression */
266 Status
= RtlUpcaseUnicodeString(&FileToFindUpcase
, FileToFind
, TRUE
);
267 if (!NT_SUCCESS(Status
))
274 DPRINT("RecordLength %u ExtAttrRecordLength %u NameLength %u\n",
275 Record
->RecordLength
, Record
->ExtAttrRecordLength
, Record
->FileIdLength
);
277 Status
= CdfsGetEntryName
278 (DeviceExt
, &Context
, &Block
, &StreamOffset
,
279 DirSize
, (PVOID
*)&Record
, name
, &DirIndex
, &Offset
);
281 if (Status
== STATUS_NO_MORE_ENTRIES
)
285 else if (Status
== STATUS_UNSUCCESSFUL
)
287 /* Note: the directory cache has already been unpinned */
288 RtlFreeUnicodeString(&FileToFindUpcase
);
292 DPRINT("Name '%S'\n", name
);
294 RtlInitUnicodeString(&LongName
, name
);
295 ShortName
.Length
= 0;
296 ShortName
.MaximumLength
= 26;
297 ShortName
.Buffer
= ShortNameBuffer
;
299 OffsetOfEntry
.QuadPart
= StreamOffset
.QuadPart
+ Offset
;
300 CdfsShortNameCacheGet(Parent
, &OffsetOfEntry
, &LongName
, &ShortName
);
302 DPRINT("ShortName '%wZ'\n", &ShortName
);
304 if (FsRtlIsNameInExpression(&FileToFindUpcase
, &LongName
, TRUE
, NULL
) ||
305 FsRtlIsNameInExpression(&FileToFindUpcase
, &ShortName
, TRUE
, NULL
))
307 if (Parent
&& Parent
->PathName
)
309 len
= wcslen(Parent
->PathName
);
310 memcpy(Fcb
->PathName
, Parent
->PathName
, len
*sizeof(WCHAR
));
311 Fcb
->ObjectName
=&Fcb
->PathName
[len
];
312 if (len
!= 1 || Fcb
->PathName
[0] != '\\')
314 Fcb
->ObjectName
[0] = '\\';
315 Fcb
->ObjectName
= &Fcb
->ObjectName
[1];
320 Fcb
->ObjectName
=Fcb
->PathName
;
321 Fcb
->ObjectName
[0]='\\';
322 Fcb
->ObjectName
=&Fcb
->ObjectName
[1];
325 DPRINT("PathName '%S' ObjectName '%S'\n", Fcb
->PathName
, Fcb
->ObjectName
);
327 memcpy(&Fcb
->Entry
, Record
, sizeof(DIR_RECORD
));
328 wcsncpy(Fcb
->ObjectName
, name
, MAX_PATH
);
330 /* Copy short name */
331 Fcb
->ShortNameU
.Length
= ShortName
.Length
;
332 Fcb
->ShortNameU
.MaximumLength
= ShortName
.Length
;
333 Fcb
->ShortNameU
.Buffer
= Fcb
->ShortNameBuffer
;
334 memcpy(Fcb
->ShortNameBuffer
, ShortName
.Buffer
, ShortName
.Length
);
337 *pDirIndex
= DirIndex
;
341 DPRINT("FindFile: new Pathname %S, new Objectname %S, DirIndex %d\n",
342 Fcb
->PathName
, Fcb
->ObjectName
, DirIndex
);
344 RtlFreeUnicodeString(&FileToFindUpcase
);
345 CcUnpinData(Context
);
347 return STATUS_SUCCESS
;
350 Offset
+= Record
->RecordLength
;
351 Record
= (PDIR_RECORD
)((ULONG_PTR
)Record
+ Record
->RecordLength
);
355 RtlFreeUnicodeString(&FileToFindUpcase
);
356 CcUnpinData(Context
);
359 *pDirIndex
= DirIndex
;
364 return STATUS_UNSUCCESSFUL
;
369 CdfsGetNameInformation(PFCB Fcb
,
370 PDEVICE_EXTENSION DeviceExt
,
371 PFILE_NAMES_INFORMATION Info
,
376 DPRINT("CdfsGetNameInformation() called\n");
378 Length
= wcslen(Fcb
->ObjectName
) * sizeof(WCHAR
);
379 if ((sizeof (FILE_BOTH_DIR_INFORMATION
) + Length
) > BufferLength
)
380 return(STATUS_BUFFER_OVERFLOW
);
382 Info
->FileNameLength
= Length
;
383 Info
->NextEntryOffset
=
384 ROUND_UP(sizeof(FILE_BOTH_DIR_INFORMATION
) + Length
, 4);
385 memcpy(Info
->FileName
, Fcb
->ObjectName
, Length
);
387 return(STATUS_SUCCESS
);
392 CdfsGetDirectoryInformation(PFCB Fcb
,
393 PDEVICE_EXTENSION DeviceExt
,
394 PFILE_DIRECTORY_INFORMATION Info
,
399 DPRINT("CdfsGetDirectoryInformation() called\n");
401 Length
= wcslen(Fcb
->ObjectName
) * sizeof(WCHAR
);
402 if ((sizeof (FILE_BOTH_DIR_INFORMATION
) + Length
) > BufferLength
)
403 return(STATUS_BUFFER_OVERFLOW
);
405 Info
->FileNameLength
= Length
;
406 Info
->NextEntryOffset
=
407 ROUND_UP(sizeof(FILE_BOTH_DIR_INFORMATION
) + Length
, 4);
408 memcpy(Info
->FileName
, Fcb
->ObjectName
, Length
);
410 /* Convert file times */
411 CdfsDateTimeToSystemTime(Fcb
,
412 &Info
->CreationTime
);
413 CdfsDateTimeToSystemTime(Fcb
,
414 &Info
->LastAccessTime
);
415 CdfsDateTimeToSystemTime(Fcb
,
416 &Info
->LastWriteTime
);
417 CdfsDateTimeToSystemTime(Fcb
,
420 /* Convert file flags */
421 CdfsFileFlagsToAttributes(Fcb
,
422 &Info
->FileAttributes
);
423 if (CdfsFCBIsDirectory(Fcb
))
425 Info
->EndOfFile
.QuadPart
= 0LL;
426 Info
->AllocationSize
.QuadPart
= 0LL;
430 Info
->EndOfFile
.QuadPart
= Fcb
->Entry
.DataLengthL
;
432 /* Make AllocSize a rounded up multiple of the sector size */
433 Info
->AllocationSize
.QuadPart
= ROUND_UP(Fcb
->Entry
.DataLengthL
, BLOCKSIZE
);
438 return(STATUS_SUCCESS
);
443 CdfsGetFullDirectoryInformation(PFCB Fcb
,
444 PDEVICE_EXTENSION DeviceExt
,
445 PFILE_FULL_DIR_INFORMATION Info
,
450 DPRINT("CdfsGetFullDirectoryInformation() called\n");
452 Length
= wcslen(Fcb
->ObjectName
) * sizeof(WCHAR
);
453 if ((sizeof (FILE_BOTH_DIR_INFORMATION
) + Length
) > BufferLength
)
454 return(STATUS_BUFFER_OVERFLOW
);
456 Info
->FileNameLength
= Length
;
457 Info
->NextEntryOffset
=
458 ROUND_UP(sizeof(FILE_BOTH_DIR_INFORMATION
) + Length
, 4);
459 memcpy(Info
->FileName
, Fcb
->ObjectName
, Length
);
461 /* Convert file times */
462 CdfsDateTimeToSystemTime(Fcb
,
463 &Info
->CreationTime
);
464 CdfsDateTimeToSystemTime(Fcb
,
465 &Info
->LastAccessTime
);
466 CdfsDateTimeToSystemTime(Fcb
,
467 &Info
->LastWriteTime
);
468 CdfsDateTimeToSystemTime(Fcb
,
471 /* Convert file flags */
472 CdfsFileFlagsToAttributes(Fcb
,
473 &Info
->FileAttributes
);
475 if (CdfsFCBIsDirectory(Fcb
))
477 Info
->EndOfFile
.QuadPart
= 0LL;
478 Info
->AllocationSize
.QuadPart
= 0LL;
482 Info
->EndOfFile
.QuadPart
= Fcb
->Entry
.DataLengthL
;
484 /* Make AllocSize a rounded up multiple of the sector size */
485 Info
->AllocationSize
.QuadPart
= ROUND_UP(Fcb
->Entry
.DataLengthL
, BLOCKSIZE
);
491 return(STATUS_SUCCESS
);
496 CdfsGetBothDirectoryInformation(PFCB Fcb
,
497 PDEVICE_EXTENSION DeviceExt
,
498 PFILE_BOTH_DIR_INFORMATION Info
,
503 DPRINT("CdfsGetBothDirectoryInformation() called\n");
505 Length
= wcslen(Fcb
->ObjectName
) * sizeof(WCHAR
);
506 if ((sizeof (FILE_BOTH_DIR_INFORMATION
) + Length
) > BufferLength
)
507 return(STATUS_BUFFER_OVERFLOW
);
509 Info
->FileNameLength
= Length
;
510 Info
->NextEntryOffset
=
511 ROUND_UP(sizeof(FILE_BOTH_DIR_INFORMATION
) + Length
, 4);
512 memcpy(Info
->FileName
, Fcb
->ObjectName
, Length
);
514 /* Convert file times */
515 CdfsDateTimeToSystemTime(Fcb
,
516 &Info
->CreationTime
);
517 CdfsDateTimeToSystemTime(Fcb
,
518 &Info
->LastAccessTime
);
519 CdfsDateTimeToSystemTime(Fcb
,
520 &Info
->LastWriteTime
);
521 CdfsDateTimeToSystemTime(Fcb
,
524 /* Convert file flags */
525 CdfsFileFlagsToAttributes(Fcb
,
526 &Info
->FileAttributes
);
528 if (CdfsFCBIsDirectory(Fcb
))
530 Info
->EndOfFile
.QuadPart
= 0LL;
531 Info
->AllocationSize
.QuadPart
= 0LL;
535 Info
->EndOfFile
.QuadPart
= Fcb
->Entry
.DataLengthL
;
537 /* Make AllocSize a rounded up multiple of the sector size */
538 Info
->AllocationSize
.QuadPart
= ROUND_UP(Fcb
->Entry
.DataLengthL
, BLOCKSIZE
);
544 /* Copy short name */
545 Info
->ShortNameLength
= Fcb
->ShortNameU
.Length
;
546 memcpy(Info
->ShortName
, Fcb
->ShortNameU
.Buffer
, Fcb
->ShortNameU
.Length
);
548 return(STATUS_SUCCESS
);
553 CdfsQueryDirectory(PDEVICE_OBJECT DeviceObject
,
556 PDEVICE_EXTENSION DeviceExtension
;
557 LONG BufferLength
= 0;
558 PUNICODE_STRING SearchPattern
= NULL
;
559 FILE_INFORMATION_CLASS FileInformationClass
;
561 PUCHAR Buffer
= NULL
;
562 PFILE_NAMES_INFORMATION Buffer0
= NULL
;
566 BOOLEAN First
= FALSE
;
567 PIO_STACK_LOCATION Stack
;
568 PFILE_OBJECT FileObject
;
569 NTSTATUS Status
= STATUS_SUCCESS
;
571 DPRINT("CdfsQueryDirectory() called\n");
573 DeviceExtension
= DeviceObject
->DeviceExtension
;
574 Stack
= IoGetCurrentIrpStackLocation(Irp
);
575 FileObject
= Stack
->FileObject
;
577 Ccb
= (PCCB
)FileObject
->FsContext2
;
578 Fcb
= (PFCB
)FileObject
->FsContext
;
580 /* Obtain the callers parameters */
581 BufferLength
= Stack
->Parameters
.QueryDirectory
.Length
;
582 SearchPattern
= Stack
->Parameters
.QueryDirectory
.FileName
;
583 FileInformationClass
=
584 Stack
->Parameters
.QueryDirectory
.FileInformationClass
;
585 FileIndex
= Stack
->Parameters
.QueryDirectory
.FileIndex
;
588 if (SearchPattern
!= NULL
)
590 if (Ccb
->DirectorySearchPattern
.Buffer
== NULL
)
593 Ccb
->DirectorySearchPattern
.Buffer
=
594 ExAllocatePoolWithTag(NonPagedPool
, SearchPattern
->Length
+ sizeof(WCHAR
), TAG_CCB
);
595 if (Ccb
->DirectorySearchPattern
.Buffer
== NULL
)
597 return STATUS_INSUFFICIENT_RESOURCES
;
600 Ccb
->DirectorySearchPattern
.Length
= SearchPattern
->Length
;
601 Ccb
->DirectorySearchPattern
.MaximumLength
= SearchPattern
->Length
+ sizeof(WCHAR
);
603 memcpy(Ccb
->DirectorySearchPattern
.Buffer
,
604 SearchPattern
->Buffer
,
605 SearchPattern
->Length
);
606 Ccb
->DirectorySearchPattern
.Buffer
[SearchPattern
->Length
/ sizeof(WCHAR
)] = 0;
609 else if (Ccb
->DirectorySearchPattern
.Buffer
== NULL
)
612 Ccb
->DirectorySearchPattern
.Buffer
= ExAllocatePoolWithTag(NonPagedPool
, 2 * sizeof(WCHAR
), TAG_CCB
);
613 if (Ccb
->DirectorySearchPattern
.Buffer
== NULL
)
615 return STATUS_INSUFFICIENT_RESOURCES
;
618 Ccb
->DirectorySearchPattern
.Length
= sizeof(WCHAR
);
619 Ccb
->DirectorySearchPattern
.MaximumLength
= 2 * sizeof(WCHAR
);
620 Ccb
->DirectorySearchPattern
.Buffer
[0] = L
'*';
621 Ccb
->DirectorySearchPattern
.Buffer
[1] = 0;
623 DPRINT("Search pattern '%wZ'\n", &Ccb
->DirectorySearchPattern
);
625 /* Determine directory index */
626 if (Stack
->Flags
& SL_INDEX_SPECIFIED
)
628 Ccb
->Entry
= Ccb
->CurrentByteOffset
.u
.LowPart
;
631 else if (First
|| (Stack
->Flags
& SL_RESTART_SCAN
))
637 /* Determine Buffer for result */
640 Buffer
= MmGetSystemAddressForMdl(Irp
->MdlAddress
);
644 Buffer
= Irp
->UserBuffer
;
646 DPRINT("Buffer = %p tofind = %wZ\n", Buffer
, &Ccb
->DirectorySearchPattern
);
648 TempFcb
.ObjectName
= TempFcb
.PathName
;
649 while (Status
== STATUS_SUCCESS
&& BufferLength
> 0)
651 Status
= CdfsFindFile(DeviceExtension
,
654 &Ccb
->DirectorySearchPattern
,
657 DPRINT("Found %S, Status=%x, entry %x\n", TempFcb
.ObjectName
, Status
, Ccb
->Entry
);
659 if (NT_SUCCESS(Status
))
661 switch (FileInformationClass
)
663 case FileNameInformation
:
664 Status
= CdfsGetNameInformation(&TempFcb
,
666 (PFILE_NAMES_INFORMATION
)Buffer
,
670 case FileDirectoryInformation
:
671 Status
= CdfsGetDirectoryInformation(&TempFcb
,
673 (PFILE_DIRECTORY_INFORMATION
)Buffer
,
677 case FileFullDirectoryInformation
:
678 Status
= CdfsGetFullDirectoryInformation(&TempFcb
,
680 (PFILE_FULL_DIR_INFORMATION
)Buffer
,
684 case FileBothDirectoryInformation
:
685 Status
= CdfsGetBothDirectoryInformation(&TempFcb
,
687 (PFILE_BOTH_DIR_INFORMATION
)Buffer
,
692 Status
= STATUS_INVALID_INFO_CLASS
;
695 if (Status
== STATUS_BUFFER_OVERFLOW
)
699 Buffer0
->NextEntryOffset
= 0;
708 Buffer0
->NextEntryOffset
= 0;
713 Status
= STATUS_NO_SUCH_FILE
;
717 Status
= STATUS_NO_MORE_FILES
;
722 Buffer0
= (PFILE_NAMES_INFORMATION
)Buffer
;
723 Buffer0
->FileIndex
= FileIndex
++;
726 if (Stack
->Flags
& SL_RETURN_SINGLE_ENTRY
)
730 BufferLength
-= Buffer0
->NextEntryOffset
;
731 Buffer
+= Buffer0
->NextEntryOffset
;
736 Buffer0
->NextEntryOffset
= 0;
741 Status
= STATUS_SUCCESS
;
750 CdfsDirectoryControl(PDEVICE_OBJECT DeviceObject
,
753 PIO_STACK_LOCATION Stack
;
756 DPRINT("CdfsDirectoryControl() called\n");
757 FsRtlEnterFileSystem();
759 Stack
= IoGetCurrentIrpStackLocation(Irp
);
761 switch (Stack
->MinorFunction
)
763 case IRP_MN_QUERY_DIRECTORY
:
764 Status
= CdfsQueryDirectory(DeviceObject
,
768 case IRP_MN_NOTIFY_CHANGE_DIRECTORY
:
769 DPRINT1("IRP_MN_NOTIFY_CHANGE_DIRECTORY\n");
770 Status
= STATUS_NOT_IMPLEMENTED
;
774 DPRINT1("CDFS: MinorFunction %d\n", Stack
->MinorFunction
);
775 Status
= STATUS_INVALID_DEVICE_REQUEST
;
779 Irp
->IoStatus
.Status
= Status
;
780 Irp
->IoStatus
.Information
= 0;
782 IoCompleteRequest(Irp
, IO_NO_INCREMENT
);
783 FsRtlExitFileSystem();