This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: block size in /proc/partitions bug?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]