Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

system-vold: Commit

system/vold


Commit MetaInfo

Revision1dc09b5d8f5f0a4b4ac72fb31b76ab61716f9e13 (tree)
Time2017-11-30 16:51:28
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Fix ext4/f2fs can't be mounted issue

Change Summary

Incremental Difference

--- a/Android.mk
+++ b/Android.mk
@@ -75,6 +75,7 @@ common_static_libraries := \
7575
7676 vold_conlyflags := -std=c11
7777 vold_cflags := -Werror -Wall -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter
78+vold_cflags += $(if $(LINEAGE_BUILD),-DLINEAGE_BUILD)
7879
7980 required_modules :=
8081 ifeq ($(TARGET_USERIMAGES_USE_EXT4), true)
--- a/fs/Ext4.cpp
+++ b/fs/Ext4.cpp
@@ -136,12 +136,14 @@ status_t Mount(const std::string& source, const std::string& target, bool ro,
136136
137137 std::string data(opts);
138138
139+#ifdef LINEAGE_BUILD
139140 if (portable) {
140141 if (!data.empty()) {
141142 data += ",";
142143 }
143144 data += "context=u:object_r:sdcard_posix:s0";
144145 }
146+#endif
145147 const char* c_source = source.c_str();
146148 const char* c_target = target.c_str();
147149 const char* c_data = data.c_str();
--- a/fs/F2fs.cpp
+++ b/fs/F2fs.cpp
@@ -53,12 +53,14 @@ status_t Mount(const std::string& source, const std::string& target, const std::
5353
5454 std::string data(opts);
5555
56+#ifdef LINEAGE_BUILD
5657 if (portable) {
5758 if (!data.empty()) {
5859 data += ",";
5960 }
6061 data += "context=u:object_r:sdcard_posix:s0";
6162 }
63+#endif
6264
6365 const char* c_source = source.c_str();
6466 const char* c_target = target.c_str();
Show on old repository browser