On Friday 09 November 2001 10:31 pm, you wrote:
Can you do a
bash$raw -qa
as root and post the output.
root:/usr/src/linux# raw /dev/raw1 /dev/hdc1 /dev/raw/raw1: bound to major 22, minor 1 root:/usr/src/linux# raw -qa /dev/raw/raw1: bound to major 22, minor 1 I don't understand why the output says /dev/*raw*/raw1 is bound when I said /dev/raw1? NOTE: root:/usr/src/linux# ls -R /dev/raw* /dev/raw1 /dev/raw2 /dev/raw3 /dev/raw4 /dev/raw5 /dev/rawctl (There's nothing there that looks like /dev/raw/raw1!)
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
Is it necessary to use the devfs for this to work?
On another note you may also want to check the permissions on the device file(s). This would cause the open to fail!
I'm doing this as root. Permissions shouldn't be an issue, should they?
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
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug