Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

system-vold: Commit

system/vold


Commit MetaInfo

Révision8b61710ae721a121cfc8ea6cc5662c4330f95d10 (tree)
l'heure2020-12-17 22:00:54
Auteuryouling257 <youling257@gmai...>
CommiterLiu Xiaoxu

Message de Log

vold3: fix SDCARD=xxx function for nvme

Change Summary

Modification

--- a/main.cpp
+++ b/main.cpp
@@ -285,6 +285,10 @@ static int process_config(VolumeManager *vm, bool* has_adoptable, bool* has_quot
285285 // exclude the last 'p'
286286 sdcard = sdcard.substr(0, pos - 1);
287287 }
288+ if (sdcard.find("nvme") != std::string::npos) {
289+ // exclude the last 'p'
290+ sdcard = sdcard.substr(0, pos - 1);
291+ }
288292 }
289293 }
290294 vm->addDiskSource(std::shared_ptr<VolumeManager::DiskSource>(
Afficher sur ancien navigateur de dépôt.