On Friday 09 November 2001 04:05 pm, Brad Noyes wrote:
Just a quick suggestion; open() sets perror(). try calling perror after your open() call, it might give you (and us) some insite to why you can't open the device.
Sorry about that! I get "No such file or device", which I also get if I do "ls /dev/raw/raw1" I have in /dev/{raw1,raw2...} If I change the code to open /dev/raw1, the open succeeds but the reads and writes then fail. Should I be able to see this mythical device in the /proc filesystem somewhere, cause I can't seem to find it... Thanks, Skip
On Fri, Nov 09, 2001 at 03:08:50PM -0500, Skip Gaede wrote:
Folks,
I'd like to be able to queue read/write request to my Zip drive and bypass the buffering that goes on in the kernel. From what I've read, you can do this by binding the raw device (/dev/raw) to /dev/hdc1 for example.
When I do that, I get a message that /dev/raw/raw1 has ben bound to char major 22 1. When I try
open("/dev/raw/raw1",O_RDWR|O_CREAT,S_IREAD|S_IWRITE);
it fails. Can someone tell me how to do this please?
Thanks, Skip
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug