Improve Magic Mount with proper precedence

This commit is contained in:
topjohnwu
2017-05-09 01:09:32 +08:00
parent 543ee79720
commit bb96477779
2 changed files with 107 additions and 90 deletions

View File

@@ -267,8 +267,11 @@ int mkdir_p(const char *pathname, mode_t mode) {
int bind_mount(const char *from, const char *to) {
int ret = xmount(from, to, NULL, MS_BIND, NULL);
#ifdef DEBUG
LOGD("bind_mount: %s -> %s\n", from, to);
#else
LOGI("bind_mount: %s\n", to);
#endif
return ret;
}