Skip to content
Snippets Groups Projects
Commit 36758188 authored by girish's avatar girish
Browse files

Fix ext3 inode version field being filled with 0x5a5a5a5a on disk

b=15604
i=adilger
parent e3ee6975
No related branches found
No related tags found
No related merge requests found
...@@ -454,3 +454,15 @@ Index: linux-2.6.16-sles10/fs/ext3/xattr.h ...@@ -454,3 +454,15 @@ Index: linux-2.6.16-sles10/fs/ext3/xattr.h
extern int init_ext3_xattr(void); extern int init_ext3_xattr(void);
extern void exit_ext3_xattr(void); extern void exit_ext3_xattr(void);
Index: linux-2.6.16-sles10/fs/ext3/ialloc.c
===================================================================
--- linux-2.6.16-sles10.orig/fs/ext3/ialloc.c
+++ linux-2.6.16-sles10/fs/ext3/ialloc.c
@@ -750,6 +750,7 @@ got:
ei->i_dtime = 0;
ei->i_block_alloc_info = NULL;
ei->i_block_group = group;
+ ei->i_fs_version = 0;
ext3_set_inode_flags(inode);
if (IS_DIRSYNC(inode))
...@@ -452,3 +452,15 @@ Index: linux-2.6.18/fs/ext3/xattr.h ...@@ -452,3 +452,15 @@ Index: linux-2.6.18/fs/ext3/xattr.h
extern int init_ext3_xattr(void); extern int init_ext3_xattr(void);
extern void exit_ext3_xattr(void); extern void exit_ext3_xattr(void);
Index: linux-2.6.18/fs/ext3/ialloc.c
===================================================================
--- linux-2.6.18.orig/fs/ext3/ialloc.c
+++ linux-2.6.18/fs/ext3/ialloc.c
@@ -751,6 +751,7 @@ got:
ei->i_dtime = 0;
ei->i_block_alloc_info = NULL;
ei->i_block_group = group;
+ ei->i_fs_version = 0;
ext3_set_inode_flags(inode);
if (IS_DIRSYNC(inode))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment