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

Function Ext2IsPartitionExtent

Ext2Mgr/enumDisk.cpp:3256–3275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3254}
3255
3256BOOL
3257Ext2IsPartitionExtent(
3258 ULONG disk,
3259 PPARTITION_INFORMATION_EXT part,
3260 PVOLUME_DISK_EXTENTS extent
3261 )
3262{
3263 DWORD nExt = 0;
3264
3265 for (nExt = 0; nExt < extent->NumberOfDiskExtents; nExt++) {
3266 if ((extent->Extents[nExt].DiskNumber == disk) &&
3267 (extent->Extents[nExt].StartingOffset.QuadPart ==
3268 part->StartingOffset.QuadPart ) &&
3269 (extent->Extents[nExt].ExtentLength.QuadPart ==
3270 part->PartitionLength.QuadPart)) {
3271 return TRUE;
3272 }
3273 }
3274 return FALSE;
3275}
3276
3277/* should be called after volumes' initiaization */
3278BOOL

Callers 1

Ext2LoadDiskPartitionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected