summaryrefslogtreecommitdiffstats
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-12-14 17:31:03 +1100
committerNeil Brown <neilb@suse.de>2006-12-14 17:31:03 +1100
commitbee8ec56f4d96a3ac7e6f6f256be6331dfafb076 (patch)
tree491133f49c5dffe386c619210206a7bf345cfbd5 /mdadm.c
parent199171a297a87d7696b6b8c07ee520363f4603c1 (diff)
downloadmdadm-bee8ec56f4d96a3ac7e6f6f256be6331dfafb076.tar.gz
mdadm-bee8ec56f4d96a3ac7e6f6f256be6331dfafb076.tar.xz
mdadm-bee8ec56f4d96a3ac7e6f6f256be6331dfafb076.zip
Support --update=devicesize for cases where the underlying device can change size.
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mdadm.c b/mdadm.c
index 286df30..41360c4 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -582,6 +582,8 @@ int main(int argc, char *argv[])
continue;
if (strcmp(update, "homehost")==0)
continue;
+ if (strcmp(update, "devicesize")==0)
+ continue;
if (strcmp(update, "byteorder")==0) {
if (ss) {
fprintf(stderr, Name ": must not set metadata type with --update=byteorder.\n");
@@ -601,8 +603,8 @@ int main(int argc, char *argv[])
else
fprintf(stderr, Name ": '--update=%s' is invalid. ", update);
fprintf(stderr, "Valid --update options are:\n"
- " 'sparc2.2', 'super-minor', 'uuid', 'name', 'resync',\n"
- " 'summaries', 'homehost', 'byteorder'.\n");
+ " 'sparc2.2', 'super-minor', 'uuid', 'name', 'resync',\n"
+ " 'summaries', 'homehost', 'byteorder', 'devicesize'.\n");
exit(2);
case O(ASSEMBLE,NoDegraded): /* --no-degraded */