*BSD News Article 11136


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA1298 ; Tue, 23 Feb 93 14:34:15 EST
Path: sserve!manuel.anu.edu.au!munnari.oz.au!hp9000.csc.cuhk.hk!saimiri.primate.wisc.edu!ames!elroy.jpl.nasa.gov!usc!wupost!gumby!yale!mintaka.lcs.mit.edu!ai-lab!hal.gnu.ai.mit.edu!mycroft
From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum)
Newsgroups: comp.unix.bsd
Subject: [386BSD] truncating the beginning of a file
Date: 14 Feb 1993 19:16:33 GMT
Organization: MIT Artificial Intelligence Lab
Lines: 17
Distribution: world
Message-ID: <1lm5qhINN8vb@life.ai.mit.edu>
NNTP-Posting-Host: hal.ai.mit.edu


Has anyone implemented this yet?

If I don't get any `yae's in a week, I will write the requisite code
and post patches (at least for UFS) myself.  My current plan is to use
one of the `spare' inode fields to contain an offset from the beginning
of the file's allocated space to the actual beginning of data.  (After
Terry's patch, this should be initialized to 0 for all existing files.)
Changes to `rdump' and `rrestore' may also be required.

[It is truly a crock that this wasn't designed into Unix from the
start.]

-- 
 \  /   Charles Hannum, mycroft@ai.mit.edu
 /\ \   PGP public key available on request.  MIME, AMS, NextMail accepted.
Scheme  White heterosexual atheist male (WHAM) pride!