Re: [FIX] Re: rename() on vfat is broken

H.J. Lu (hjl@lucon.org)
Tue, 8 Dec 1998 07:27:07 -0800 (PST)


>
>
> Here's the fix for VFAT rename problems. Apply to fs/vfat/namei.c.
> It's atop of my rmdir fixes, so if you apply it to the pristine 2.1.131
> it will be 6 lines off. Still applies, anyway.
>
> --- namei.c Thu Dec 3 18:35:54 1998
> +++ namei.c.new Tue Dec 8 05:53:22 1998
> @@ -1808,6 +1808,10 @@
>
> if (res == 0) {
> drop_replace_inodes(old_dentry, new_inode);
> + list_del(&old_dentry->d_alias);
> + iput(old_dentry->d_inode);
> + d_instantiate(old_dentry, new_inode);
> +
> d_move(old_dentry, new_dentry);
> put_new_inode = 0;
> }
>
> HJL, could you check whether it fixes your problems? What
> filesystems are you using?
> Al

I don't think so. I am using ext2 on /dev/fd0.

-- 
H.J. Lu (hjl@gnu.org)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/