diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2019-03-15 09:02:18 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-03-15 09:02:18 +0000 |
commit | 4cd09140489d8ba4905c07e6541e5f2ae47df5ff (patch) | |
tree | 88af77a27e6d22d4ee3e14de129ad9c221adebda /fs_mgr | |
parent | da1251d6a53994e4076a37487d0d0f08093b2324 (diff) | |
parent | 192fdeb4954a177388ef6a6d0fe3794dd054df3b (diff) | |
download | system_core-4cd09140489d8ba4905c07e6541e5f2ae47df5ff.tar.gz system_core-4cd09140489d8ba4905c07e6541e5f2ae47df5ff.tar.bz2 system_core-4cd09140489d8ba4905c07e6541e5f2ae47df5ff.zip |
Merge changes from topic "apex_earlymount_no_bionic_bindmount"
* changes:
/bionic path is gone
Revert "Handle adb sync with Bionic under /bionic"
Don't bind-mount bionic files
Diffstat (limited to 'fs_mgr')
-rw-r--r-- | fs_mgr/fs_mgr_remount.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/fs_mgr/fs_mgr_remount.cpp b/fs_mgr/fs_mgr_remount.cpp index 5c4008cce..e2a4d1607 100644 --- a/fs_mgr/fs_mgr_remount.cpp +++ b/fs_mgr/fs_mgr_remount.cpp @@ -80,29 +80,6 @@ const android::fs_mgr::FstabEntry* is_wrapped(const android::fs_mgr::Fstab& over return &(*it); } -void try_unmount_bionic(android::fs_mgr::Fstab* mounts) { - static constexpr const char* kBionic = "/bionic"; - - auto entry = GetEntryForMountPoint(mounts, kBionic); - if (!entry) return; - - struct statfs buf; - if (::statfs(kBionic, &buf) == -1) { - PLOG(ERROR) << "statfs of " << kBionic; - return; - } - if (buf.f_flags & MS_RDONLY) { - // /bionic is on a read-only partition; can happen for - // non-system-as-root-devices. Don' try to unmount. - return; - } - fs_mgr_set_blk_ro(entry->blk_device, false); - if (::mount(entry->blk_device.c_str(), entry->mount_point.c_str(), entry->fs_type.c_str(), - MS_REMOUNT, nullptr) == -1) { - PLOG(ERROR) << "remount of " << kBionic; - } -} - void MyLogger(android::base::LogId id, android::base::LogSeverity severity, const char* tag, const char* file, unsigned int line, const char* message) { static const char log_characters[] = "VD\0WEFF"; @@ -395,7 +372,5 @@ int main(int argc, char* argv[]) { if (reboot_later) reboot(false); - try_unmount_bionic(&mounts); - return retval; } |