Missing ioctl32 for ubi

Artem Bityutskiy dedekind at infradead.org
Wed Jan 14 09:19:31 EST 2009


On Wed, 2009-01-14 at 15:12 +0100, Geert Uytterhoeven wrote:
> 	Hi Артём,
> 
> On Wed, 14 Jan 2009, Artem Bityutskiy wrote:
> > On Wed, 2009-01-14 at 14:48 +0100, Geert Uytterhoeven wrote:
> > > When running ubimkvol (32-bit userland) on a PS3 (ppc64), I get:
> > > 
> > > | # ubimkvol /dev/ubi0 -N test -s 200MiB
> > > | ubimkvol: error!: cannot UBI create volume
> > > |           error 22 (Invalid argument)
> > > | #
> > > 
> > > and in the kernel log:
> > > 
> > > | ioctl32(ubimkvol:2207): Unknown cmd fd(3) cmd(80986f00){t:'o';sz:152} arg(ff88a888) on /dev/ubi0
> > > 
> > > This is on 2.6.29-rc1+.
> > 
> > Hmm, frankly I have no idea what this could be. I'll look and try ti
> > figure out, though.
> 
> When running 32-bit userland on a 64-bit kernel, ioctls have to be translated.
> 
> I noticed the drivers/mtd/ubi/cdev.c:ubi_*cdev_operations structures don't have
> .compat_ioctl entries, which would handle those translations.

Oh, right. This is about implementing compat_ioctl's. I'll put this to
my TODO list and look at this unless you come up with a patch faster :-)

Thank you for noticing this.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)




More information about the linux-mtd mailing list