🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #62892

Re: rm (was: Hurd questions)

#62892
From: Preston F. Crow
Date: Thu, 06 Apr 1995 00:00
33 lines
2215 bytes
markm@bcaricb3.bnr.ca (Mark Mielke) writes:

>I think what people want is something like MS-DOS's undelete functionality,
>and this _does_ pretty much have to be built into the kernel.

I think different people want different things.

Some people only want to deal with users who mess up with the 'rm'
command.  This is easily dealt with through aliasing, or using an
alternate version of the program.  (This could do something like move
the file and record the original location somewhere, with a cron job
to clean out old entries.)

Some people want to deal with any file that is removed with an
"unlink" command.  With the microkernel approach, this requires file
system modifications, not kernel modifications.  (Actually, it could
be done one a user-by-user basis with modifications to the emulation
library, assuming HURD is keeping that aspect of Mach.)  One problem
with this idea is that file systems may optimize user actions in such
a way that data written to a file shortly before it is deleted will
never be written to disk.  But with the exception of temporary files,
this is probably a rare case.

So since HURD will support multiple file systems, it's just a matter
of someone taking the time to make the suggested change.

I haven't looked at it recently, but wouldn't a log-structured file
system naturally support undelete, at least until the segment
containing the file (or a portion of it) is cleaned?

--PC
--
  "First things first, but not necessarily in that order"  --The Doctor
Technical Details
Message-ID: <3m1kt8$g44@dartvax.dartmouth.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <81696@sdcc12.ucsd.edu> <3lf7dh$fhq@usenet.INS.CWRU.Edu> <3louks$hk2@tardis.tardis.ed.ac.uk> <gordznfqz9mpghp7_-_@enci.ucalgary.ca> <3ls4aj$35h@nntp3.u.washington.edu> <3lski1$3pp@dartvax.dartmouth.edu> <JARED_RHINE.95Apr6094023@aslan.hmc.edu> <MARKM.95Apr6152916@bcaricb3.bnr.ca>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1025b4,ef34758fb4e8c162
X-Google-Attributes: gid1025b4,public
From: crow@coos.dartmouth.edu (Preston F. Crow)
Subject: Re: rm (was: Hurd questions)
Date: 1995/04/06
Message-ID: <3m1kt8$g44@dartvax.dartmouth.edu>
X-Deja-AN: 100963236
references: <81696@sdcc12.ucsd.edu> <3lf7dh$fhq@usenet.INS.CWRU.Edu>  <3louks$hk2@tardis.tardis.ed.ac.uk>  <gordznfqz9mpghp7_-_@enci.ucalgary.ca>  <3ls4aj$35h@nntp3.u.washington.edu> <3lski1$3pp@dartvax.dartmouth.edu>  <JARED_RHINE.95Apr6094023@aslan.hmc.edu> <MARKM.95Apr6152916@bcaricb3.bnr.ca>
organization: Dartmouth College, Hanover, NH, USA
newsgroups: gnu.misc.discuss