Re: 2.6.4-mm1

Andrew Morton
2004-03-11T11:06:14Z

Mickael Marchand <marchand@kde.org> wrote:
>
> Hi,
>
> on my config (opteron box) I need this patch to get it compiled :
>
> --- fs/compat_ioctl.c.orig 2004-03-11 08:57:49.472074584 +0000
> +++ fs/compat_ioctl.c 2004-03-11 08:57:01.770326352 +0000
> @@ -1604,7 +1604,7 @@
> * To have permissions to do most of the vt ioctls, we either have
> * to be the owner of the tty, or super-user.
> */
> - if (current->tty == tty || capable(CAP_SYS_ADMIN))
> + if (current->signal->tty == tty || capable(CAP_SYS_ADMIN))
> return 1;
> return 0;
> }

yup, thanks.

>
> while I am at it, I am running a 64 bits kernel with 32 bits debian testing and
> it seems some ioctl conversion fails
> that happened with all 2.6 I tried.
> here is the relevant kernel messages part :
> ioctl32(dmsetup:26199): Unknown cmd fd(3) cmd(c134fd00){01} arg(0804c0b0) on /dev/mapper/control

The device mapper version 1 ioctl interface was removed. Perhaps you need
to update your dm tools?

> ioctl32(fsck.reiserfs:201): Unknown cmd fd(4) cmd(80081272){00} arg(ffffdab8) on /dev/ide/host0/bus0/target0/lun0/part4

Is this something which 2.6 has always done, or is it new behaviour?

reiserfs ioctl translation appears to be incomplete...