commit | 7a3c3d462ebd58bda0ceaba9c00c385d44c13d08 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Thu Oct 04 16:49:22 2012 -0700 |
committer | Jeff Sharkey <jsharkey@android.com> | Thu Oct 04 16:50:17 2012 -0700 |
tree | 10bd7aa77365e73dc176bf405ed6dc8128698c09 | |
parent | b77bc4696b19d9b1ef82810f8d5f671c963d1dc1 [diff] |
Unmount in-place instead of using MS_MOVE. To support multi-user emulated storage, we mount rootfs as MS_SHARED, which means we can't MS_MOVE existing mount points rooted in the shared subtree. Initial staging is still able to MS_MOVE, since it's rooted in a MS_PRIVATE tmpfs rooted at /mnt/secure. This change fixes unmounting by operating in-place instead of trying (and failing) to MS_MOVE back to staging. Bug: 7127564 Change-Id: I4783db4319b61c0915da39361cbc7e8f4943d094