lkml.org 
[lkml]   [2002]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: rm-ing files with open file descriptors
    On Sun, Jan 20, 2002 at 03:23:59PM +0100, you [Remi Turk] claimed:
    >
    > Which I actually posted a patch for in 2.4.0-test1 time :)
    >
    > % ll -i old
    > 32619 -rw-r--r-- 1 remi users 14 Jul 31 15:44 old
    > % exec 5<old
    > % rm old
    > % ~/src/flink/flink 5 new
    > % ll -i new
    > 32619 -rw-r--r-- 1 remi users 14 Jul 31 15:44 new
    >
    > The more interesting part - open(O_ANONYMOUS) or something like
    > that looked much harder to do. (IOW, I gave up ;) )

    Just out of interest (I'm not actually suggesting this would be useful, or
    feasible): what about ilink(dev, inode_nr, "path") or iopen(dev, inode_nr)?

    Or /proc/inodes/dev/<nr> ?



    -- v --

    v@iki.fi
    -
    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:18    [W:0.021 / U:2.052 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site