'Undeleting' an open file

From: Giuseppe Bilotta (bilotta78_at_hotpop.com)
Date: 10/07/05

  • Next message: PaweÅ‚ Sikora: "Re: [2.6] binfmt_elf bug (exposed by klibc)."
    To: linux-kernel@vger.kernel.org
    Date:	Fri, 7 Oct 2005 16:14:27 +0200
    
    

    On Wed, 5 Oct 2005 23:05:34 +0200 (CEST), Bodo Eggert wrote:

    > Files are deleted if the last reference is gone. If you play a music file
    > and unlink it while it's playing, it won't be deleted untill the player
    > closes the file, since an open filehandle is a reference.

    BTW, I've always wondered: is there a way to un-unlink such a file?

    -- 
    Giuseppe "Oblomov" Bilotta
    "I weep for our generation" -- Charlie Brown
    -
    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/
    

  • Next message: PaweÅ‚ Sikora: "Re: [2.6] binfmt_elf bug (exposed by klibc)."

    Relevant Pages

    • Re: Undeleting an open file
      ... >> and unlink it while it's playing, it won't be deleted untill the player ... since an open filehandle is a reference. ... 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/ ...
      (Linux-Kernel)
    • Re: Kill signed chars !!! => PPC uses unsigned chars
      ... ints.c:16: warning: comparison is always false due to limited range of data type ... ints are OK BTW. I'm gonna change some of my code to fix this because relying ... Oh and BTW, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [Linux-NTFS-Dev] [2.6-GIT] NTFS: Release 2.1.25.
      ... BTW, ntfsmount in almost all truncating cases leave absolutely clean ... but windows driver itself often ... >> BTW, great work, but IMHO to early for mainline. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: klists and struct device semaphores
      ... there is no need to confuscate the klist code to do it. ... lifetime rules of the containing objects. ... they should increment the reference count of the ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Worrisome IDE PIO transfers...
      ... The thieves... ... they've stolen my precioussss. ... BTW: You don't need the km_types voodoo as the conversion routine is ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)