lkml.org 
[lkml]   [2003]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: Undelete files on ext3 ??
    Date
    > > > > Therefore, it's time for somebody to put a 'dumpster` in all the Linux
    > > > > file-systems. Somebody should then modify `rm` and the kernel unlink
    > > > > to `mv' files to the dumpster directory on the file-system, instead of
    > > > > really deleting them.

    [snip discussion about a temporary directory for deleted files]

    > Yes. But we could do better. Since no program uses the __syscall
    > interface directly, wraping unlink in libc would affect all programs
    > including rm. It could even be done withou recompiling anything using
    > LD_PRELOAD.

    I disagree. This is the wrong goal to be aiming for.

    A temporary directory for deleted files can, and should be,
    implemented in userspace.

    What is much more interesting is the possibility of what I described
    earlier in the thread as a virtual WORM device, and what Andreas
    said could be done with LVM already using filesystem snapshots -
    I.E. the ability to mount the filesystem as it was at any date and
    time in the past.

    However, as far as I can see, LVM snapshots are a manual process - the
    user has to expressly create a snapshot when they want it.

    What I was thinking of was a virtual device that allocated a new
    sector whenever an old one was overwritten - kind of like a journaled
    filesystem, but without the filesystem, (I.E. just the journal) :-).

    John.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:32    [W:5.753 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site