diff --git a/Ext4Fsd/cmcb.c b/Ext4Fsd/cmcb.c index 54d6cd2..8b09cb5 100644 --- a/Ext4Fsd/cmcb.c +++ b/Ext4Fsd/cmcb.c @@ -24,10 +24,6 @@ Ext2AcquireForLazyWrite ( IN PVOID Context, IN BOOLEAN Wait) { - // - // On a readonly filesystem this function still has to exist but it - // doesn't need to do anything. - PEXT2_FCB Fcb; Fcb = (PEXT2_FCB) Context; @@ -54,9 +50,6 @@ Ext2AcquireForLazyWrite ( VOID 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; ASSERT(Fcb != NULL); diff --git a/Ext4Fsd/dirctl.c b/Ext4Fsd/dirctl.c index 044c8db..78b8ab8 100644 --- a/Ext4Fsd/dirctl.c +++ b/Ext4Fsd/dirctl.c @@ -1142,44 +1142,6 @@ Ext2NotifyChangeDirectory ( 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 { if (bFcbAcquired) { @@ -1225,8 +1187,6 @@ Ext2NotifyReportChange ( (ULONG) Filter, (ULONG) Action, (PVOID) NULL ); - - // ASSERT(KeGetCurrentIrql() < DISPATCH_LEVEL); } diff --git a/Ext4Fsd/fileinfo.c b/Ext4Fsd/fileinfo.c index d2c6d06..546ded8 100644 --- a/Ext4Fsd/fileinfo.c +++ b/Ext4Fsd/fileinfo.c @@ -359,7 +359,6 @@ Ext2QueryFileInformation (IN PEXT2_IRP_CONTEXT IrpContext) // The "inode number" FileInternalInformation->IndexNumber.QuadPart = (LONGLONG)Mcb->Inode.i_ino; - // Romfs doesn't have any extended attributes FileEaInformation->EaSize = 0; FilePositionInformation->CurrentByteOffset = @@ -397,9 +396,6 @@ Ext2QueryFileInformation (IN PEXT2_IRP_CONTEXT IrpContext) case FileAlternateNameInformation: { // TODO: Handle FileAlternateNameInformation - - // Here we would like to use RtlGenerate8dot3Name but I don't - // know how to use the argument PGENERATE_NAME_CONTEXT } */