From 18 Jan, 2021 0:00 UTC: All services will be temporary unavailable for maintenance

Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

system-vold: Commit

system/vold


Commit MetaInfo

Revision8b61710ae721a121cfc8ea6cc5662c4330f95d10 (tree)
Time2020-12-17 22:00:54
Authoryouling257 <youling257@gmai...>
CommiterLiu Xiaoxu

Log Message

vold3: fix SDCARD=xxx function for nvme

Change Summary

Incremental Difference

--- 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>(
Show on old repository browser