diff options
author | Doug Ledford <dledford@redhat.com> | 2010-04-13 22:18:37 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2010-04-13 22:18:37 -0400 |
commit | b3346c1c01e4620b82044e6033db89505a0ef785 (patch) | |
tree | 8cde9eb3a03ae0b13d2642048ff59beff11b924a | |
parent | d42cd068a62d46aea4e785c93a6fe1fcbb4e7130 (diff) | |
download | mdadm-b3346c1c01e4620b82044e6033db89505a0ef785.tar.gz mdadm-b3346c1c01e4620b82044e6033db89505a0ef785.tar.xz mdadm-b3346c1c01e4620b82044e6033db89505a0ef785.zip |
Add flag and help entry for new option to signal we should take a drive
for automatic hot spare/rebuild use.
Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r-- | ReadMe.c | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -86,11 +86,12 @@ char Version[] = Name " - v3.1.2-dledford - 30th March 2010\n"; * At the time if writing, there is only minimal support. */ -char short_options[]="-ABCDEFGIQhVXWZ:vqbc:i:l:p:m:n:x:u:c:d:z:U:N:sarfRSow1tye:"; +char short_options[]= + "-ABCDEFGIQhVXWZ:vqbc:i:l:p:m:n:x:u:c:d:z:U:N:sarfRSow1tyge:"; char short_bitmap_options[]= - "-ABCDEFGIQhVXWZ:vqb:c:i:l:p:m:n:x:u:c:d:z:U:N:sarfRSow1tye:"; + "-ABCDEFGIQhVXWZ:vqb:c:i:l:p:m:n:x:u:c:d:z:U:N:sarfRSow1tyge:"; char short_bitmap_auto_options[]= - "-ABCDEFGIQhVXWZ:vqb:c:i:l:p:m:n:x:u:c:d:z:U:N:sa:rfRSow1tye:"; + "-ABCDEFGIQhVXWZ:vqb:c:i:l:p:m:n:x:u:c:d:z:U:N:sa:rfRSow1tyge:"; struct option long_options[] = { {"manage", 0, 0, '@'}, @@ -189,6 +190,7 @@ struct option long_options[] = { /* For Incremental */ {"rebuild-map", 0, 0, 'r'}, + {"grab", 0, 0, 'g'}, /* grab devices for hot spare use */ {0, 0, 0, 0} }; @@ -535,7 +537,7 @@ char Help_grow[] = ; char Help_incr[] = -"Usage: mdadm --incremental [-Rqrsf] device\n" +"Usage: mdadm --incremental [-Rqrsgf] device\n" "\n" "This usage allows for incremental assembly of md arrays. Devices can be\n" "added one at a time as they are discovered. Once an array has all expected\n" @@ -553,6 +555,9 @@ char Help_incr[] = " : partial arrays.\n" " --scan -s : Use with -R to start any arrays that have the minimal\n" " : required number of devices, but are not yet started.\n" +" --grab -g : Check if the device belongs to a path we own via\n" +" : any DOMAIN entry lines in mdadm.conf, and if so,\n" +" : take it for the purpose listed in said DOMAIN line.\n" " --fail -f : First fail (if needed) and then remove device from\n" " : any array that it is a member of.\n" ; |