mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 13:38:19 +00:00
[NTFS]
* Properly mark some unreferenced parameters as such. svn path=/trunk/; revision=59569
This commit is contained in:
parent
9686d19642
commit
ecb51289b4
7 changed files with 39 additions and 0 deletions
|
@ -40,6 +40,8 @@ NTAPI
|
|||
NtfsAcqLazyWrite(PVOID Context,
|
||||
BOOLEAN Wait)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(Context);
|
||||
UNREFERENCED_PARAMETER(Wait);
|
||||
UNIMPLEMENTED;
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -49,6 +51,7 @@ VOID
|
|||
NTAPI
|
||||
NtfsRelLazyWrite(PVOID Context)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(Context);
|
||||
UNIMPLEMENTED;
|
||||
}
|
||||
|
||||
|
@ -58,6 +61,8 @@ NTAPI
|
|||
NtfsAcqReadAhead(PVOID Context,
|
||||
BOOLEAN Wait)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(Context);
|
||||
UNREFERENCED_PARAMETER(Wait);
|
||||
UNIMPLEMENTED;
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -67,6 +72,7 @@ VOID
|
|||
NTAPI
|
||||
NtfsRelReadAhead(PVOID Context)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(Context);
|
||||
UNIMPLEMENTED;
|
||||
}
|
||||
|
||||
|
|
|
@ -124,6 +124,7 @@ NtfsDestroyFCB(PNTFS_FCB Fcb)
|
|||
BOOLEAN
|
||||
NtfsFCBIsDirectory(PNTFS_FCB Fcb)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(Fcb);
|
||||
// return(Fcb->entry.Attrib & FILE_ATTRIBUTE_DIRECTORY);
|
||||
// return(Fcb->Entry.FileFlags & 0x02);
|
||||
return TRUE;
|
||||
|
@ -555,6 +556,11 @@ NtfsDirFindFile(PNTFS_VCB Vcb,
|
|||
}
|
||||
|
||||
CcUnpinData(Context);
|
||||
#else
|
||||
UNREFERENCED_PARAMETER(Vcb);
|
||||
UNREFERENCED_PARAMETER(DirectoryFcb);
|
||||
UNREFERENCED_PARAMETER(FileToFind);
|
||||
UNREFERENCED_PARAMETER(FoundFCB);
|
||||
#endif
|
||||
return STATUS_OBJECT_NAME_NOT_FOUND;
|
||||
}
|
||||
|
|
|
@ -45,6 +45,8 @@ NtfsGetStandardInformation(PNTFS_FCB Fcb,
|
|||
PFILE_STANDARD_INFORMATION StandardInfo,
|
||||
PULONG BufferLength)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(DeviceObject);
|
||||
|
||||
DPRINT("NtfsGetStandardInformation() called\n");
|
||||
|
||||
if (*BufferLength < sizeof(FILE_STANDARD_INFORMATION))
|
||||
|
@ -75,6 +77,8 @@ NtfsGetPositionInformation(PFILE_OBJECT FileObject,
|
|||
PFILE_POSITION_INFORMATION PositionInfo,
|
||||
PULONG BufferLength)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(FileObject);
|
||||
|
||||
DPRINT("NtfsGetPositionInformation() called\n");
|
||||
|
||||
if (*BufferLength < sizeof(FILE_POSITION_INFORMATION))
|
||||
|
@ -117,6 +121,11 @@ NtfsGetBasicInformation(PFILE_OBJECT FileObject,
|
|||
|
||||
CdfsFileFlagsToAttributes(Fcb,
|
||||
&BasicInfo->FileAttributes);
|
||||
#else
|
||||
UNREFERENCED_PARAMETER(FileObject);
|
||||
UNREFERENCED_PARAMETER(Fcb);
|
||||
UNREFERENCED_PARAMETER(DeviceObject);
|
||||
UNREFERENCED_PARAMETER(BasicInfo);
|
||||
#endif
|
||||
|
||||
*BufferLength -= sizeof(FILE_BASIC_INFORMATION);
|
||||
|
@ -138,6 +147,9 @@ NtfsGetNameInformation(PFILE_OBJECT FileObject,
|
|||
{
|
||||
ULONG NameLength;
|
||||
|
||||
UNREFERENCED_PARAMETER(FileObject);
|
||||
UNREFERENCED_PARAMETER(DeviceObject);
|
||||
|
||||
DPRINT("NtfsGetNameInformation() called\n");
|
||||
|
||||
ASSERT(NameInfo != NULL);
|
||||
|
|
|
@ -485,6 +485,8 @@ NTSTATUS
|
|||
NtfsVerifyVolume(PDEVICE_OBJECT DeviceObject,
|
||||
PIRP Irp)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(DeviceObject);
|
||||
UNREFERENCED_PARAMETER(Irp);
|
||||
DPRINT1("NtfsVerifyVolume() called\n");
|
||||
return STATUS_WRONG_VOLUME;
|
||||
}
|
||||
|
|
|
@ -126,6 +126,8 @@ FindAttribute(PFILE_RECORD_HEADER FileRecord,
|
|||
{
|
||||
PATTRIBUTE Attribute;
|
||||
|
||||
UNREFERENCED_PARAMETER(name);
|
||||
|
||||
Attribute = (PATTRIBUTE)((ULONG_PTR)FileRecord + FileRecord->AttributeOffset);
|
||||
while (Attribute < (PATTRIBUTE)((ULONG_PTR)FileRecord + FileRecord->BytesInUse) &&
|
||||
Attribute->AttributeType != (ATTRIBUTE_TYPE)-1)
|
||||
|
@ -173,6 +175,9 @@ ReadAttribute(PATTRIBUTE attr,
|
|||
PDEVICE_OBJECT DeviceObject)
|
||||
{
|
||||
PNONRESIDENT_ATTRIBUTE NresAttr = (PNONRESIDENT_ATTRIBUTE)attr;
|
||||
|
||||
UNREFERENCED_PARAMETER(DeviceObject);
|
||||
|
||||
if (attr->Nonresident == FALSE)
|
||||
{
|
||||
memcpy(buffer,
|
||||
|
|
|
@ -123,6 +123,12 @@ NtfsReadFile(PDEVICE_EXTENSION DeviceExt,
|
|||
|
||||
return(Status);
|
||||
#else
|
||||
UNREFERENCED_PARAMETER(DeviceExt);
|
||||
UNREFERENCED_PARAMETER(FileObject);
|
||||
UNREFERENCED_PARAMETER(Buffer);
|
||||
UNREFERENCED_PARAMETER(Length);
|
||||
UNREFERENCED_PARAMETER(ReadOffset);
|
||||
UNREFERENCED_PARAMETER(IrpFlags);
|
||||
*LengthRead = 0;
|
||||
return STATUS_END_OF_FILE;
|
||||
#endif
|
||||
|
|
|
@ -84,6 +84,8 @@ NtfsGetFsAttributeInformation(PDEVICE_EXTENSION DeviceExt,
|
|||
PFILE_FS_ATTRIBUTE_INFORMATION FsAttributeInfo,
|
||||
PULONG BufferLength)
|
||||
{
|
||||
UNREFERENCED_PARAMETER(DeviceExt);
|
||||
|
||||
DPRINT("NtfsGetFsAttributeInformation()\n");
|
||||
DPRINT("FsAttributeInfo = %p\n", FsAttributeInfo);
|
||||
DPRINT("BufferLength %lu\n", *BufferLength);
|
||||
|
|
Loading…
Reference in a new issue