diff options
author | NeilBrown <neilb@suse.de> | 2009-07-13 15:00:02 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-07-13 15:00:02 +1000 |
commit | 84e11361aa37c92c3c016095e5db7f4fc434ac18 (patch) | |
tree | 784d588a80d609f857beef00107adda2cc7b10d8 /ReadMe.c | |
parent | e0d95aac9626badd1b849ce4f99f9c406d55beae (diff) | |
download | mdadm-84e11361aa37c92c3c016095e5db7f4fc434ac18.tar.gz mdadm-84e11361aa37c92c3c016095e5db7f4fc434ac18.tar.xz mdadm-84e11361aa37c92c3c016095e5db7f4fc434ac18.zip |
Grow: support --array-size changes
With 2.6.30 it is possible to tell the md driver to clip an array to a
size smaller than the real size of the array. This option gives
access to that feature. The size change does not persist
across restarts.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'ReadMe.c')
-rw-r--r-- | ReadMe.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -86,11 +86,11 @@ char Version[] = Name " - v3.0-rc1 - 11th May 2009\n"; * At the time if writing, there is only minimal support. */ -char short_options[]="-ABCDEFGIQhVXWvqbc:i:l:p:m:n:x:u:c:d:z:U:sarfRSow1tye:"; +char short_options[]="-ABCDEFGIQhVXWZvqbc:i:l:p:m:n:x:u:c:d:z:U:sarfRSow1tye:"; char short_bitmap_options[]= - "-ABCDEFGIQhVXWvqb:c:i:l:p:m:n:x:u:c:d:z:U:sarfRSow1tye:"; + "-ABCDEFGIQhVXWZvqb:c:i:l:p:m:n:x:u:c:d:z:U:sarfRSow1tye:"; char short_bitmap_auto_options[]= - "-ABCDEFGIQhVXWvqb:c:i:l:p:m:n:x:u:c:d:z:U:sa:rfRSow1tye:"; + "-ABCDEFGIQhVXWZvqb:c:i:l:p:m:n:x:u:c:d:z:U:sa:rfRSow1tye:"; struct option long_options[] = { {"manage", 0, 0, '@'}, @@ -182,6 +182,7 @@ struct option long_options[] = { {"syslog", 0, 0, 'y'}, /* For Grow */ {"backup-file", 1,0, BackupFile}, + {"array-size", 1, 0, 'Z'}, /* For Incremental */ {"rebuild-map", 0, 0, 'r'}, @@ -525,6 +526,8 @@ char Help_grow[] = " --backup-file= file : A file on a differt device to store data for a\n" " : short time while increasing raid-devices on a\n" " : RAID4/5/6 array. Not needed when a spare is present.\n" +" --array-size= -Z : Change visible size of array. This does not change\n" +" : any data on the device, and is not stable across restarts.\n" ; char Help_incr[] = |