[PATCH] xfsprogs: skip freelist scans of corrupt agf

Rich Johnston rjohnston at sgi.com
Mon Mar 11 07:16:37 CDT 2013


This has been commited.

Thanks
--Rich

commit a529cc7f0e5bd1632e5169d015c54e3a6122ee0f
Author: Eric Sandeen <sandeen at sandeen.net>
Date:   Sat Mar 9 15:21:55 2013 +0000

     xfsprogs: skip freelist scans of corrupt agf

     If an agf has bad values in the freelist, this can wreak
     havoc if, for example, first > last and the loop
     never exits; we index agfl->agfl_bno[i] off into the weeds.

     If they're off, warn about it and skip the scan.

     This is done both in xfs_check and xfs_db's freespace cmd.

     Also fix uninit'd variable "i" from previous, similar fix
     for xfs_repair.

     Signed-off-by: Eric Sandeen <sandeen at redhat.com>
     Reviewed-by: Dave Chinner <dchinner at redhat.com>
     Signed-off-by: Rich Johnston <rjohnston at sgi.com>



More information about the xfs mailing list