Can you do a bash$raw -qa as root and post the output. I assume that you used the "raw" command to bind the block device for raw I/O such as bash$raw /dev/raw/raw1 /dev/hdc1 On another note you may also want to check the permissions on the device file(s). This would cause the open to fail! Skip Gaede wrote:
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