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



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to