Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 13 Sep 2004 10:43:29 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: BUG: Bad call to GetFileSze in ext2fsprogs lib/ext2fs/getsize.c Message-ID: <20040913144329.GD11668@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <414532D7 DOT 8050506 AT agilent DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <414532D7.8050506@agilent.com> User-Agent: Mutt/1.4.1i On Sun, Sep 12, 2004 at 10:40:39PM -0700, Earl Chew wrote: >The call to GetFileSize() doesn't match the Microsoft documentation, >and invariably mis-sizes the disk image as zero. That's odd. Why would a cygwin program be calling GetFileSize? e2fsprogs should be using statfs and stat. 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/