diff options
author | Neil Brown <neilb@suse.de> | 2006-12-14 17:31:03 +1100 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-12-14 17:31:03 +1100 |
commit | bee8ec56f4d96a3ac7e6f6f256be6331dfafb076 (patch) | |
tree | 491133f49c5dffe386c619210206a7bf345cfbd5 /mdadm.c | |
parent | 199171a297a87d7696b6b8c07ee520363f4603c1 (diff) | |
download | mdadm-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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 */ |