]> 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)
commit9c2c45f192fb93e9aa4b1a6adcb6802ac7977baf
treeccad51f764c7d3a5e062b1a6e495a59406e7a488
parentfd30a1c96ef0a80f2ff125bd9db4bf7835f9eafb
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.037242 seconds and 5 git commands to generate.