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

Alexander Viro (viro@math.psu.edu)
Tue, 8 Dec 1998 06:54:22 -0500 (EST)


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

-- 
There are no "civil aviation for dummies" books out there and most of
you would probably be scared and spend a lot of your time looking up
if there was one. :-)			  Jordan Hubbard in c.u.b.f.m

- 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/