Re: CD-ROM + Modem = errrr...

Jens Axboe (axboe@image.dk)
Thu, 15 Jul 1999 16:03:43 +0200


At 15:59 15-07-99 +0200, Romano Giannetti wrote:
>Jens, I have the problem that:
>
>stat("/dev/hdc", {st_mode=S_IFIFO|S_ISGID|S_ISVTX, st_size=0, ...}) = 0
>open("/dev/hdc", O_RDONLY) = -1 ERRNO_123 (No medium found)
>
>So that my boot script to change parameters does not work. hdparm is
>release 3.5. kernel 2.2.10. RH 6.0. I have to put a cdrom to let the
>driver accept -u 1.
>
>Am I doing something wrong?

No, you are not but hdparm is. Device _need_ to be opened O_NONBLOCK
to suceed without a medium in the drive. I sent Andre a patch a long time
ago, so you can get hdparm-3.5f or later from his page.

> Romano
>
>
>--
>Romano Giannetti - Univ. Pontificia Comillas (Madrid, Spain)
>Electronic Engineer - phone +34 915 422 800 ext 2416 fax +34 915 596 569

-- 
* Jens Axboe <axboe@image.dk> 
* Linux CD-ROM Maintainer

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