]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/lxccontainer.c
Support large bdevs on 32-bit; MB units by default.
authorStephen Ayotte <stephen.ayotte@gmail.com>
Thu, 2 Jan 2014 19:30:26 +0000 (14:30 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 8 Jan 2014 17:31:50 +0000 (12:31 -0500)
commitd659597e03725411c366c42dc02c64c0c35a167a
tree67e6b0505b906b8c9d022f5a256461103e4ac56d
parent6f63931122721208aa8e4fe11ef01543b4b3693b
Support large bdevs on 32-bit; MB units by default.

Change all instances of "unsigned long" where referring to a bdev size
to uint64_t; this fixes some overflows on 32-bit machines, where
"unsigned long" is uint32_t. Support all unit-sizes supported by LVM
except 's' and 'e' [bkmgt]. Print a warning and use default bdev-size if
invalid unit-size specified.

Signed-off-by: Stephen Ayotte <stephen.ayotte@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/arguments.h
src/lxc/bdev.c
src/lxc/bdev.h
src/lxc/lxc_clone.c
src/lxc/lxc_create.c
src/lxc/lxccontainer.c
src/lxc/lxccontainer.h