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

Revision5bfa444391de8f2fd69e6b41f95a97b0be920bbe (tree)
Time2020-12-17 21:50:27
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
@@ -289,6 +289,10 @@ static int process_config(VolumeManager *vm, bool* has_adoptable) {
289289 // exclude the last 'p'
290290 sdcard = sdcard.substr(0, pos - 1);
291291 }
292+ if (sdcard.find("nvme") != std::string::npos) {
293+ // exclude the last 'p'
294+ sdcard = sdcard.substr(0, pos - 1);
295+ }
292296 }
293297 }
294298 vm->addDiskSource(std::shared_ptr<VolumeManager::DiskSource>(
Show on old repository browser