Re: Sanyo CDROM driver broken in at least 2.2.3 and 2.2.5. Actual bug may be in other part of the k

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 4 Apr 1999 15:27:11 +0100 (BST)


> In both systems the driver was loaded first the isp16 enabling driver then
> the sjcd driver; both as modules. The drivers load ok and can even be used
> to eject a CD within the CDROM. However the first time I try to mount a

The sjcd driver doesn't set up the sector size tables in the kernel. The
result of that is the mess you see.

Try adding

static int blksize = 2048;
static int secsize = 2048;

hardsect_size[MAJOR_NR]=&secsize;
blksize_size[M<AJOR_NR]=&blksize

about where it registers the device.

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/