]> code.ossystems Code Review - openembedded-core.git/commit
wic: add sparse_copy API
authorEd Bartosh <ed.bartosh@linux.intel.com>
Thu, 28 Apr 2016 10:58:09 +0000 (13:58 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 May 2016 09:30:56 +0000 (10:30 +0100)
commitbfde62bdc03152a4d3d383512479b974fa867f94
tree160ab04bd61131fda7893247e301e363e0473460
parent182639ddc9cda85c896a54c1c64fd1fb145071a1
wic: add sparse_copy API

In order to make wic images sparse sparse_copy function has been
copied from meta-ostro:
https://github.com/kad/meta-ostro/blob/master/meta-ostro/lib/image-dsk.py
This function uses filemap APIs to copy source sparse file into
destination file preserving sparseness.

The function has been modified to satisfy wic requirements:
parameter 'skip' has been added.

[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