rawio
[Top] [All Lists]

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

To: Scott Lurndal <slurn@xxxxxxxxxxx>
Subject: Re: dd.raw: /dev/raw/raw1: Invalid argument
From: Brad Roberts <braddr@xxxxxxxxxxxx>
Date: Mon, 26 Jun 2000 10:55:14 -0700 (PDT)
Cc: Mary_Ann_DelBusso@xxxxxxxxxxxx, rawio@xxxxxxxxxxx
In-reply-to: <200006261740.KAA15026@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-rawio@xxxxxxxxxxx
There's a conflict going on here.  The patches at oss.sgi.com for rawio
aren't the same as the code in 2.3.x and 2.4.0-testx.  The demonstration
below looks very much like what you'd do for 2.3/2.4, and not at all like
how the patches for 2.2 behave.  The dd.raw code, though, should work for
both, I believe.

Has someone back ported 2.4's style of raw devices to 2.2?  If so, where
can I find those patches.  There's nothing about them on the sgi site that
I can see.

Later,
Brad


On Mon, 26 Jun 2000, Scott Lurndal wrote:

> > 
> > Hi,
> > 
> > I'm having trouble getting rawio to work on
> > 
> > Red Hat Linux release 6.2 (Zoot) Kernel 2.2.13-okeefe on a 2-processor i686
> > 
> > Does anyone have any idea what I'm doing wrong based on the following:
> > 
> > Filesystem           1k-blocks      Used Available Use% Mounted on
> > /dev/sdb1              8741468        28   8297388   0% /wtecache1
> > /dev/sdc1              8741468        20   8297396   0% /wtecache2
> > 
> > [mad@shaggy ~mad/tmp]$ ls -l /dev/sdb1 /dev/sdc1
> > brw-rw----    1 root     mail       8,  17 May  5  1998 /dev/sdb1
> > brw-rw----    1 root     mail       8,  33 May  5  1998 /dev/sdc1
> > 
> > [mad@shaggy mad]$ raw /dev/raw/raw1 /dev/sdb1
> > /dev/raw/raw1:  bound to major 8, minor 17
> > 
> > [mad@shaggy mad]$ raw /dev/raw/raw2 /dev/sdc1 
> > /dev/raw/raw2:  bound to major 8, minor 33
> > 
> > [mad@shaggy ~mad/tmp]$ raw -qa
> > /dev/raw/raw1:  bound to major 8, minor 17
> > /dev/raw/raw2:  bound to major 8, minor 33
> > 
> > [mad@shaggy ~mad/tmp]$ ./dd.raw if=/dev/raw/raw1 of=/dev/raw/raw2 bs=512
> > ../dd.raw: /dev/raw/raw1: Invalid argument
> > 0+0 records in
> > 0+0 records out
> > 
> > Thanks,
> > Mary Ann
> > 
> 
> try:
> 
> $ strace -o /tmp/strace.out ./dd.raw if ...
> 
> and see what system call is failing with einval. 
> 
> scott
> 


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