From: Guillaume Chazarain <guichaz@yahoo.fr>
To: Timo Sirainen <tss@iki.fi>
Cc: linux-ext4@vger.kernel.org
Subject: Re: 2.6.20 ext3 rename() returns success but doesn't unlink the source
Date: Fri, 23 Mar 2007 23:24:51 +0100 [thread overview]
Message-ID: <460453B3.2020304@yahoo.fr> (raw)
In-Reply-To: <1174670127.10004.14.camel@hurina>
Timo Sirainen a écrit :
> rename("/mnt/Maildir/.Trash/new/1174635781.P25986Q0M341350.hurina",
> "/mnt/Maildir/.Trash/cur/1174635781.P25986Q0M341350.hurina:2,");
$ ls -li /mnt/Maildir/.Trash/new/1174635781.P25986Q0M341350.hurina /mnt/Maildir/.Trash/cur/1174635781.P25986Q0M341350.hurina:2,
122481 -rw------- 2 1000 1000 3091 Mar 23 08:43 /mnt/Maildir/.Trash/cur/1174635781.P25986Q0M341350.hurina:2,
122481 -rw------- 2 1000 1000 3091 Mar 23 08:43 /mnt/Maildir/.Trash/new/1174635781.P25986Q0M341350.hurina
All your files in the list are hard linked.
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=fs/namei.c;h=ee60cc4d3453209723d6f70982e7083d7cb39477;hb=HEAD#l2447
seems to handle your case as you see it:
if (old_dentry->d_inode == new_dentry->d_inode)
return 0;
Regards.
--
Guillaume
next prev parent reply other threads:[~2007-03-23 23:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-23 17:15 2.6.20 ext3 rename() returns success but doesn't unlink the source Timo Sirainen
2007-03-23 22:24 ` Guillaume Chazarain [this message]
2007-03-23 23:18 ` Timo Sirainen
2007-03-23 23:45 ` Andreas Dilger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=460453B3.2020304@yahoo.fr \
--to=guichaz@yahoo.fr \
--cc=linux-ext4@vger.kernel.org \
--cc=tss@iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox