[Ocfs2-tools-devel] [PATCH] debugfs.ocfs2: fix the endian error
in find_block_inode
Sunil Mushran
Sunil.Mushran at oracle.com
Fri May 4 11:58:39 PDT 2007
sob
Tao Ma wrote:
> Add the check for i_fs_gerneration and resend the patch.
> Sunil Mushran Wrote:
>
>> Joel, ok.
>>
>> Tao, Good catch. However it is still missing the fs_generation check.
>> Ensure the di->i_fs_generation is valid too.
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> Index: debugfs.ocfs2/find_block_inode.c
>> ===================================================================
>> --- debugfs.ocfs2/find_block_inode.c (revision 1346)
>> +++ debugfs.ocfs2/find_block_inode.c (working copy)
>> @@ -368,6 +368,11 @@ errcode_t find_block_inode(ocfs2_filesys
>> strlen(OCFS2_INODE_SIGNATURE)))
>> continue;
>>
>> + ocfs2_swap_inode_to_cpu(di);
>> +
>> + if (di->i_fs_generation != fs->fs_super->i_fs_generation)
>> + continue;
>> +
>> if (!(di->i_flags & OCFS2_VALID_FL))
>> continue;
>>
>>
More information about the Ocfs2-tools-devel
mailing list