MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / Ext2CheckExtent

Function Ext2CheckExtent

Ext4Fsd/memory.c:580–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578}
579
580VOID
581Ext2CheckExtent(
582 PLARGE_MCB Zone,
583 LONGLONG Vbn,
584 LONGLONG Lbn,
585 LONGLONG Length,
586 BOOLEAN bAdded
587)
588{
589#if EXT2_DEBUG
590 LONGLONG DirtyLbn;
591 LONGLONG DirtyLen;
592 LONGLONG RunStart;
593 LONGLONG RunLength;
594 ULONG Index;
595 BOOLEAN bFound = FALSE;
596
597 bFound = FsRtlLookupLargeMcbEntry(
598 Zone,
599 Vbn,
600 &DirtyLbn,
601 &DirtyLen,
602 &RunStart,
603 &RunLength,
604 &Index );
605
606 if (!bAdded && (!bFound || DirtyLbn == -1)) {
607 return;
608 }
609
610 if ( !bFound || (DirtyLbn == -1) ||
611 (DirtyLbn != Lbn) ||
612 (DirtyLen < Length)) {
613
614 DbgBreak();
615
616 for (Index = 0; TRUE; Index++) {
617
618 if (!FsRtlGetNextLargeMcbEntry(
619 Zone,
620 Index,
621 &Vbn,
622 &Lbn,
623 &Length)) {
624 break;
625 }
626
627 DEBUG(DL_EXT, ("Index = %xh Vbn = %I64xh Lbn = %I64xh Len = %I64xh\n",
628 Index, Vbn, Lbn, Length ));
629 }
630 }
631#endif
632}
633
634VOID
635Ext2ClearAllExtents(PLARGE_MCB Zone)

Callers 6

Ext2AddVcbExtentFunction · 0.85
Ext2RemoveVcbExtentFunction · 0.85
Ext2AddMcbExtentFunction · 0.85
Ext2RemoveMcbExtentFunction · 0.85
Ext2AddMcbMetaExtsFunction · 0.85
Ext2RemoveMcbMetaExtsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected