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)
commit9e0b6b31c9bb5ce3ad72756c918f02e6e909c737
treed21f1ee1b153a6903bb2cd05e414cf87c5170f36
parent519d84fe21d48fe277ef5cc65d29839f86b4e1a0
discover/devmapper: Use explicit 64-bit types for sector counts

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>
discover/device-handler.h
discover/devmapper.c