Re: 2.6.4-mm1

Anton Blanchard
2004-03-11T11:26:26Z

> > 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...

Some clown is running around "fixing" our ioctls:

X0081272 is BLKGETSIZE64. Yeah its bust, it was one of those calls that
we passed in sizeof(8) instead of 8. The ioctl should be X0041272.
The definition is:

#define BLKGETSIZE64 _IOR(0x12,114,size_t)

However at least in debian unstable, util-linux has:

./fdisk/common.h:#define BLKGETSIZE64 _IOR(0x12,114,8) /* 8 = sizeof(u64) */
./lib/get_blocks.c:#define BLKGETSIZE64 _IOR(0x12,114,long long)

ie X0081272

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=233626

Anton