bugGNU GRUB - Bugs: bug #23732, missing mapping from fs-block-no....

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #23732: missing mapping from fs-block-no. to disk-block-no. in xfs.c

Submitted by:  Niels Böhm <blubberdiblub>
Submitted on:  Sat 28 Jun 2008 12:34:08 PM UTC  
 
Category: FilesystemSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 1.96, but probably any
Release: NoneReproducibility: Every Time
Planned Release: None

Sun 29 Jun 2008 09:33:56 PM UTC, comment #1:

Committed, thanks!

Robert Millan <robertmh>
Project Administrator
Sat 28 Jun 2008 12:34:08 PM UTC, original submission:

Hi,

my root partition is an XFS filesystem, including /boot and /boot/grub. Grub had problems listing many directories correctly, producing garbled junk and barfing with "error: out of partition". Also some files read back data that was not in them.

I tracked the problem down to a missing mapping from the file system block numbering scheme ((agno << agbits) | block_in_ag) to the on-partition block numbering (agno * agsize + block_in_ag) in the grub_xfs_read_block() function.

It would affect all users who have a partition with more than one allocation group with an agsize which is not a power of 2.
The problem arises when grub encounters files with blocks not on ag#0 and directories which are extent lists not stored on ag#0.

Here is what I did to fix it:



I have no idea if I did it correctly, since I have no experience with grub's code, but it works for me ;)

Regards,
Niels

Niels Böhm <blubberdiblub>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by robertmh (Posted a comment)
  • -unavailable- added by blubberdiblub (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 29 Jun 2008 09:33:56 PM UTCrobertmhOpen/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1