delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/05/17:05:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 5 Jun 2003 17:04:51 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Andrews Harold G Maj USAFA/DFCS <Harold DOT Andrews AT usafa DOT af DOT mil>
cc: cygwin AT cygwin DOT com
Subject: Re: File size error in ls
In-Reply-To: <E39871CD3D39D711AAE9000347DEE4C40114AA77@fsxqpz13.usafa.af.mil>
Message-ID: <Pine.GSO.4.44.0306051701230.25752-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Thu, 5 Jun 2003, Andrews Harold G Maj USAFA/DFCS wrote:

> All,
>
> I was a little surprised to see the following when I did an "ls -l".
>
> total 2368673
> -rw-rw-rw-    1 Harold.A mkgroup   4071856 Jun  5 10:48 2001-fall.tar.bz2
> -rw-rw-rw-    1 Harold.A mkgroup  12910850 Jun  5 10:53 2002-fall.tar.bz2
> -rw-rw-rw-    1 Harold.A mkgroup  12568393 Jun  5 10:59 2002-spring.tar.bz2
> -rw-rw-rw-    1 Harold.A mkgroup    736583 Jun  5 10:56 2002-summer.tar.bz2
> -rw-rw-rw-    1 Harold.A mkgroup  18446744071809814777 Jun  5 11:26 2003-spring.tar.bz2
>
> I've got a large hard disk, but not that large.  The actual file size of the
> last file is 2,395,230,457 bytes, as listed in Windows Explorer.  The file
> resides on a SEAGATE ST336732LW SCSI (40GB) HDD connected to an LSI Logic
> 1030 Ultra320 SCSI Adapter.  These are in turn installed in a Dell Precision
> 530 Workstation.
>
> I am using Cygwin on Windows XP and using NTFS as the file system.  ls
> --version reveals:
>
> ls (fileutils) 4.1
> Written by Richard Stallman and David MacKenzie.
>
> Copyright (C) 2001 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> I thought somebody out there should know.
> -Andy

stat() in Cygwin currently returns a 32-bit value for file size, so there
is no support for correctly processing files over 2G in size.  This should
already be fixed in the recent snapshot of cygwin1.dll (actually, as soon
as ls is recompiled, IIUC).  Try installing the snapshot with the
appropriate headers, compiling ls from source, and see if it helps.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019