system/vold
Révision | 8b61710ae721a121cfc8ea6cc5662c4330f95d10 (tree) |
---|---|
l'heure | 2020-12-17 22:00:54 |
Auteur | youling257 <youling257@gmai...> |
Commiter | Liu Xiaoxu |
vold3: fix SDCARD=xxx function for nvme
@@ -285,6 +285,10 @@ static int process_config(VolumeManager *vm, bool* has_adoptable, bool* has_quot | ||
285 | 285 | // exclude the last 'p' |
286 | 286 | sdcard = sdcard.substr(0, pos - 1); |
287 | 287 | } |
288 | + if (sdcard.find("nvme") != std::string::npos) { | |
289 | + // exclude the last 'p' | |
290 | + sdcard = sdcard.substr(0, pos - 1); | |
291 | + } | |
288 | 292 | } |
289 | 293 | } |
290 | 294 | vm->addDiskSource(std::shared_ptr<VolumeManager::DiskSource>( |