]> sourceware.org Git - lvm2.git/commit
Use 64bit unsigned value for maximum stripe size test.
authorMilan Broz <mbroz@redhat.com>
Wed, 2 Mar 2011 16:56:06 +0000 (16:56 +0000)
committerMilan Broz <mbroz@redhat.com>
Wed, 2 Mar 2011 16:56:06 +0000 (16:56 +0000)
commit301c2b8822f212c2dba462dd7390bbab03ebc823
treeccad51f764c7d3a5e062b1a6e495a59406e7a488
parent0263cd7bbc18c3223d1d048c3dd1cb49b0c32797
Use 64bit unsigned value for maximum stripe size test.

While STRIPE_SIZE_LIMIT * 2 is basically UINT_MAX, 32bit integer
value can already overflow durin arg size parsing.

(This really happens in test where --stripesize 4294967291 is used,
in s390x uint overflow and this test is ineffective.)
WHATS_NEW
tools/lvresize.c
tools/toollib.c
This page took 0.033103 seconds and 5 git commands to generate.