]> code.ossystems Code Review - openembedded-core.git/commit
wic/filemap: Fall back to standard copy when no way to get the block map
authorKevin Hao <kexin.hao@windriver.com>
Tue, 14 Jul 2020 00:53:23 +0000 (08:53 +0800)
committerSteve Sakoman <steve@sakoman.com>
Thu, 23 Jul 2020 14:07:37 +0000 (04:07 -1000)
commit66f9db48bb9d59f08492f0515bc08b6b039aa03f
treebc5eaa3a8eab15ccece122d00d5092f98efeac11
parent19078f9540c455ccddb6f2986b96562a8186ec35
wic/filemap: Fall back to standard copy when no way to get the block map

For some filesystems, such as aufs which may be used by docker container,
don't support either the SEEK_DATA/HOLE or FIEMAP to get the block
map. So add a FileNobmap class to fall back to standard copy when there
is no way to get the block map.

[Yocto #12988]

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 7934ed49179242f15b413c0275040a3bb6b68876)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
scripts/lib/wic/filemap.py