Subject: truncate()
To: None <>
From: Paul Kranenburg <>
List: tech-kern
Date: 11/06/1993 16:44:02
When using (f)truncate() on a file giving a size which is larger than the
current file size, the results will depend on the underlying filesystem
type. On an UFS filesystem, the file size remains unchanged. On an NFS
filesystem imported from SunOS, the file is grown to the specified size.

I'd like to see a uniform behaviour. Either (f)truncate() checks its
arguments and never allows a file to grow, or the UFS filesystem is
modified to do the obvious thing (despite this system call's name) when
presented with a size argument larger than the current file size.