Re: [9fans] sd(3) and concurrent readers/writers?

2009-09-14 Thread sqweek
2009/9/13 erik quanstrom quans...@quanstro.net:  but i was wondering why cmp would just work.  it occurred to me that i could run the dds in parallel with a command like this        cmp {dd -if data -bs 64k -count 2} {dd -if ../sda1/data -bs 64k -count 2} Cmp was actually my

Re: [9fans] sd(3) and concurrent readers/writers?

2009-09-13 Thread erik quanstrom
dd -if /dev/sdE0/data -of /dev/sdF0/data -bs 1048576 i was thinking about your technique, and it occured to me that this command is equvalent to for(;;) read(E0, buf, 1mb) write(F0, buf, 1mb) but if you wrote it like this dd -if data -bs 64k -count

Re: [9fans] sd(3) and concurrent readers/writers?

2009-09-12 Thread erik quanstrom
On Sat Sep 12 14:10:20 EDT 2009, sqw...@gmail.com wrote: I have a fairly simple task - I'm trying to mirror a disk. So I run the obvious: dd -if /dev/sdE0/data -of /dev/sdF0/data -bs 1048576 That's sitting there on it's merry way, and I get curious as to how much progress it has made. I