Re: [PATCH] mtd: blktrans: use better error code for unimplemented ioctl()

2015-05-27 Thread Brian Norris
On Thu, May 21, 2015 at 10:54:31AM -0700, Brian Norris wrote: > In commit 50183936254b ("mtd: blktrans: change blktrans_getgeo return > value") we fixed the problem that ioctl(HDIO_GETGEO) might return 0 > (success) for mtdblock devices which did not implement the feature and > would leave a blank

[PATCH] mtd: blktrans: use better error code for unimplemented ioctl()

2015-05-21 Thread Brian Norris
In commit 50183936254b ("mtd: blktrans: change blktrans_getgeo return value") we fixed the problem that ioctl(HDIO_GETGEO) might return 0 (success) for mtdblock devices which did not implement the feature and would leave a blank (zero) result. But now, let's get the error code right. Other code pa