Filemap: introduce a FilemapSeek class
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Sat, 18 Jan 2014 12:30:26 +0000 (14:30 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Mon, 20 Jan 2014 07:16:32 +0000 (09:16 +0200)
commit1e11220094f23d6e1f72c6c84fc5e004ab2d1666
tree82444a4f98e413e733f4ec219ad8151ef5688ba0
parent7dfe1d4a8c2fe500eb43664d4c09fd1e9da497ab
Filemap: introduce a FilemapSeek class

This patch introduce a so far dummy FilemapSeek class which sill be an
alternative to FilemapFiemap. It also introduces the 'Filemap' function which
automatically selects which class will be used for getting block map. The
FIEMAP method is preferred as it is supposedly faster (at least for large
enough files).

This patch also converts all places where we creant an instance of 'Fiemap'
class to use the 'Filemap' function.

Change-Id: Ic0fcb060b5262e0314582ef3b6dc5f464e4c39a5
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
bmaptools/BmapCreate.py
bmaptools/Filemap.py
tests/test_api_base.py
tests/test_filemap.py