HP3000-L Archives

August 2001, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bruce Toback <[log in to unmask]>
Reply To:
Bruce Toback <[log in to unmask]>
Date:
Thu, 16 Aug 2001 14:26:02 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (38 lines)
Jeff Sohrt writes:

>Then often is the case, that we do another :purgelink and build a new file
>which subsequent users then access.   IF the first user never closes the
>program, you're saying the file is actually still on disk taking up room
>with no directory entry.  I suppose we could have multiple chunks of disk
>space for each purgelink.

The file isn't actually deleted until the last user closes it; only the
directory entry is gone. This is exactly what you want: it's not nice to
overwrite the code of a running program.

Internally, once the directory entry is removed, a PURGELINK (or an rm)
modifies the file's in-memory control information to make it look like a
new, unnamed file. MPE then treats the file just like any other new file:
by default, newly-created files don't get a directory entry unless and
until they're closed with the "save permanent" option, and are purged
unless explicitly saved. This is a mechanism that's been in MPE since
forever; as Gavin says, it's a well-defined and perfectly safe operation.
In fact, temporary files don't have directory entries either.

-- Bruce



--------------------------------------------------------------------------
Bruce Toback    Tel: (602) 996-8601| My candle burns at both ends;
OPT, Inc.            (800) 858-4507| It will not last the night;
11801 N. Tatum Blvd. Ste. 142      | But ah, my foes, and oh, my friends -
Phoenix AZ 85028                   | It gives a lovely light.
btoback AT optc.com                |     -- Edna St. Vincent Millay
Mail sent to [log in to unmask] will be inspected for a
fee of US$250. Mailing to said address constitutes agreement to
pay, including collection costs.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2