Subject: truncate()
To: None <tech-kern@sun-lamp.cs.berkeley.edu>
From: Paul Kranenburg <pk@cs.few.eur.nl>
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.

Opinions?

-pk

------------------------------------------------------------------------------