[lkml]   [2000]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: DB2 failing with ioctl(GETBLKSIZE) on /dev/rawX...

On Tue, Aug 22, 2000 at 03:06:06AM +0200, Bjoern Kriews wrote:
> This is what DB2 V7.1 (Personal) does if I try to use sct's raw devices:
> umask(0) = 022
> open("/dev/raw8", O_RDWR|O_CREAT, 0600) = 73
> umask(022) = 0
> fstat(73, {st_mode=S_IFCHR|0660, st_rdev=makedev(162, 8), ...}) = 0
> ioctl(73, BLKGETSIZE, 0xbfff7ee4) = -1 ENOTTY (Inappropriate ioctl
> for device)
> (Using /dev/sda8 fails because it is not a character device).

I can add the BLKGETSIZE ioctl if you like, but in general the block
device ioctls just don't make any sense for raw devices. In addition
to the getsize call, there are calls for cache invalidation and so on,
and these cases are inappropriate for an uncached device.

What ioctls actually make sense for raw devices? BLKGETSIZE is one,
but it's the only one I'd add unless there good reasons for adding any

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:37    [W:0.057 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site