* vfs level undelete support?
@ 2003-04-08 3:23 Shaya Potter
2003-04-08 21:33 ` David Parrish
0 siblings, 1 reply; 3+ messages in thread
From: Shaya Potter @ 2003-04-08 3:23 UTC (permalink / raw)
To: linux-kernel
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.
It seems pretty simple to hack up, just wondering if there's any
interest?
thanks,
shaya
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: vfs level undelete support?
2003-04-08 3:23 vfs level undelete support? Shaya Potter
@ 2003-04-08 21:33 ` David Parrish
2003-04-08 21:35 ` Shaya Potter
0 siblings, 1 reply; 3+ messages in thread
From: David Parrish @ 2003-04-08 21:33 UTC (permalink / raw)
To: Shaya Potter; +Cc: linux-kernel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: vfs level undelete support?
2003-04-08 21:33 ` David Parrish
@ 2003-04-08 21:35 ` Shaya Potter
0 siblings, 0 replies; 3+ messages in thread
From: Shaya Potter @ 2003-04-08 21:35 UTC (permalink / raw)
To: David Parrish; +Cc: linux-kernel
On Tue, 2003-04-08 at 17:33, David Parrish wrote:
> 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.
except it doesn't work w/ statically linked or non glibc linked
binaries, hence really isn't a complete solution. could be good enough
though.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-04-08 21:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-08 3:23 vfs level undelete support? Shaya Potter
2003-04-08 21:33 ` David Parrish
2003-04-08 21:35 ` Shaya Potter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox