delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <3BC48153.3010505@likai.net> |
Date: | Wed, 10 Oct 2001 13:11:47 -0400 |
From: | Li-Kai Liu <news AT likai DOT net> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20010913 |
X-Accept-Language: | en-us |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: unbelievably filesize |
References: | <Pine DOT CYG DOT 4 DOT 30 DOT 0110101204220 DOT 1344-100000 AT dev9 DOT wohnfinder DOT de> |
w DOT peppmeyer AT wohnfinder DOT de wrote: >hi, > >at a win2k box ls and du are showing the following > >$ ls -l fileserver_voll.bkf >-rw-r--r-- 1 w.peppme Entwickl 18446744072396582912 Sep 20 14:14 fileserver_v >oll.bkf >$ du -b fileserver_voll.bkf >2981998592 fileserver_voll.bkf > >the real filesize is 7.276.965.888 bytes and 5.983.522.816 bytes on disk >with ntfs compression enabled. the file is mounted from another >win2k box. > >have a nice day > obviously some sort of overflow ... i've determined how you get this number 18446744072396582912 ... 18446744072396582912 = 0xffffffff00000000 | (7276965888 & 0xffffffff ) it is probably the result of trying to sign extend a already overflowed 32-bit integer. somewhere along the line, the file size is casted to a 32-bit signed integer, and then recasted to a 64-bit signed integer. don't bother launching the debugger. liulk -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |