]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Allow --force flag with --grow
authorNeil Brown <neilb@suse.de>
Tue, 14 Jun 2005 00:14:32 +0000 (00:14 +0000)
committerNeil Brown <neilb@suse.de>
Tue, 14 Jun 2005 00:14:32 +0000 (00:14 +0000)
.. so that you can 'grow' a raid1 to only one device.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
ChangeLog
mdadm.c

index 95efebe8b1afe17f06bd1f9bcb96c5360b297774..55ab3553559550b330c76dc3dcfa31c3025f0577 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -20,6 +20,7 @@ Changes Prior to 1.12.0 release
        unless -v is given (-vv gives the old behaviour with -Dsv).
        This is because the device list can change and so is not a
        stable aspect of the array
+    -   Allow --force with --grow so '-Gfn1' works (on raid1)
        
 Changes Prior to 1.11.0 release
     -   Fix embarassing bug which causes --add to always fail.
diff --git a/mdadm.c b/mdadm.c
index 2ebc1e4cb05d071e7efac1582f63cd96fdcb4b83..1ac908b402431f83f28c40d6d913899fa86f146a 100644 (file)
--- a/mdadm.c
+++ b/mdadm.c
@@ -466,6 +466,7 @@ int main(int argc, char *argv[])
                        continue;
 
                case O(BUILD,'f'): /* force honouring '-n 1' */
+               case O(GROW,'f'): /* ditto */
                case O(CREATE,'f'): /* force honouring of device list */
                case O(ASSEMBLE,'f'): /* force assembly */
                case O(MISC,'f'): /* force zero */