This is the mail archive of the
cygwin-talk@cygwin.com
mailing list for the cygwin project.
Re: find prints wrong file size for files >2GB
- From: Yitzchak Scott-Thoennes <sthoenna at efn dot org>
- To: Talk Amongst Yourselves <cygwin-talk at cygwin dot com>
- Date: Mon, 6 Dec 2004 11:05:11 -0800
- Subject: Re: find prints wrong file size for files >2GB
- Organization: bs"d
- References: <41B43182.9AEE4F96@hot.pl> <20041206120515.GB332@efn.org> <41B4504A.321065CF@dessent.net>
- Reply-to: Talk Amongst Yourselves <cygwin-talk at cygwin dot com>
On Mon, Dec 06, 2004 at 04:27:54AM -0800, Brian Dessent wrote:
> Yitzchak Scott-Thoennes wrote:
>
> > Now wait a minute; that was *my* testcase! Oh, well.
> > I hearby place that code in the public domain; retroactively for
> > Jacek Trzmiel's benefit.
> >
> > Would a truncate.exe be welcome in one of the cygwin packages? I
> > kind of thought there was one on some unixes but a search didn't
> > turn up anything.
>
> There's no need for a special purpose program to do this. 'dd' has this
> capability among many others:
>
> dd if=/dev/zero bs=1 count=0 seek=2G of=filename
Can that work in place (just modifying a file without creating another)?
How would you extend/shorten an existing file using that?