mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[NTFS]
NTFS doesn't need CdfsGetEntryName() svn path=/trunk/; revision=67614
This commit is contained in:
parent
2c93627ac0
commit
8426d2f96e
1 changed files with 0 additions and 90 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue