From e50ac5f7771872331df70251d23d6bd8155da4a7 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Tue, 14 Aug 2012 11:34:34 -0700 Subject: [PATCH] Support shared-subtree and bind mount flags. Bug: 6925012 Change-Id: Id8d887d17c6b1b2f90cfd1a1de991ccaba730b7d --- fs_mgr/fs_mgr.c | 6 ++++++ init/builtins.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/fs_mgr/fs_mgr.c b/fs_mgr/fs_mgr.c index 60aed4237..538b5be22 100644 --- a/fs_mgr/fs_mgr.c +++ b/fs_mgr/fs_mgr.c @@ -58,6 +58,12 @@ static struct flag_list mount_flags[] = { { "ro", MS_RDONLY }, { "rw", 0 }, { "remount", MS_REMOUNT }, + { "bind", MS_BIND }, + { "rec", MS_REC }, + { "unbindable", MS_UNBINDABLE }, + { "private", MS_PRIVATE }, + { "slave", MS_SLAVE }, + { "shared", MS_SHARED }, { "defaults", 0 }, { 0, 0 }, }; diff --git a/init/builtins.c b/init/builtins.c index 5bda7a071..da41b8975 100644 --- a/init/builtins.c +++ b/init/builtins.c @@ -339,6 +339,12 @@ static struct { { "ro", MS_RDONLY }, { "rw", 0 }, { "remount", MS_REMOUNT }, + { "bind", MS_BIND }, + { "rec", MS_REC }, + { "unbindable", MS_UNBINDABLE }, + { "private", MS_PRIVATE }, + { "slave", MS_SLAVE }, + { "shared", MS_SHARED }, { "defaults", 0 }, { 0, 0 }, };