raw: use bmap creation code from bmap-tools
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 7 May 2013 06:42:12 +0000 (09:42 +0300)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 10 May 2013 07:05:08 +0000 (10:05 +0300)
commitf10c515a82f361a4178a3a33182a664dc9c0b766
treedb32e62e29eb81516c610f0367a409e4bbba20f6
parent2de2aa0181cf7ec69cbfc8fe62db5372deff0c8f
raw: use bmap creation code from bmap-tools

This patch copies the bmap creation code from the bmap-tools project to mic.
Hopefully, at some point we can just make mic package depend on bmap-tools and
directly invoke bmap creation functions from bmap-tools. However, mid
maintainers have issues with this at this point, so we just copy the code.

Unlike the old mic implementation which uses FIBMAP ioctl, bmap-tools use the
FIEMAP ioctl, which is better and also works on btrfs.

Change-Id: I8807ac32d3fcb31e9d410250348318fd04a63275
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
mic/imager/raw.py
mic/utils/BmapCreate.py [new file with mode: 0644]
mic/utils/Fiemap.py [new file with mode: 0644]