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

Function Ext2MountingVolumes

Ext2Mgr/enumDisk.cpp:3369–3392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3367}
3368
3369VOID
3370Ext2MountingVolumes()
3371{
3372 PEXT2_VOLUME volume = gVols;
3373 int j;
3374
3375 if (!Ext2IsServiceStarted()) {
3376 return;
3377 }
3378
3379 for (j=0; (ULONG)j < g_nVols; j++) {
3380 if ((volume->EVP.bExt2 || volume->EVP.bExt3) && !volume->bRecognized) {
3381 if (Ext2IsRemovable(volume) || (volume->DrvLetters != 0) || g_bAutoMount) {
3382 if (!Ext2CheckVolumeRegistryProperty(&volume->EVP)) {
3383 Ext2SetDefaultVolumeRegistryProperty(&volume->EVP);
3384 }
3385 Ext2NotifyVolumePoint(volume, 0);
3386 }
3387 }
3388
3389 volume = volume->Next;
3390 }
3391
3392}
3393
3394/*
3395 * Must initialize driver letter before loading volumes

Callers

nothing calls this directly

Calls 5

Ext2IsServiceStartedFunction · 0.85
Ext2IsRemovableFunction · 0.85
Ext2NotifyVolumePointFunction · 0.85

Tested by

no test coverage detected