[opensuse] does Gnome trash use hard links?
Hello listmates, Do you know if Gnome puts hard links into trash? The reason I am asking this question is that I have a suspicion that in some instances emptying trash lead to non-trash items being deleted. Thanks. Boris. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 5/17/2010 7:40 AM, Boris Epstein wrote:
Hello listmates,
Do you know if Gnome puts hard links into trash? The reason I am asking this question is that I have a suspicion that in some instances emptying trash lead to non-trash items being deleted.
Thanks.
Boris.
Even if it did use (or include) hard links, a delete of a hard link does not delete the target file, until the last hard link is deleted. -- _____________________________________ At one time I had a Real Sig. Its been downsized. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2010-05-17 at 10:46 -0700, John Andersen wrote:
On 5/17/2010 7:40 AM, Boris Epstein wrote:
Hello listmates,
Do you know if Gnome puts hard links into trash? The reason I am asking this question is that I have a suspicion that in some instances emptying trash lead to non-trash items being deleted.
I have no idea.
Even if it did use (or include) hard links, a delete of a hard link does not delete the target file, until the last hard link is deleted.
But it is a common trick to create a hard-link to a file and then unlink the original path. Then when you delete the 'trashed' link the file is removed. -- Adam Tauno Williams <awilliam@whitemice.org> LPIC-1, Novell CLA <http://www.whitemiceconsulting.com> OpenGroupware, Cyrus IMAPd, Postfix, OpenLDAP, Samba -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 5/17/2010 10:53 AM, Adam Tauno Williams wrote:
On Mon, 2010-05-17 at 10:46 -0700, John Andersen wrote:
On 5/17/2010 7:40 AM, Boris Epstein wrote:
Hello listmates,
Do you know if Gnome puts hard links into trash? The reason I am asking this question is that I have a suspicion that in some instances emptying trash lead to non-trash items being deleted.
I have no idea.
Even if it did use (or include) hard links, a delete of a hard link does not delete the target file, until the last hard link is deleted.
But it is a common trick to create a hard-link to a file and then unlink the original path. Then when you delete the 'trashed' link the file is removed.
Which is exactly what SHOULD happen. -- _____________________________________ At one time I had a Real Sig. Its been downsized. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, May 17, 2010 at 1:46 PM, John Andersen <jsamyth@gmail.com> wrote:
On 5/17/2010 7:40 AM, Boris Epstein wrote:
Hello listmates,
Do you know if Gnome puts hard links into trash? The reason I am asking this question is that I have a suspicion that in some instances emptying trash lead to non-trash items being deleted.
Thanks.
Boris.
Even if it did use (or include) hard links, a delete of a hard link does not delete the target file, until the last hard link is deleted.
-- _____________________________________ At one time I had a Real Sig. Its been downsized. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Yeah, that's right... Good point. Thanks John! Well, back to the mystery, I reckon... Boris. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Adam Tauno Williams
-
Boris Epstein
-
John Andersen