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

Function Ext2MountVolume

Ext2Mgr/enumDisk.cpp:1068–1086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1066
1067
1068CHAR Ext2MountVolume(CHAR *voldev)
1069{
1070 PEXT2_LETTER drvLetter;
1071 CHAR rc = 0;
1072
1073 /* query drive letter to check whether it's mounted */
1074 drvLetter = Ext2GetFirstUnusedDrvLetter();
1075 if (!drvLetter) {
1076 goto errorout;
1077 }
1078
1079 if (Ext2AssignDrvLetter(drvLetter, voldev, FALSE)) {
1080 rc = drvLetter->Letter;
1081 }
1082
1083errorout:
1084
1085 return rc;
1086}
1087
1088CHAR Ext2MountVolumeAs(CHAR *voldev, CHAR DrvLetter)
1089{

Callers 4

Ext2ProcessExt2PropertyFunction · 0.70
OnSdevQuickMountMethod · 0.70
OnDrvQuickMountMethod · 0.70
OnOKMethod · 0.70

Calls 2

Ext2AssignDrvLetterFunction · 0.70

Tested by

no test coverage detected