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

Revisionaab541dc1f44a9869185b2cb2f5fd6e57749b802 (tree)
Time2020-12-17 23:02:28
Authoryouling257 <youling257@gmai...>
CommiterChih-Wei Huang

Log Message

vold3: fix SDCARD=xxx function for nvme

Change Summary

Incremental Difference

--- a/main.cpp
+++ b/main.cpp
@@ -288,6 +288,10 @@ static int process_config(VolumeManager* vm, bool* has_adoptable, bool* has_quot
288288 // exclude the last 'p'
289289 sdcard = sdcard.substr(0, pos - 1);
290290 }
291+ if (sdcard.find("nvme") != std::string::npos) {
292+ // exclude the last 'p'
293+ sdcard = sdcard.substr(0, pos - 1);
294+ }
291295 }
292296 }
293297 vm->addDiskSource(std::shared_ptr<VolumeManager::DiskSource>(
Show on old repository browser