Re: Can I create a link to an inode?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Fri, Aug 15, 2008 at 12:30 AM, Russell Miller <duskglow@xxxxxxxxx> wrote:


On Fri, Aug 15, 2008 at 12:17 AM, Doug Wyatt <dwyatt@xxxxxxxxxxxxx> wrote:
Here's the situation - I have video file, currently open
in Mplayer, which I accidentally deleted from its directory.

So, the storage and inode still exist as long as I don't
close the Mplayer.

Does anyone know of a way, using available commands or via
system calls in a program, to reestablish a link from a
directory to the inode?


You might try going into debugfs, finding the inode, and seeing if you can tell it it's not deleted anymore.  It's not actually deleted until all the references are closed, so I think it might be possible (I don't know the internal details of what happens when a file is deleted but not closed so I may be wrong).

Oh hey.  Look what I found.

http://dag.wieers.com/blog/undeleting-an-open-file-by-inode

Still risky but at least you won't be flying blind.

--Russell

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux