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

Function Ext2InsertMountPoint

Ext2Mgr/enumDisk.cpp:4807–4838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4805}
4806
4807BOOL
4808Ext2InsertMountPoint(
4809 CHAR * volume,
4810 UCHAR drvChar,
4811 BOOL bGlobal
4812 )
4813{
4814 CHAR volumeName[MAX_PATH];
4815
4816 CHAR dosPath[] = "A:\0";
4817 CHAR drvPath[] = "A:\\\0";
4818 BOOL rc = FALSE;
4819
4820 dosPath[0] = drvPath[0] = drvChar & 0x7F;
4821 rc = Ext2DefineDosDevice(DDD_RAW_TARGET_PATH,
4822 dosPath, volume);
4823
4824 if (rc && bGlobal) {
4825 rc = GetVolumeNameForVolumeMountPoint (
4826 drvPath, volumeName, MAX_PATH);
4827
4828 Ext2DefineDosDevice (
4829 DDD_RAW_TARGET_PATH|
4830 DDD_REMOVE_DEFINITION,
4831 dosPath, volume);
4832 if (rc) {
4833 rc = SetVolumeMountPoint(drvPath, volumeName);
4834 }
4835 }
4836
4837 return rc;
4838}
4839
4840VOID
4841Ext2RemoveMountPoint(

Callers 1

Ext2RefreshVolumePointFunction · 0.85

Calls 1

Ext2DefineDosDeviceFunction · 0.85

Tested by

no test coverage detected