]> code.ossystems Code Review - openembedded-core.git/commit
wic: fix bug in sparse_copy
authorEd Bartosh <ed.bartosh@linux.intel.com>
Wed, 22 Mar 2017 13:42:28 +0000 (15:42 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 22 Mar 2017 15:07:37 +0000 (15:07 +0000)
commit567186f995302a095a771baede4ff5034d1d1862
tree09af33868e3c1eb7e7b6f56420de0065ff67997b
parent48a5d67d7cafdeac821e6f35bea380521ef017d5
wic: fix bug in sparse_copy

sparse_copy creates output file that is smaller than input
file when input file ends with unmapped blocks.

Used truncate(<input file size>) when output file is created
to ensure the size of output file will always be equal to
the size of input file.

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