]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Allow --force flag with --grow
authorNeil Brown <neilb@suse.de>
Tue, 14 Jun 2005 06:34:29 +0000 (06:34 +0000)
committerNeil Brown <neilb@suse.de>
Tue, 14 Jun 2005 06:34:29 +0000 (06:34 +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 56ff63b49fa42acd0f11fb05df7c9c591fb66b00..0e1c41a71c8ee7ea8f49c93d91e842aaf99cddec 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,6 +19,7 @@ Changes Prior to this 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 bc264b13f1caeec02e0f41268e87aa2670f10063..45c59b379d251fcb01a4e67469bdb172dc35fb3c 100644 (file)
--- a/mdadm.c
+++ b/mdadm.c
@@ -493,6 +493,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 */