lkml.org 
[lkml]   [2002]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: rm-ing files with open file descriptors
    Date
    From
    Miquel van Smoorenburg <miquels@cistron.nl> said:

    [...]

    > There is no way to recreate a file with a nlink count of 0,
    > well that is until someone adds flink(fd, newpath) to the kernel.

    It stays around under /proc/<pid>/fd/<xxx>, so you could grab it there. It
    is _announced_ as a symlink to the deleted file, but you get its contents
    anyway. [2.4.18pre4]
    --
    Horst von Brand http://counter.li.org # 22616
    -
    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:15    [W:3.419 / U:0.064 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site