]> git.ozlabs.org Git - petitboot/commitdiff
discover/devmapper: Use explicit 64-bit types for sector counts
authorJeremy Kerr <jk@ozlabs.org>
Wed, 30 Sep 2015 02:26:35 +0000 (10:26 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 30 Sep 2015 05:23:49 +0000 (13:23 +0800)
We currently have a bug where the return value from get_block_sectors
may overflow an unsigned int, so we create a snapshot that is too small.

This change uses uint64_t types for the sector counts.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

No differences found