Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Wed, 22 Oct 2003 09:53:57 -0400
From: Christopher Faylor <cgf-rcm@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: block size in /proc/partitions bug?
Message-ID: <20031022135357.GC18407@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <3F9653F3.3000507@futarque.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3F9653F3.3000507@futarque.com>
User-Agent: Mutt/1.4.1i

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/

