From 136754298b63928e3ab593c2489fcb6e17c1332e Mon Sep 17 00:00:00 2001 From: Nikos Skalkotos Date: Wed, 21 Mar 2012 20:32:50 +0200 Subject: [PATCH] Correct image size computation This commit fixes a bug where size method in DiskDevice returned the payload size of the device one byte shorter than it actually was. --- image_creator/disk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image_creator/disk.py b/image_creator/disk.py index b84de1a..7fc0cdf 100644 --- a/image_creator/disk.py +++ b/image_creator/disk.py @@ -300,6 +300,6 @@ class DiskDevice(object): dev = self.g.part_to_dev(self.root) last = self.g.part_list(dev)[-1] - return last['part_end'] + return last['part_end'] + 1 # vim: set sta sts=4 shiftwidth=4 sw=4 et ai : -- 1.7.10.4