1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg/units
Mike Snitzer 2470a5ed99 devmapper: use RAMInBytes() rather than FromHumanSize()
Device Mapper needs device sizes in binary (1024) multiples.  Otherwise
kernel checks can find that the specified thin-pool device sizes aren't
a multiple of the specified thin-pool blocksize.

The name for "RAMInBytes" is likely too narrow given the new consumers
but... Also add "tebibyte" support to RAMInBytes.

Docker-DCO-1.1-Signed-off-by: Mike Snitzer <snitzer@redhat.com> (github: snitm)
2014-06-24 12:10:14 -04:00
..
duration.go Move duration and size to units pkg 2014-05-12 17:05:07 -07:00
MAINTAINERS Move duration and size to units pkg 2014-05-12 17:05:07 -07:00
size.go devmapper: use RAMInBytes() rather than FromHumanSize() 2014-06-24 12:10:14 -04:00
size_test.go devmapper: use RAMInBytes() rather than FromHumanSize() 2014-06-24 12:10:14 -04:00