From: David Parrish <david.parrish@optusnet.com.au>
To: Shaya Potter <spotter@cs.columbia.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: vfs level undelete support?
Date: Wed, 9 Apr 2003 07:33:47 +1000 [thread overview]
Message-ID: <20030408213347.GB29304@david.optusnet.com.au> (raw)
In-Reply-To: <1049772192.1243.186.camel@zaphod>
On Mon, Apr 07, 2003 at 11:23:12PM -0400, Shaya Potter wrote:
> Would there be any interest in a patch that added undelete support to
> the VFS. the idea would be that when one unlink's a file, instead of it
> being deleted, it is "moved" to "/.undelete/d_put path of dentry",
> coupled with a daemon that manages the size (maintains a quota per uid
> by deleting old files).
>
> It would appear to be an easy CONFIG level option, as it would just be
> do this, or normal unlink(), and would work for every fs, as well as not
> needing and LD_PRELOAD.
This has been implemented as a shared library which you can preload. It is
a wrapper around glibc's unlink() function which moves stuff to a trash
directory. This is probably better done this way in user space because it
allows the user quite a lot of freedom to decide which files get saved.
http://m-arriaga.net/software/libtrash/
--
Regards,
David Parrish
0410 586 121
next prev parent reply other threads:[~2003-04-08 21:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-08 3:23 Shaya Potter
2003-04-08 21:33 ` David Parrish [this message]
2003-04-08 21:35 ` Shaya Potter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030408213347.GB29304@david.optusnet.com.au \
--to=david.parrish@optusnet.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=spotter@cs.columbia.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®