summaryrefslogtreecommitdiffstats
path: root/Manage.c
diff options
context:
space:
mode:
authorLuca Berra <bluca@comedia.it>2006-10-16 15:26:53 +1000
committerNeil Brown <neilb@suse.de>2006-10-16 15:26:53 +1000
commit435d4ebb2e39fec062e201d287e8f73369291522 (patch)
treee545579e6e07580ada3237aef9e9bf72bce4dc25 /Manage.c
parentb39827de21032f5bda931242f232ec9c3cb7da98 (diff)
downloadmdadm-435d4ebb2e39fec062e201d287e8f73369291522.tar.gz
mdadm-435d4ebb2e39fec062e201d287e8f73369291522.tar.xz
mdadm-435d4ebb2e39fec062e201d287e8f73369291522.zip
Mdassemble improvements
From: Luca Berra <bluca@comedia.it> - Fix a bug where mdassemble didn't close a filedescriptor and so couldn't assembele stacked arrays. - Allow mdassemble, when run a second time, to mark all arrays as writable. This is useful if they are started read-only as is best at boot-time.
Diffstat (limited to 'Manage.c')
-rw-r--r--Manage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Manage.c b/Manage.c
index aea21e6..0378b6e 100644
--- a/Manage.c
+++ b/Manage.c
@@ -72,6 +72,8 @@ int Manage_ro(char *devname, int fd, int readonly)
return 0;
}
+#ifndef MDASSEMBLE
+
int Manage_runstop(char *devname, int fd, int runstop, int quiet)
{
/* Run or stop the array. array must already be configured
@@ -394,3 +396,4 @@ int Manage_subdevs(char *devname, int fd,
return 0;
}
+#endif