Check out the new USENIX Web site. next up previous
Next: Performance Up: Behavior of typical operations Previous: write(2)

truncate(2)

Like writes, truncate operations invalidate the archived copy of the file and are intercepted, and may be blocked while file data are being restored. If the file is shrinking so that all of the new size is presently resident, the truncate operation proceeds. Otherwise a file restoration is triggered. Unfortunately, at present there is no way to request that only a portion of a file be restored, so the whole file is restored and then truncated.



Bill Studenmund
2000-04-24