-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ==> Regarding Re: [Wlug] Raw IO Howto; Skip Gaede <sgaede@mediaone.net> adds: sgaede> 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 sgaede> /dev/raw/raw1: bound to major 22, minor 1 ok. root> /usr/src/linux# raw -qa sgaede> /dev/raw/raw1: bound to major 22, minor 1 sgaede> I don't understand why the output says /dev/*raw*/raw1 is bound sgaede> when I said /dev/raw1? buggy error message. Open /dev/raw1 in your case. Also, when doing IO to a raw device, the buffer you pass in needs to be aligned on an 512 byte boundary. Most likely this is your problem. If you would like I can send you some sample code to align your buffs. - -Jeff -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/> iEYEARECAAYFAjvurPgACgkQH/inyh944bRjywCggJWGfycPznp7f8iLgdqBk5E1 AHoAn2ZaNqbhRs5ouatx08qoPVkpTZVN =/FIf -----END PGP SIGNATURE-----