|
From: Luke D. <cod...@ho...> - 2005-03-05 13:16:26
|
----- Original Message ----- From: "Earl Kinmonth" <eh...@go...> To: <min...@li...> Sent: Saturday, March 05, 2005 3:29 AM Subject: [Mingw-users] getting the size of large files under ntfs > In comparing various packages that provide an UNIX-like under Windows, I > found that the stat() function in the MINGW clib does not return the > proper > file size for files over 4 gigabytes. Yes. The documentation page for _stat() (on MSDN) does also describe _stati64(), which should give better results (as would GetFileSize()). > Presumably because it uses the same > library, the ls command of MSYS also does not report the proper file size > for files over 4 gigabytes. > (The size at which the failure takes place may > be less. I simply happened to have a 4.8 gigabyte file that was reported > as approximately 500 megabytes.) I just tried "ls -l" on a 3.3 GB file and it gave a weird 20-digit number, so I guess it probably works on files <2GB. Luke > I have also found the same failing in the > Microsoft (Interix) Services for Unix and in the ATT Uwin package. Since > the dir command in a "dos box" returns the proper file size, I presume > there is an underlying system call that does return the proper size for > large files. > > I do video editing under Windows 2000. For some applications, the work > file can be 60 or 70 gigabytes.... > > I did do a search through the archives using the key words stat and ntfs > without finding anything relevant to this problem. > > EHK |