<div dir="ltr"><br><br><div class="gmail_quote">On Fri, Aug 15, 2008 at 12:17 AM, Doug Wyatt <span dir="ltr"><<a href="mailto:dwyatt@sunflower.com">dwyatt@sunflower.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Here's the situation - I have video file, currently open<br>
in Mplayer, which I accidentally deleted from its directory.<br>
<br>
So, the storage and inode still exist as long as I don't<br>
close the Mplayer.<br>
<br>
Does anyone know of a way, using available commands or via<br>
system calls in a program, to reestablish a link from a<br>
directory to the inode?<br>
</blockquote><div><br><br>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).<br>
<br>It's very, very risky, and you risk corrupting your entire filesystem doing that.  I wouldn't do it personally unless I had good backups.<br><br>Let me know if you try it and it works - that would make a good howto somewhere.<br>
<br>--Russell<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Thanks in advance,<br>
Doug<br><font color="#888888">
<br>
-- <br>
fedora-list mailing list<br>
<a href="mailto:fedora-list@redhat.com" target="_blank">fedora-list@redhat.com</a><br>
To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-list</a><br>
</font></blockquote></div><br></div>