mtd-utils: Fix incompatibility with kernel UBI block ioctls
PATCH 1/1 mtd-utils: Fix incompatibility with kernel UBI block ioctls
The kernel UBI block ioctl definition is out of sync with the one in mtd-utils resulting in ubiblock being unusable on current kernels.
---
Not sure if it is required to keep this backward compatible somehow? Seems the definition of the ioctl is a leftover from a previous version of the UBI block implementation.
include/mtd/ubi-user.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/mtd/ubi-user.h +1 -1
@@ -197,7 +197,7 @@#define UBI_IOCSETVOLPROP _IOW(UBI_VOL_IOC_MAGIC, 6, \ struct ubi_set_vol_prop_req)/* Create a R/O block device on top of an UBI volume */ -#define UBI_IOCVOLCRBLK _IOW(UBI_VOL_IOC_MAGIC, 7, struct ubi_blkcreate_req) +#define UBI_IOCVOLCRBLK _IO(UBI_VOL_IOC_MAGIC, 7)/* Remove the R/O block device */ #define UBI_IOCVOLRMBLK _IO(UBI_VOL_IOC_MAGIC, 8)
Signature · 1 line
1.8.4.5
Hi Helmut,
Quoted 3 lines · Helmut Schaa
The kernel UBI block ioctl definition is out of sync with the one in mtd-utils resulting in ubiblock being unusable on current kernels.
Which version are you taking as "current". The ioctl parameter is actually an improvement over the first parameter-less implementation, so this patch makes no sense.
Take a look at:
Maybe you have some old kernel or maybe you've backported this feature and you are using some internal version?
Signature · 3 lines
Ezequiel García, Free Electrons Embedded Linux, Kernel and Android Engineering http://free-electrons.com
Quoted 11 lines · Ezequiel Garcia
Hi Helmut,
Quoted 3 lines · Helmut Schaa
The kernel UBI block ioctl definition is out of sync with the one in mtd-utils resulting in ubiblock being unusable on current kernels.
Which version are you taking as "current". The ioctl parameter is actually an improvement over the first parameter-less implementation, so this patch makes no sense.
Quoted 6 lines
Take a look at:
Maybe you have some old kernel or maybe you've backported this feature and you are using some internal version?
Ouch, I was indeed on a different (older) tree :/
Sorry for the noise. Please drop this patch.
Thanks,
Helmut