[lxc-devel] [lxc/lxc] d65959: Support large bdevs on 32-bit; MB units by default...

GitHub noreply at github.com
Wed Jan 8 17:32:01 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: d659597e03725411c366c42dc02c64c0c35a167a
      https://github.com/lxc/lxc/commit/d659597e03725411c366c42dc02c64c0c35a167a
  Author: Stephen Ayotte <stephen.ayotte at gmail.com>
  Date:   2014-01-08 (Wed, 08 Jan 2014)

  Changed paths:
    M src/lxc/arguments.h
    M src/lxc/bdev.c
    M src/lxc/bdev.h
    M src/lxc/lxc_clone.c
    M src/lxc/lxc_create.c
    M src/lxc/lxccontainer.c
    M src/lxc/lxccontainer.h

  Log Message:
  -----------
  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 at gmail.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>




More information about the lxc-devel mailing list