リビジョン | aab541dc1f44a9869185b2cb2f5fd6e57749b802 (tree) |
---|---|
日時 | 2020-12-17 23:02:28 |
作者 | youling257 <youling257@gmai...> |
コミッター | Chih-Wei Huang |
vold3: fix SDCARD=xxx function for nvme
@@ -288,6 +288,10 @@ static int process_config(VolumeManager* vm, bool* has_adoptable, bool* has_quot | ||
288 | 288 | // exclude the last 'p' |
289 | 289 | sdcard = sdcard.substr(0, pos - 1); |
290 | 290 | } |
291 | + if (sdcard.find("nvme") != std::string::npos) { | |
292 | + // exclude the last 'p' | |
293 | + sdcard = sdcard.substr(0, pos - 1); | |
294 | + } | |
291 | 295 | } |
292 | 296 | } |
293 | 297 | vm->addDiskSource(std::shared_ptr<VolumeManager::DiskSource>( |