]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdadm.h
Warn the user about too small array size
authorKrzysztof Wojcik <krzysztof.wojcik@intel.com>
Mon, 14 Mar 2011 07:21:21 +0000 (18:21 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 14 Mar 2011 07:21:21 +0000 (18:21 +1100)
commit53ed6ac36ef96e2327564b29ae06e3cc2820ba8f
treecef3bca28818cb4f08775c08900df1aa7e9d2a35
parent9c747fa0ff6971608b66b9cfc705c36e6d36ca51
Warn the user about too small array size

If single-disk RAID0 or RAID1 array is created, user may preserve data on
disk. If array given size covers all partitions on disk, all data will be
available on created array. If array size is too small (not covers
all partitions), data will be not accessible.
This patch introduces warning message during array creation if given size
is too small. User may interrupt creation process to avoid data loss.

Signed-off-by: Krzysztof Wojcik <krzysztof.wojcik@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Create.c
mdadm.h
util.c