bmaptool: distinguish between block devices and regular file
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Thu, 8 Nov 2012 15:26:04 +0000 (17:26 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Thu, 8 Nov 2012 17:01:22 +0000 (19:01 +0200)
commita09e35fbd4e3b45b220dca8331d576c2635d8095
tree7c4e89898654fb2c107cfb08f01e31c4f7c4efda
parent985215fc7fa444592ff6b56c39443fd5f2eef128
bmaptool: distinguish between block devices and regular file

Teach bmaptool to distinguish between block devices and regular files and
use the specialized version of 'BmapCopy' in case of block devices. The
specialized version will be implemented in the 'BmapBdevCopy' class, which
is just a copy of the base class so far.

Change-Id: I444f121893dfd5d637a08300191c7a5dbc082d4e
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
bmaptool
bmaptools/BmapCopy.py