Re: mmap() on cdrom files fails in 2.6.9-rc2-mmX

From: Andrew Morton
Date: Sat Oct 02 2004 - 02:47:48 EST


Jean Delvare <khali@xxxxxxxxxxxx> wrote:
>
> I think I found a bug in 2.6.9-rc2-mm4. It doesn't seem to be able to
> mmap() files located on cdroms. Same problem with -mm3 and -mm1.
> 2.6.9-rc2 works fine. I reproduced it on two completely different
> systems, so I guess it isn't device dependant.
>

So I tried your .config

> ...
> # CONFIG_BLK_DEV_IDECD is not set

hm. You're not using an IDE CDROM?

> CONFIG_BLK_DEV_SR=m

but you are using a SCSI CDROM, correct?

I tried your test app on both IDE CD with my .config and on SCSI CD with
your .config. Works fine.


vmm:/mnt/cdrom> ~/test-mmap REGSVR32.EXE
mmap size=42 flags=1: OK
mmap size=42 flags=2: OK
mmap size=4096 flags=1: OK
mmap size=4096 flags=2: OK


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