Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Dec 2002 14:11:10 +0100
From:      Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
To:        freebsd-questions@freebsd.org
Subject:   How to truncate a file in the beginning
Message-ID:  <20021213141110.A99587@curry.mchp.siemens.de>

next in thread | raw e-mail | index | archive | help
Are there any special features in FreeBSD that I can use
to truncate a file in the beginning?

Let's assume I have a 50GB file. Only the last 10GB are
interesting for me and I have to free the first 40GB for
some reason. Of course, I could seek to the appropriate
position and copy the 10GB to a new file and unlink the
old one. The problem is that I don't have a lot of time
to do this so I am looking for something like ftruncate()
but for the beginning...

Any ideas?

Thanks,

	-Andre

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021213141110.A99587>