Re: [PATCH] mkimage: allow -l to work on block devices on Linux

2021-07-14 Thread Tom Rini
On Tue, May 18, 2021 at 10:59:04AM +0200, yann.dir...@blade-group.com wrote: > From: Yann Dirson > > When "mkimage -l" was run on a block device it would fail with > erroneous message, because fstat reports a size of zero for those: > > mkimage: Bad size: "/dev/sdb4" is not valid image > >

[PATCH] mkimage: allow -l to work on block devices on Linux

2021-05-18 Thread yann . dirson
From: Yann Dirson When "mkimage -l" was run on a block device it would fail with erroneous message, because fstat reports a size of zero for those: mkimage: Bad size: "/dev/sdb4" is not valid image This patch identifies the "is a block device" case and reports it as such, and if it knows how