mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 09:46:18 +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,
|
NtfsAcqLazyWrite(PVOID Context,
|
||||||
BOOLEAN Wait)
|
BOOLEAN Wait)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(Context);
|
||||||
|
UNREFERENCED_PARAMETER(Wait);
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -49,6 +51,7 @@ VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
NtfsRelLazyWrite(PVOID Context)
|
NtfsRelLazyWrite(PVOID Context)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(Context);
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,6 +61,8 @@ NTAPI
|
||||||
NtfsAcqReadAhead(PVOID Context,
|
NtfsAcqReadAhead(PVOID Context,
|
||||||
BOOLEAN Wait)
|
BOOLEAN Wait)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(Context);
|
||||||
|
UNREFERENCED_PARAMETER(Wait);
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -67,6 +72,7 @@ VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
NtfsRelReadAhead(PVOID Context)
|
NtfsRelReadAhead(PVOID Context)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(Context);
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -124,6 +124,7 @@ NtfsDestroyFCB(PNTFS_FCB Fcb)
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NtfsFCBIsDirectory(PNTFS_FCB Fcb)
|
NtfsFCBIsDirectory(PNTFS_FCB Fcb)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(Fcb);
|
||||||
// return(Fcb->entry.Attrib & FILE_ATTRIBUTE_DIRECTORY);
|
// return(Fcb->entry.Attrib & FILE_ATTRIBUTE_DIRECTORY);
|
||||||
// return(Fcb->Entry.FileFlags & 0x02);
|
// return(Fcb->Entry.FileFlags & 0x02);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -555,6 +556,11 @@ NtfsDirFindFile(PNTFS_VCB Vcb,
|
||||||
}
|
}
|
||||||
|
|
||||||
CcUnpinData(Context);
|
CcUnpinData(Context);
|
||||||
|
#else
|
||||||
|
UNREFERENCED_PARAMETER(Vcb);
|
||||||
|
UNREFERENCED_PARAMETER(DirectoryFcb);
|
||||||
|
UNREFERENCED_PARAMETER(FileToFind);
|
||||||
|
UNREFERENCED_PARAMETER(FoundFCB);
|
||||||
#endif
|
#endif
|
||||||
return STATUS_OBJECT_NAME_NOT_FOUND;
|
return STATUS_OBJECT_NAME_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,6 +45,8 @@ NtfsGetStandardInformation(PNTFS_FCB Fcb,
|
||||||
PFILE_STANDARD_INFORMATION StandardInfo,
|
PFILE_STANDARD_INFORMATION StandardInfo,
|
||||||
PULONG BufferLength)
|
PULONG BufferLength)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(DeviceObject);
|
||||||
|
|
||||||
DPRINT("NtfsGetStandardInformation() called\n");
|
DPRINT("NtfsGetStandardInformation() called\n");
|
||||||
|
|
||||||
if (*BufferLength < sizeof(FILE_STANDARD_INFORMATION))
|
if (*BufferLength < sizeof(FILE_STANDARD_INFORMATION))
|
||||||
|
@ -75,6 +77,8 @@ NtfsGetPositionInformation(PFILE_OBJECT FileObject,
|
||||||
PFILE_POSITION_INFORMATION PositionInfo,
|
PFILE_POSITION_INFORMATION PositionInfo,
|
||||||
PULONG BufferLength)
|
PULONG BufferLength)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(FileObject);
|
||||||
|
|
||||||
DPRINT("NtfsGetPositionInformation() called\n");
|
DPRINT("NtfsGetPositionInformation() called\n");
|
||||||
|
|
||||||
if (*BufferLength < sizeof(FILE_POSITION_INFORMATION))
|
if (*BufferLength < sizeof(FILE_POSITION_INFORMATION))
|
||||||
|
@ -117,6 +121,11 @@ NtfsGetBasicInformation(PFILE_OBJECT FileObject,
|
||||||
|
|
||||||
CdfsFileFlagsToAttributes(Fcb,
|
CdfsFileFlagsToAttributes(Fcb,
|
||||||
&BasicInfo->FileAttributes);
|
&BasicInfo->FileAttributes);
|
||||||
|
#else
|
||||||
|
UNREFERENCED_PARAMETER(FileObject);
|
||||||
|
UNREFERENCED_PARAMETER(Fcb);
|
||||||
|
UNREFERENCED_PARAMETER(DeviceObject);
|
||||||
|
UNREFERENCED_PARAMETER(BasicInfo);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
*BufferLength -= sizeof(FILE_BASIC_INFORMATION);
|
*BufferLength -= sizeof(FILE_BASIC_INFORMATION);
|
||||||
|
@ -138,6 +147,9 @@ NtfsGetNameInformation(PFILE_OBJECT FileObject,
|
||||||
{
|
{
|
||||||
ULONG NameLength;
|
ULONG NameLength;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(FileObject);
|
||||||
|
UNREFERENCED_PARAMETER(DeviceObject);
|
||||||
|
|
||||||
DPRINT("NtfsGetNameInformation() called\n");
|
DPRINT("NtfsGetNameInformation() called\n");
|
||||||
|
|
||||||
ASSERT(NameInfo != NULL);
|
ASSERT(NameInfo != NULL);
|
||||||
|
|
|
@ -485,6 +485,8 @@ NTSTATUS
|
||||||
NtfsVerifyVolume(PDEVICE_OBJECT DeviceObject,
|
NtfsVerifyVolume(PDEVICE_OBJECT DeviceObject,
|
||||||
PIRP Irp)
|
PIRP Irp)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(DeviceObject);
|
||||||
|
UNREFERENCED_PARAMETER(Irp);
|
||||||
DPRINT1("NtfsVerifyVolume() called\n");
|
DPRINT1("NtfsVerifyVolume() called\n");
|
||||||
return STATUS_WRONG_VOLUME;
|
return STATUS_WRONG_VOLUME;
|
||||||
}
|
}
|
||||||
|
|
|
@ -126,6 +126,8 @@ FindAttribute(PFILE_RECORD_HEADER FileRecord,
|
||||||
{
|
{
|
||||||
PATTRIBUTE Attribute;
|
PATTRIBUTE Attribute;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(name);
|
||||||
|
|
||||||
Attribute = (PATTRIBUTE)((ULONG_PTR)FileRecord + FileRecord->AttributeOffset);
|
Attribute = (PATTRIBUTE)((ULONG_PTR)FileRecord + FileRecord->AttributeOffset);
|
||||||
while (Attribute < (PATTRIBUTE)((ULONG_PTR)FileRecord + FileRecord->BytesInUse) &&
|
while (Attribute < (PATTRIBUTE)((ULONG_PTR)FileRecord + FileRecord->BytesInUse) &&
|
||||||
Attribute->AttributeType != (ATTRIBUTE_TYPE)-1)
|
Attribute->AttributeType != (ATTRIBUTE_TYPE)-1)
|
||||||
|
@ -173,6 +175,9 @@ ReadAttribute(PATTRIBUTE attr,
|
||||||
PDEVICE_OBJECT DeviceObject)
|
PDEVICE_OBJECT DeviceObject)
|
||||||
{
|
{
|
||||||
PNONRESIDENT_ATTRIBUTE NresAttr = (PNONRESIDENT_ATTRIBUTE)attr;
|
PNONRESIDENT_ATTRIBUTE NresAttr = (PNONRESIDENT_ATTRIBUTE)attr;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(DeviceObject);
|
||||||
|
|
||||||
if (attr->Nonresident == FALSE)
|
if (attr->Nonresident == FALSE)
|
||||||
{
|
{
|
||||||
memcpy(buffer,
|
memcpy(buffer,
|
||||||
|
|
|
@ -123,6 +123,12 @@ NtfsReadFile(PDEVICE_EXTENSION DeviceExt,
|
||||||
|
|
||||||
return(Status);
|
return(Status);
|
||||||
#else
|
#else
|
||||||
|
UNREFERENCED_PARAMETER(DeviceExt);
|
||||||
|
UNREFERENCED_PARAMETER(FileObject);
|
||||||
|
UNREFERENCED_PARAMETER(Buffer);
|
||||||
|
UNREFERENCED_PARAMETER(Length);
|
||||||
|
UNREFERENCED_PARAMETER(ReadOffset);
|
||||||
|
UNREFERENCED_PARAMETER(IrpFlags);
|
||||||
*LengthRead = 0;
|
*LengthRead = 0;
|
||||||
return STATUS_END_OF_FILE;
|
return STATUS_END_OF_FILE;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -84,6 +84,8 @@ NtfsGetFsAttributeInformation(PDEVICE_EXTENSION DeviceExt,
|
||||||
PFILE_FS_ATTRIBUTE_INFORMATION FsAttributeInfo,
|
PFILE_FS_ATTRIBUTE_INFORMATION FsAttributeInfo,
|
||||||
PULONG BufferLength)
|
PULONG BufferLength)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(DeviceExt);
|
||||||
|
|
||||||
DPRINT("NtfsGetFsAttributeInformation()\n");
|
DPRINT("NtfsGetFsAttributeInformation()\n");
|
||||||
DPRINT("FsAttributeInfo = %p\n", FsAttributeInfo);
|
DPRINT("FsAttributeInfo = %p\n", FsAttributeInfo);
|
||||||
DPRINT("BufferLength %lu\n", *BufferLength);
|
DPRINT("BufferLength %lu\n", *BufferLength);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue