]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm: allow build to use --size
authorPaul Clements <paul.clements@steeleye.com>
Wed, 11 Feb 2009 18:49:26 +0000 (13:49 -0500)
committerNeilBrown <neilb@suse.de>
Tue, 21 Apr 2009 05:36:13 +0000 (15:36 +1000)
commit25affb56b921041794abfb0774b615476d6ddb11
treef9ed6f0522ef59a5eda668d0e22e09442a417428
parent388953d27c20476f84ca71546d6fd357e0230e25
mdadm: allow build to use --size

This patch enables the --size parameter for build operations.

Without this, if you have a raid1, for instance, where the 2 disks are
not the exact same size, and you need to build the array but one of the
disks is not available right at the moment (maybe it's USB and it's
unplugged, or maybe it's a network disk and it's unavailable), then you
have to play some weird games to get the array to size correctly (that
is, to the size of the smaller of the two components or less).

There may be other uses for this too...

--
Paul

Signed-off-by: NeilBrown <neilb@suse.de>
Build.c
mdadm.c
mdadm.h