From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <37dfb242c86fe96df379b53ffb630bd0@quanstro.net> From: erik quanstrom Date: Wed, 26 Aug 2009 23:29:57 -0400 To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Subject: Re: [9fans] Using cwfs Topicbox-Message-UUID: 5389ac02-ead5-11e9-9d60-3106f5b1d025 > wrenread: error on w0(1691022): %r something's wrong here. %r never prints "%r" unless errstr is literaly "%r". does your source match sources? > where w0 is the disk itself. Note that the final message > states 89805 blocks were copied, whereas initially > 89806 blocks were queued - was the error on just this one > block? If so, what could possibly be the reason? I doubt > my USB drive would be acting up. why couldn't your usb drive have a bad sector or some other problem? you could even get less than the requested number of bytes without an error. read(2) says that it's perfectly fine for pread to return less than the requested number of bytes. to be really safe, wrenread should use something like preadn. i would think that usb would be a bit antisocial if pread returned less than the requested number of bytes if RBUFSIZE <= 64k. but otoh, if it really is a hardware limit, it would make sense. we'd just call the hardware antisocial in that case. ☺ - erik