]> code.ossystems Code Review - openembedded-core.git/commit
wic: add FIEMAP and SEEK_HOLE / SEEK_DATA APIs
authorEd Bartosh <ed.bartosh@linux.intel.com>
Thu, 28 Apr 2016 10:58:08 +0000 (13:58 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 May 2016 09:30:56 +0000 (10:30 +0100)
commit182639ddc9cda85c896a54c1c64fd1fb145071a1
treec9febc344646d2dd8d1a387d1797c59b1ecb4912
parentb3cc471790784c28f9362fcd6fc6a81c4316754c
wic: add FIEMAP and SEEK_HOLE / SEEK_DATA APIs

In order to make wic images sparse set of APIs has been copied
from bmap-tools project.

filemap.py module is taken from bmap-tools project:
https://github.com/01org/bmap-tools/blob/master/bmaptools/Filemap.py
It implements two ways of get information about file block: FIEMAP
ioctl and the 'SEEK_HOLE / SEEK_DATA' features of the file seek
syscall.

Note that this module will be removed as soon as bmaptool utility
supports copying sparse source file into destination file (this is
already agreed with the maintainer of bmap-tools project).

[YOCTO #9099]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/filemap.py [new file with mode: 0644]