]> code.ossystems Code Review - openembedded-core.git/commit
wic: if we can't get from ioctl, try from os.stat()
authorDogukan Ergun <dogukan.ergun@gmail.com>
Tue, 9 Jan 2018 13:35:24 +0000 (16:35 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 14 Jan 2018 09:11:26 +0000 (09:11 +0000)
commitd8f7cf2d38934c248be91101236f7537d0d31ea7
tree3e5be1fb34bbc35f7f798bfc25ed12897689b6d9
parent9d82fffd24742a5eb40bcb9b9ecea01a42be0be6
wic: if we can't get from ioctl, try from os.stat()

Under some conditions, ioctl FIGETBSZ can't return real value.
We can try to use fallback via os.stat() to get block size.

Source of patch:
https://github.com/intel/bmap-tools/commit/17365f4fe9089df7ee9800a2a0ced177ec4798a4

Signed-off-by: Dogukan Ergun <dogukan.ergun@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/wic/filemap.py