Your message dated Thu, 14 Jul 2011 11:33:38 +0200
with message-id <[email protected]>
and subject line Bug#467378: Fixed by adding a 'truncate' program
has caused the Debian Bug report #467378,
regarding coreutils: Please include a program to truncate files
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
467378: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=467378
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: coreutils
Version: 5.97-5.3
Severity: wishlist

If I have a file that is 2G in size but wish to discard the last 1G of data
then there seems to be no program available to do this.

I think it would be ideal to have a program as part of coreutils that allows
you to resize a file.  If the new length is longer than the old length then
it would either write zeros to the end or extend the file (with a hole)
via the truncate() system call according to the wish of the user.  If the new
length is shorter then it would just call truncate().

I would be happy to contribute the code for this.  This will require some
discussion with upstream, but it seemed best to start the discussion here.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-686
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=ANSI_X3.4-1968) 
(ignored: LC_ALL set to C)

Versions of packages coreutils depends on:
ii  libacl1                2.2.41-1          Access control list shared library
ii  libc6                  2.3.6.ds1-13etch5 GNU C Library: Shared libraries
ii  libselinux1            2.0.15-2.etch1    SELinux shared libraries

coreutils recommends no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 7.1-1

This bug [1] has been fixed upstream [2] since version 7.0, and hence in
Debian since version 7.1-1.

[1] http://bugs.debian.org/467378
[2] 
http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=75e0047c4b916393b6be3cb985c4c4d4a2d1a836

-- 
BenoƮt Knecht


--- End Message ---

Reply via email to