summaryrefslogtreecommitdiff
path: root/mdadm.c
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2012-01-25 15:18:04 +0100
committerNeilBrown <neilb@suse.de>2012-01-30 12:11:29 +1100
commita0963a86e12a55d501f421048bd7c09cf4d78b93 (patch)
tree6765c15881d7fb365b46c03c83f69bf2411208f9 /mdadm.c
parentda827518c1f062e7d49433691d33e103525f9d6a (diff)
downloadmdadm-a0963a86e12a55d501f421048bd7c09cf4d78b93.tar.gz
Spawn mdmon with --offroot if mdadm was launched with --offroot
Acked-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdadm.c b/mdadm.c
index 78f28d5..1efa3e8 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -181,6 +181,7 @@ int main(int argc, char *argv[])
*/
case OffRootOpt:
argv[0][0] = '@';
+ __offroot = 1;
continue;
case ':':