Author: pschweitzer
Date: Sun May 10 10:02:53 2015
New Revision: 67614
URL:
http://svn.reactos.org/svn/reactos?rev=67614&view=rev
Log:
[NTFS]
NTFS doesn't need CdfsGetEntryName()
Modified:
trunk/reactos/drivers/filesystems/ntfs/dirctl.c
Modified: trunk/reactos/drivers/filesystems/ntfs/dirctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/d…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/dirctl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/dirctl.c [iso-8859-1] Sun May 10 10:02:53 2015
@@ -34,96 +34,6 @@
/* FUNCTIONS ****************************************************************/
-#if 0
-static NTSTATUS
-CdfsGetEntryName(PDEVICE_EXTENSION DeviceExt,
- PVOID *Context,
- PVOID *Block,
- PLARGE_INTEGER StreamOffset,
- ULONG DirLength,
- PVOID *Ptr,
- PWSTR Name,
- PULONG pIndex,
- PULONG pIndex2)
-/*
- * FUNCTION: Retrieves the file name, be it in short or long file name format
- */
-{
- PDIR_RECORD Record;
- NTSTATUS Status;
- ULONG Index = 0;
- ULONG Offset = 0;
- ULONG BlockOffset = 0;
-
- Record = (PDIR_RECORD)*Block;
- while(Index < *pIndex)
- {
- BlockOffset += Record->RecordLength;
- Offset += Record->RecordLength;
-
- Record = (PDIR_RECORD)(*Block + BlockOffset);
- if (BlockOffset >= BLOCKSIZE || Record->RecordLength == 0)
- {
- DPRINT("Map next sector\n");
- CcUnpinData(*Context);
- StreamOffset->QuadPart += BLOCKSIZE;
- Offset = ROUND_UP(Offset, BLOCKSIZE);
- BlockOffset = 0;
-
- if (!CcMapData(DeviceExt->StreamFileObject,
- StreamOffset,
- BLOCKSIZE, TRUE,
- Context, Block))
- {
- DPRINT("CcMapData() failed\n");
- return(STATUS_UNSUCCESSFUL);
- }
- Record = (PDIR_RECORD)(*Block + BlockOffset);
- }
-
- if (Offset >= DirLength)
- return(STATUS_NO_MORE_ENTRIES);
-
- Index++;
- }
-
- DPRINT("Index %lu RecordLength %lu Offset %lu\n",
- Index, Record->RecordLength, Offset);
-
- if (Record->FileIdLength == 1 && Record->FileId[0] == 0)
- {
- wcscpy(Name, L".");
- }
- else if (Record->FileIdLength == 1 && Record->FileId[0] == 1)
- {
- wcscpy(Name, L"..");
- }
- else
- {
- if (DeviceExt->CdInfo.JolietLevel == 0)
- {
- ULONG i;
-
- for (i = 0; i < Record->FileIdLength && Record->FileId[i] !=
';'; i++)
- Name[i] = (WCHAR)Record->FileId[i];
- Name[i] = 0;
- }
- else
- {
- CdfsSwapString(Name, Record->FileId, Record->FileIdLength);
- }
- }
-
- DPRINT("Name '%S'\n", Name);
-
- *Ptr = Record;
-
- *pIndex = Index;
-
- return(STATUS_SUCCESS);
-}
-#endif
-
static NTSTATUS
NtfsGetNameInformation(PDEVICE_EXTENSION DeviceExt,