]> code.ossystems Code Review - openembedded-core.git/commit
wic/filemap: If FIGETBSZ iotctl fail, failback to os.stat
authorKalle Lampila <kalle.lampila@lempea.com>
Tue, 31 Dec 2019 15:10:49 +0000 (17:10 +0200)
committerArmin Kuster <akuster808@gmail.com>
Sat, 18 Jan 2020 20:53:39 +0000 (12:53 -0800)
commit996013b4e5d3cd1c054e87539ac1a8d95581a87f
treecae11fdeef72c6b6dc637b98dde2a7c05c799a71
parentc3e957409bf68e7b310e27781ac91d24cf4452bf
wic/filemap: If FIGETBSZ iotctl fail, failback to os.stat

Some file systems don't support fetching the block size (notably the
file system Docker uses for containers), so if iotctl() fail, try to use
failback via os.stat() to get block size.

Signed-off-by: Kalle lampila <kalle.lampila@lempea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e219f5175177a640dd62833082ea19adc1c13d42)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
scripts/lib/wic/filemap.py