delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Sat, 9 Aug 2008 13:18:21 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: "md5sum /dev/fd0" fails with 1.5.25-15 (works with 1.5.24-2) |
Message-ID: | <20080809111821.GB5129@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <g7i9im$jgo$1 AT ger DOT gmane DOT org> |
MIME-Version: | 1.0 |
In-Reply-To: | <g7i9im$jgo$1@ger.gmane.org> |
User-Agent: | Mutt/1.5.16 (2007-06-09) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On Aug 8 22:16, Heinz Werner Kramski-Grote wrote: > With cygwin1.dll 1.5.24-2 I am able to > checksum the raw floppy device successfully using md5sum: > > $ md5sum /dev/fd0 > f8e9627946048ac9bc3109478ef09215 */dev/fd0 > > After upgrading to 1.5.25-15 I now get this error: > > $ md5sum /dev/fd0 > md5sum: /dev/fd0: No space left on device > > Any help is greatly appreciated. That's a long standing bug in the raw block device reading code. At EOF it sets errno to ENOSPC instead of just returning with 0, if reads are buffered and the blocksize to read is not an integral divider of the device size. I fixed that in CVS now. You didn't observe this problem in 1.5.24 because back then, the default blocksize for reads were 4096 bytes, which *is* a integral divider of the floppy disk size. Starting with 1.5.25, the default blocksize is 64K. Possible workaround for the time being (until Cygwin 1.7 is out): $ dd if=/dev/fd0 bs=4096 | md5sum or $ dd if=/dev/fd0 bs=65536 iflag=direct | md5sum Thanks for the report, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |