Re: Undelete in user space

Rogier Wolff (r.e.wolff@et.tudelft.nl)
Thu, 20 Jun 1996 16:26:29 +0200


Johan_Myr=E9en wrote:
>=20
> On Wed, 19 Jun 1996, Rogier Wolff wrote:
>=20
> > Undelete is a completely userspace implementable thing:
> > your libc's unlink call should be substituted by something that
> > renames the file to some /.wastebasket instead of simply
> > using the system's unlink system call.
>=20
> Doesn't anybody else think adding crud to the libc system call wrappe=
rs is
> a Bad Thing?
>=20
> If libc's unlink() function is changed as proposed it does not deserv=
e to
> be in section 2 of the manual, and should be moved to unlink(3) and a=
line
> added to the BUGS section stating that there is no easy way to make t=
he
> system call from a C program.

Linus' opinion on "what goes into the kernel and what doesn't" is=20
that what CAN be done in userspace, should go in userspace.=20

MOST users won't want this undelete stuff. If they DO, then they=20
should configure the extra libc-with-undelete.whatever.=20

That libc should also provide a symbol called for example
"real_unlink" to use the system call....

Roger.

--=20
** Q: What's the difference between MicroSoft Windows and a virus? =
**
** A: Apart from the fact that virusses install easier, none. =
**
** EMail: R.E.Wolff@et.tudelft.nl * Tel +31-15-2783643 or +31-15-21374=
59 **
*** <a href=3D"http://einstein.et.tudelft.nl/~wolff/">my own homepage<=
/a> ***