Re: New VFAT patch

Gordon Chaffee (chaffee@cs.berkeley.edu)
Wed, 19 Aug 1998 02:57:20 -0700 (PDT)


Gordon Chaffee writes:
> OK, I think I found the problem with the previous patch.

I was a little bit hasty in posting. I hadn't yet run the patch
through my test suite, and it turned up a problem with renaming
directories. Against a clean 2.1.116, here is the patch that seems
to fix the renaming problem without introducing new problems. I
apologize for prematurely sending the previous patch.

- Gordon

--- linux-2.1.116-clean/fs/vfat/namei.c Wed Aug 19 02:43:10 1998
+++ linux/fs/vfat/namei.c Wed Aug 19 02:46:18 1998
@@ -1771,8 +1771,6 @@
MSDOS_I(new_inode)->i_logstart = MSDOS_I(old_inode)->i_logstart;
MSDOS_I(new_inode)->i_attrs = MSDOS_I(old_inode)->i_attrs;

- old_inode->i_nlink = 0;
-
fat_cache_inval_inode(old_inode);
mark_inode_dirty(new_inode);

@@ -1815,6 +1813,10 @@
iput(dotdot_inode);
fat_brelse(sb, dotdot_bh);
}
+
+ MSDOS_I(old_inode)->i_start = 0;
+ MSDOS_I(old_inode)->i_logstart = 0;
+ old_inode->i_nlink = 0;

if (res > 0) res = 0;

-
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.altern.org/andrebalsa/doc/lkml-faq.html