Bug 210856 - gfs2_fsck needs to take into account endian bug in lf_dirent_format
Summary: gfs2_fsck needs to take into account endian bug in lf_dirent_format
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: gfs2-utils
Version: 5.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Ryan O'Hara
QA Contact: Dean Jansa
URL: http://marc.theaimsgroup.com/?l=linux...
Whiteboard:
Depends On:
Blocks: 204760
TreeView+ depends on / blocked
 
Reported: 2006-10-16 09:28 UTC by Steve Whitehouse
Modified: 2010-01-12 03:36 UTC (History)
0 users

Fixed In Version: RHBA-2007-0579
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-11-07 18:04:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0579 0 normal SHIPPED_LIVE gfs2-utils bug fix update 2007-11-08 14:13:05 UTC

Description Steve Whitehouse 2006-10-16 09:28:43 UTC
Description of problem:

As reported by Al Viro, early versions of GFS2 have had an problem in with the
lf_dirent_format field in that its 32 bits long, but only a cpu_to_be16()
conversion was being used. gfs2_fsck should accept either version of the
constant and rewrite it to the correct one.

This field isn't currently used by anything, but we might as well fix it up in
case of future need.

Comment 2 Ryan O'Hara 2006-11-16 20:00:42 UTC
Added code to check_leaf (metawalk.c) to detect lf_dirent_format fields that
have incorrect value. If found, we simply update the in-core leaf with
GFS2_FORMAT_DE and call gfs2_leaf_out(..), then mark the buffer as updated.

Note both the gfs2_leaf_in(..) and gfs2_leaf_out(..) convert the
lf_dirent_format as a 32-bit value.



Comment 6 errata-xmlrpc 2007-11-07 18:04:20 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0579.html



Note You need to log in before you can comment on or make changes to this bug.