That's not the way I'd do it; if you have a timed delete, you need to
keep timers running, and that seems like it might be a less than optimal
way to implement such a thing. I think the easiest way to implement
undelete would be to set up a scheme for doing whiteout on directory
entries; when you remove() (or unlink()?) a file, instead of killing
the directory entry it will simply white that entry out, for reaping by
a daemon at some later date (or recovery by undelete.) This way you
don't muck with the fs semantics of ext2, but simply implement a few
user-space daemons to do the proper bookkeeping on the filesystem.
____
david parsons \bi/ Plus you get to bypass the "difficulty is GOOD"
\/ cultists.