From owner-freebsd-hackers Mon Jun 3 11:01:56 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA06911 for hackers-outgoing; Mon, 3 Jun 1996 11:01:56 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id LAA06906; Mon, 3 Jun 1996 11:01:52 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id EAA23582; Tue, 4 Jun 1996 04:00:07 +1000 Date: Tue, 4 Jun 1996 04:00:07 +1000 From: Bruce Evans Message-Id: <199606031800.EAA23582@godzilla.zeta.org.au> To: alex@freebsd.org, bde@zeta.org.au, pjf@cts.com, rb@gid.co.uk Subject: Re: bugs [ftruncate] Cc: bde@freebsd.org, dyson@freebsd.org, hackers@freebsd.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Don't forget that this has to work right for NFS too: I've had problems in >the past with non-FreeBSD clients off a FreeBSD server being unable to >extend files. ftruncate() seems to work right for FreeBSD NFS, and there is code to support it in our support disk file systems (ufs, msdosfs, ext2fs). I noticed that it also "succeeds" for /dev/tty. It "succeeds" and has no effect for all special files. OTOH, lseek() returns ESPIPE unless the file type is DTYPE_VNODE. Bruce