This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: block size in /proc/partitions bug?
- From: Christopher Faylor <cgf-rcm at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 22 Oct 2003 09:53:57 -0400
- Subject: Re: block size in /proc/partitions bug?
- References: <3F9653F3.3000507@futarque.com>
- Reply-to: cygwin at cygwin dot com
On Wed, Oct 22, 2003 at 11:54:59AM +0200, Christian Damkjer George wrote:
>Hi
>
>I am working on a tool which reads raw from a disk via cygwin's /dev/sdX
>interface, which works fine. But I need to determine the size of the
>disk preferably in sectors. I can not find a get ata identity
>functionality in cygwin, but I can live without it if I could get the
>disk size elsewhere. My disk is 40 Gb which is divided in to two
>partitions on 20Gb each. "df" reports 19567136 and 20625392 1k-blocks
>each, which is the correct size. But /proc/partitions says 313074216 and
>330167880 which is about a factor 0.0625 of compared to linux. Why this
>strange factor it seems like you accidently multiplied by 16.
The source code would either confirm or deny that wouldn't it?
cgf
--
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/