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

Method OnSdevQuickMount

Ext2Mgr/Properties.cpp:138–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void CProperties::OnSdevQuickMount()
139{
140 PCHAR dev = NULL;
141
142 if (m_cdrom) {
143 dev = m_cdrom->Name;
144 }
145
146 if (m_part) {
147 if (m_part->Volume)
148 dev = m_part->Volume->Name;
149 else
150 dev = m_part->Name;
151 }
152
153 if (m_volume) {
154 dev = m_volume->Name;
155 }
156
157 if (!dev) {
158 return;
159 }
160
161 if (Ext2MountVolume(dev)) {
162 CExt2MgrDlg * Parent = (CExt2MgrDlg *)GetParent();
163 if (m_cdrom) {
164 Parent->UpdateCdrom(m_cdrom);
165 } else if (m_volume) {
166 Parent->UpdateVolume(m_volume);
167 } else if (m_part) {
168 Parent->UpdateVolume(m_part->Volume);
169 }
170 }
171
172 OnOK();
173}
174
175void CProperties::OnSdevExt2Info()
176{

Callers

nothing calls this directly

Calls 3

UpdateCdromMethod · 0.80
UpdateVolumeMethod · 0.80
Ext2MountVolumeFunction · 0.70

Tested by

no test coverage detected