BmapCopy: bugfix: handle unaligned files properly
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Mon, 26 Nov 2012 11:01:47 +0000 (13:01 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Mon, 26 Nov 2012 12:05:45 +0000 (14:05 +0200)
commit0e445d4596e450a62cd348ce470eb5d8a036a2f8
tree9a71c315f84ee2b5ab267a5fbaef861a3abca35b
parent7e23ef8b7f4b416a5a08d1bfa9f243cd296d4ee1
BmapCopy: bugfix: handle unaligned files properly

When the image size is not aligned to the block size, we made an aligned copy
anyway, which is wrong, because the copy has to have the same length as the
image. This patch fixes the issue.

Change-Id: I012496e315b47c1381715fdd1f8921d347213b29
bmaptools/BmapCopy.py