]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Create.c
Create: fix size after setting default chunk
authorCzarnowska, Anna <anna.czarnowska@intel.com>
Mon, 4 Apr 2011 23:29:45 +0000 (09:29 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 4 Apr 2011 23:29:45 +0000 (09:29 +1000)
commit64385908bbec982d4d6cddd313c7594499087126
tree6de61f329e412db818783d2194a1920f4255abb2
parentdb975ab5c3d68daef5e739c9263bb6c4e5b178b8
Create: fix size after setting default chunk

When -e option is given then the first validate_geometry
sets default chunk. Size must be rounded there and do_default_chunk
needs to be set to 0 so that we don't repeat the message below.

If we start without st then what we find on the the first disk determines
the st and sets chunk. So after running
validate_geometry on the first disk we need to fix the size too.
At this point chunk should always be set but it is safer to keep the check.

Signed-off-by: Anna Czarnowska <anna.czarnowska@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Create.c