rawio
[Top] [All Lists]

Re: dd.raw: /dev/raw/raw1: Invalid argument

To: Mary_Ann_DelBusso@xxxxxxxxxxxx
Subject: Re: dd.raw: /dev/raw/raw1: Invalid argument
From: Scott Lurndal <slurn@xxxxxxxxxxx>
Date: Mon, 26 Jun 2000 11:57:23 -0700 (PDT)
Cc: slurn@xxxxxxxxxxx (Scott Lurndal), braddr@xxxxxxxxxxxx (Brad Roberts), rawio@xxxxxxxxxxx
In-reply-to: <ctJu9zM99g1Q0pOqE0@xxxxxxxxxxxx> from "Mary_Ann_DelBusso@xxxxxxxxxxxx" at Jun 26, 2000 02:35:43 PM
Sender: owner-rawio@xxxxxxxxxxx
> 
> 
> straces shows:
> read(4, 0x804f000, 512)                 = -1 EINVAL (Invalid argument

The arguments here look fine:  (buffer address is congruent to zero
modulo the sector size and the transfer length is also congruent to 
zero modulo the sector size).    I suspect problems using /dev/raw
(which is an extremely ugly interface anyway).

> 
> The patches I picked up from http://oss.sgi.com/projects/rawio
> are specifically made for the 2.2.13 linux kernel.
> 
> Thanks,
> Mary Ann
> 

While the /dev/raw stuff was included in the 2.2 sgi raw I/O
work, it wasn't tested nor used, rather we used the standard
unix raw device paradigm:

so try this instead:

 # mknod /dev/rsdb1 c 8 17
 # mknod /dev/rsdc1 c 8 33

--

 # dd.raw if=/dev/rsdb1 of=/dev/rsdc1 bs=2048

--

scott

<Prev in Thread] Current Thread [Next in Thread>