]> git.ipfire.org Git - thirdparty/mdadm.git/commit
super0: allow creation of array on 2TB+ devices.
authorNeilBrown <neilb@suse.de>
Mon, 22 Oct 2012 21:48:00 +0000 (08:48 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 22 Oct 2012 21:48:00 +0000 (08:48 +1100)
commit63ebe78faefc47ce8612b619bb25b3438cf8378b
treeda04a543f172721b198bfb2c30a623a4a9770954
parent79f9f56da68cb99ee3b11a6ec7cbed23572f57cd
super0: allow creation of array on 2TB+ devices.

As 'info->size' is signed, it cannot even hold values above
2TB.
But it isn't used much.  sb->size is the important value and it
is unsigned.
So use that to check for overflow of size.

Reported-by: Eugene San <eugenesan@gmail.com>
super0.c