http://oss.sgi.com/bugzilla/show_bug.cgi?id=864
Summary: mkfs_xfs hangs in phase 4
Product: XFS
Version: Current
Platform: All
OS/Version: Linux
Status: NEW
Severity: major
Priority: P1
Component: xfsprogs
AssignedTo: xfs-masters@xxxxxxxxxxx
ReportedBy: anillike@xxxxxxxxx
Estimated Hours: 0.0
Classification: Unclassified
For testing xfs_repair, I corrupt the disk using xfs_db and after that when I
tried to run xfs_repair on device , it hangs in phase 4.
After that I tried to find out the reason and I found that I hangs in
----------------------------------------------------------------------
[get_bmap_ext][166] blen=8 MIN(maxbno, key)=2768 maxbno=31626 key=2768
agbno=2760
[phase4][256] Value of j==2760 blen=8
[get_bmap_ext][166] blen=11 MIN(maxbno, key)=2779 maxbno=31626 key=2779
agbno=2768
[phase4][256] Value of j==2768 blen=11
[get_bmap_ext][166] blen=115 MIN(maxbno, key)=2894 maxbno=31626 key=2894
agbno=2779
[phase4][256] Value of j==2779 blen=115
[get_bmap_ext][166] blen=-14 MIN(maxbno, key)=2880 maxbno=31626 key=2880
agbno=2894
[phase4][256] Value of j==2894 blen=-14
[phase4][256] Value of j==2880 blen=14
[get_bmap_ext][166] blen=-14 MIN(maxbno, key)=2880 maxbno=31626 key=2880
agbno=2894
[phase4][256] Value of j==2894 blen=-14
[phase4][256] Value of j==2880 blen=14
[get_bmap_ext][166] blen=-14 MIN(maxbno, key)=2880 maxbno=31626 key=2880
agbno=2894
[phase4][256] Value of j==2894 blen=-14
[phase4][256] Value of j==2880 blen=14
[get_bmap_ext][166] blen=-14 MIN(maxbno, key)=2880 maxbno=31626 key=2880
agbno=2894
[phase4][256] Value of j==2894 blen=-14
[phase4][256] Value of j==2880 blen=14
[get_bmap_ext][166] blen=-14 MIN(maxbno, key)=2880 maxbno=31626 key=2880
agbno=2894
[phase4][256] Value of j==2894 blen=-14
[phase4][256] Value of j==2880 blen=14
[get_bmap_ext][166] blen=-14 MIN(maxbno, key)=2880 maxbno=31626 key=2880
agbno=2894
[phase4][256] Value of j==2894 blen=-14
[phase4][256] Value of j==2880 blen=14
[get_bmap_ext][166] blen=-14 MIN(maxbno, key)=2880 maxbno=31626 key=2880
agbno=2894
[phase4][256] Value of j==2894 blen=-14
[phase4][256] Value of j==2880 blen=14
[get_bmap_ext][166] blen=-14 MIN(maxbno, key)=2880 maxbno=31626 key=2880
agbno=2894
[phase4][256] Value of j==2894 blen=-14
[phase4][256] Value of j==2880 blen=14
[get_bmap_ext][166] blen=-14 MIN(maxbno, key)=2880 maxbno=31626 key=2880
agbno=2894
[phase4][256] Value of j==2894 blen=-14
[phase4][256] Value of j==2880 blen=14
[get_bmap_ext][166] blen=-14 MIN(maxbno, key)=2880 maxbno=31626 key=2880
agbno=2894
[phase4][256] Value of j==2894 blen=-14
[phase4][256] Value of j==2880 blen=14
[get_bmap_ext][166] blen=-14 MIN(maxbno, key)=2880 maxbno=31626 key=2880
agbno=2894
[phase4][256] Value of j==2894 blen=-14
[phase4][256] Value of j==2880 blen=14
[get_bmap_ext][166] blen=-14 MIN(maxbno, key)=2880 maxbno=31626 key=2880
agbno=2894
[phase4][256] Value of j==2894 blen=-14
[phase4][256] Value of j==2880 blen=14
[get_bmap_ext][166] blen=-14 MIN(maxbno, key)=2880 maxbno=31626 key=2880
agbno=2894
[phase4][256] Value of j==2894 blen=-14
[phase4][256] Value of j==2880 blen=14
[get_bmap_ext][166] blen=-14 MIN(maxbno, key)=2880 maxbno=31626 key=2880
agbno=2894
[phase4][256] Value of j==2894 blen=-14
[phase4][256] Value of j==2880 blen=14
[get_bmap_ext][166] blen=-14 MIN(maxbno, key)=2880 maxbno=31626 key=2880
agbno=2894
[phase4][256] Value of j==2894 blen=-14
[phase4][256] Value of j==2880 blen=14
[get_bmap_ext][166] blen=-14 MIN(maxbno, key)=2880 maxbno=31626 key=2880
agbno=2894
[phase4][256] Value of j==2894 blen=-14
[phase4][256] Value of j==2880 blen=14
[get_bmap_ext][166] blen=-14 MIN(maxbno, key)=2880 maxbno=31626 key=2880
agbno=2894
[phase4][256] Value of j==2894 blen=-14
[phase4][256] Value of j==2880 blen=14
-------------------------------------------------------------------------
It hangs in for loop of phase4 function , here we are getting negative blength
-14 and then +14 so in this way it creates infinite looop.
--
Configure bugmail: http://oss.sgi.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
|