mirror of
https://github.com/bobranten/Ext4Fsd.git
synced 2025-10-30 05:18:31 -05:00
removed some comments that was not valid anymore
This commit is contained in:
@@ -24,10 +24,6 @@ Ext2AcquireForLazyWrite (
|
|||||||
IN PVOID Context,
|
IN PVOID Context,
|
||||||
IN BOOLEAN Wait)
|
IN BOOLEAN Wait)
|
||||||
{
|
{
|
||||||
//
|
|
||||||
// On a readonly filesystem this function still has to exist but it
|
|
||||||
// doesn't need to do anything.
|
|
||||||
|
|
||||||
PEXT2_FCB Fcb;
|
PEXT2_FCB Fcb;
|
||||||
|
|
||||||
Fcb = (PEXT2_FCB) Context;
|
Fcb = (PEXT2_FCB) Context;
|
||||||
@@ -54,9 +50,6 @@ Ext2AcquireForLazyWrite (
|
|||||||
VOID
|
VOID
|
||||||
Ext2ReleaseFromLazyWrite (IN PVOID Context)
|
Ext2ReleaseFromLazyWrite (IN PVOID Context)
|
||||||
{
|
{
|
||||||
//
|
|
||||||
// On a readonly filesystem this function still has to exist but it
|
|
||||||
// doesn't need to do anything.
|
|
||||||
PEXT2_FCB Fcb = (PEXT2_FCB) Context;
|
PEXT2_FCB Fcb = (PEXT2_FCB) Context;
|
||||||
|
|
||||||
ASSERT(Fcb != NULL);
|
ASSERT(Fcb != NULL);
|
||||||
|
|||||||
@@ -1142,44 +1142,6 @@ Ext2NotifyChangeDirectory (
|
|||||||
|
|
||||||
Status = STATUS_PENDING;
|
Status = STATUS_PENDING;
|
||||||
|
|
||||||
/*
|
|
||||||
Currently the driver is read-only but here is an example on how to use the
|
|
||||||
FsRtl-functions to report a change:
|
|
||||||
|
|
||||||
ANSI_STRING TestString;
|
|
||||||
USHORT FileNamePartLength;
|
|
||||||
|
|
||||||
RtlInitAnsiString(&TestString, "\\ntifs.h");
|
|
||||||
|
|
||||||
FileNamePartLength = 7;
|
|
||||||
|
|
||||||
FsRtlNotifyReportChange(
|
|
||||||
Vcb->NotifySync, // PNOTIFY_SYNC NotifySync
|
|
||||||
&Vcb->NotifyList, // PLIST_ENTRY NotifyList
|
|
||||||
&TestString, // PSTRING FullTargetName
|
|
||||||
&FileNamePartLength, // PUSHORT FileNamePartLength
|
|
||||||
FILE_NOTIFY_CHANGE_NAME // ULONG FilterMatch
|
|
||||||
);
|
|
||||||
|
|
||||||
or
|
|
||||||
|
|
||||||
ANSI_STRING TestString;
|
|
||||||
|
|
||||||
RtlInitAnsiString(&TestString, "\\ntifs.h");
|
|
||||||
|
|
||||||
FsRtlNotifyFullReportChange(
|
|
||||||
Vcb->NotifySync, // PNOTIFY_SYNC NotifySync
|
|
||||||
&Vcb->NotifyList, // PLIST_ENTRY NotifyList
|
|
||||||
&TestString, // PSTRING FullTargetName
|
|
||||||
1, // USHORT TargetNameOffset
|
|
||||||
NULL, // PSTRING StreamName OPTIONAL
|
|
||||||
NULL, // PSTRING NormalizedParentName OPTIONAL
|
|
||||||
FILE_NOTIFY_CHANGE_NAME, // ULONG FilterMatch
|
|
||||||
0, // ULONG Action
|
|
||||||
NULL // PVOID TargetContext
|
|
||||||
);
|
|
||||||
*/
|
|
||||||
|
|
||||||
} __finally {
|
} __finally {
|
||||||
|
|
||||||
if (bFcbAcquired) {
|
if (bFcbAcquired) {
|
||||||
@@ -1225,8 +1187,6 @@ Ext2NotifyReportChange (
|
|||||||
(ULONG) Filter,
|
(ULONG) Filter,
|
||||||
(ULONG) Action,
|
(ULONG) Action,
|
||||||
(PVOID) NULL );
|
(PVOID) NULL );
|
||||||
|
|
||||||
// ASSERT(KeGetCurrentIrql() < DISPATCH_LEVEL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -359,7 +359,6 @@ Ext2QueryFileInformation (IN PEXT2_IRP_CONTEXT IrpContext)
|
|||||||
// The "inode number"
|
// The "inode number"
|
||||||
FileInternalInformation->IndexNumber.QuadPart = (LONGLONG)Mcb->Inode.i_ino;
|
FileInternalInformation->IndexNumber.QuadPart = (LONGLONG)Mcb->Inode.i_ino;
|
||||||
|
|
||||||
// Romfs doesn't have any extended attributes
|
|
||||||
FileEaInformation->EaSize = 0;
|
FileEaInformation->EaSize = 0;
|
||||||
|
|
||||||
FilePositionInformation->CurrentByteOffset =
|
FilePositionInformation->CurrentByteOffset =
|
||||||
@@ -397,9 +396,6 @@ Ext2QueryFileInformation (IN PEXT2_IRP_CONTEXT IrpContext)
|
|||||||
case FileAlternateNameInformation:
|
case FileAlternateNameInformation:
|
||||||
{
|
{
|
||||||
// TODO: Handle FileAlternateNameInformation
|
// TODO: Handle FileAlternateNameInformation
|
||||||
|
|
||||||
// Here we would like to use RtlGenerate8dot3Name but I don't
|
|
||||||
// know how to use the argument PGENERATE_NAME_CONTEXT
|
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user