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

Function Ext2SetDefaultVolumeRegistryProperty

Ext2Mgr/enumDisk.cpp:2463–2490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2461}
2462
2463VOID
2464Ext2SetDefaultVolumeRegistryProperty(PEXT2_VOLUME_PROPERTY3 EVP)
2465{
2466 ULONG StartMode;
2467 BOOL AutoMount = 0;
2468
2469 if (Ext2IsNullUuid(&EVP->UUID[0])) {
2470 return;
2471 }
2472
2473 /* query global parameters */
2474 Ext2QueryGlobalProperty(
2475 &StartMode,
2476 (BOOL *)&EVP->bReadonly,
2477 (BOOL *)&EVP->bExt3Writable,
2478 (CHAR *)EVP->Codepage,
2479 (CHAR *)NULL,
2480 (CHAR *)NULL,
2481 (BOOL *)&AutoMount
2482 );
2483
2484 if (EVP->bExt3 && !EVP->bExt3Writable)
2485 EVP->bReadonly = TRUE;
2486
2487 EVP->DrvLetter = 0x80;
2488 EVP->Flags2 |= EXT2_VPROP3_AUTOMOUNT;
2489 Ext2StorePropertyinRegistry(EVP);
2490}
2491
2492BOOL
2493Ext2SetExt2Property (

Callers 2

Ext2MountingVolumesFunction · 0.85
AddMountPointMethod · 0.85

Calls 3

Ext2QueryGlobalPropertyFunction · 0.85
Ext2IsNullUuidFunction · 0.70

Tested by

no test coverage detected