This is the mail archive of the 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: File size error in ls

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
> 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.
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,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:
Problem reports:

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