linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* XFS_WANT_CORRUPTED_RETURN on xfs + dax
@ 2020-11-24 12:34 Wang Jianchao
  2020-11-24 16:52 ` Darrick J. Wong
  0 siblings, 1 reply; 4+ messages in thread
From: Wang Jianchao @ 2020-11-24 12:34 UTC (permalink / raw)
  To: linux-xfs

[-- Attachment #1: Type: text/plain, Size: 5507 bytes --]

Hi list

Help

We recently encountered an issue on xfs + dax + Aep of our online production
system as following,


[Mon Nov 16 23:39:04 2020] XFS (pmem1): Internal error 
XFS_WANT_CORRUPTED_RETURN at line 461 of file fs/xfs/libxfs/xfs_alloc.c. 
 Caller xfs_alloc_ag_vextent_size+0x578/0x6d0 [xfs]
[Mon Nov 16 23:39:04 2020] CPU: 77 PID: 53995 Comm: kvstore Kdump: 
...
[Mon Nov 16 23:39:04 2020] Call Trace:
[Mon Nov 16 23:39:04 2020]  dump_stack+0x5c/0x80
[Mon Nov 16 23:39:04 2020]  xfs_alloc_fixup_trees+0x1d7/0x370 [xfs]
[Mon Nov 16 23:39:04 2020]  xfs_alloc_ag_vextent_size+0x578/0x6d0 [xfs]
[Mon Nov 16 23:39:04 2020]  xfs_alloc_ag_vextent+0x126/0x140 [xfs]
[Mon Nov 16 23:39:04 2020]  xfs_alloc_vextent+0x43a/0x560 [xfs]
[Mon Nov 16 23:39:04 2020]  xfs_bmap_btalloc+0x462/0x8d0 [xfs]
[Mon Nov 16 23:39:04 2020]  xfs_bmapi_write+0x610/0xbc0 [xfs]
[Mon Nov 16 23:39:04 2020]  xfs_iomap_write_direct+0x254/0x330 [xfs]
[Mon Nov 16 23:39:04 2020]  xfs_file_iomap_begin+0x20b/0xa20 [xfs]
[Mon Nov 16 23:39:04 2020]  ? xfs_trans_free+0x55/0xc0 [xfs]
[Mon Nov 16 23:39:04 2020]  ? dax_iomap_rw+0xa0/0xa0
[Mon Nov 16 23:39:04 2020]  iomap_apply+0x63/0x130
[Mon Nov 16 23:39:04 2020]  ? dax_iomap_rw+0xa0/0xa0
[Mon Nov 16 23:39:04 2020]  dax_iomap_rw+0x73/0xa0
[Mon Nov 16 23:39:04 2020]  ? dax_iomap_rw+0xa0/0xa0
[Mon Nov 16 23:39:04 2020]  xfs_file_dax_write+0xce/0x230 [xfs]
[Mon Nov 16 23:39:04 2020]  ? try_to_wake_up+0x54/0x4b0
[Mon Nov 16 23:39:04 2020]  new_sync_write+0x124/0x170
[Mon Nov 16 23:39:04 2020]  vfs_write+0xa5/0x1a0
[Mon Nov 16 23:39:04 2020]  ksys_write+0x4f/0xb0
[Mon Nov 16 23:39:04 2020]  do_syscall_64+0x5b/0x1b0
[Mon Nov 16 23:39:04 2020]  entry_SYSCALL_64_after_hwframe+0x65/0xca
[Mon Nov 16 23:39:04 2020] RIP: 0033:0x7f621167985d

The kernel is based on Centos's 4.18.0-147.5.1.el8, and the code is

xfs_alloc_fixup_trees()
---
/*
	 * Look up the record in the by-size tree if necessary.
	 */
	if (flags & XFSA_FIXUP_CNT_OK) {
        ...
	} else {
		if ((error = xfs_alloc_lookup_eq(cnt_cur, fbno, flen, &i)))
			return error;
		XFS_WANT_CORRUPTED_RETURN(mp, i == 1);
	}
	/*
	 * Look up the record in the by-block tree if necessary.
	 */
	if (flags & XFSA_FIXUP_BNO_OK) {
        ...
	} else {
		if ((error = xfs_alloc_lookup_eq(bno_cur, fbno, flen, &i)))
			return error;
		XFS_WANT_CORRUPTED_RETURN(mp, i == 1);
	}
---

The warning message is triggered when it cannot find the block number in bno btree;

And When I checked the bno btree and cnt btree with xfs_db, found that the agf1's bno btree was broken
but the CRC was correct; 


keys[1-3] = [startblock,blockcount] 1:[21,2] 2:[2471622,3] 3:[2470630,2]
ptrs[1-3] = 1:4 2:6191 3:32028

1 (266 recs) 21  ~ [32029,2438438]  ~ 2470468  ~ 2471619
2 (303 recs) 2471622  ~ 2474735 2475851 2477827 2478034 2469802 2470467 2470469 ~ 2470628 
                                   ^       ^       ^       ^   
3 (482 recs) 2470630  ~ [2474736,30039184]

The 2nd btree block was disordered, four fsblocks, namely 2475851 2477827 2478034 2469802,
were inserted in the wrong place and in addition, they even shouldn't exist, as the two big extents
had included them.

The 1st element of the cnt btree is 2470467, but it cannot be found in bno btree due to wrong order.
Then warning message was post. The attachment is the detail of the bno and cnt btree.

And there was another calltrace, but I didn't get the image to run xfs_dbg,
Oct  7 18:22:44 kernel: XFS (pmem1): Internal error XFS_WANT_CORRUPTED_GOTO at line 3477 of file fs/xfs/libxfs/xfs_btree.c.  Caller xfs_free_ag_extent+0x46c/0x730 [xfs]
Oct  7 18:22:44 kernel: Call Trace:
Oct  7 18:22:44 kernel: dump_stack+0x5c/0x80
Oct  7 18:22:44 kernel: xfs_btree_insert+0x1ba/0x220 [xfs]
Oct  7 18:22:44 kernel: ? xfs_btree_lookup+0x2a9/0x460 [xfs]
Oct  7 18:22:44 kernel: ? xfs_free_ag_extent+0x46c/0x730 [xfs]
Oct  7 18:22:44 kernel: xfs_free_ag_extent+0x46c/0x730 [xfs]
Oct  7 18:22:44 kernel: ? xfs_perag_get+0x25/0xb0 [xfs]
Oct  7 18:22:44 kernel: xfs_free_agfl_block+0x2c/0x80 [xfs]
Oct  7 18:22:44 kernel: xfs_agfl_free_finish_item+0x17a/0x190 [xfs]
Oct  7 18:22:44 kernel: ? xfs_trans_add_item+0x33/0xa0 [xfs]
Oct  7 18:22:44 kernel: xfs_defer_finish_noroll+0x183/0x480 [xfs]
Oct  7 18:22:44 kernel: ? xfs_iomap_write_direct+0x26d/0x330 [xfs]
Oct  7 18:22:44 kernel: __xfs_trans_commit+0x13f/0x330 [xfs]
Oct  7 18:22:44 kernel: xfs_iomap_write_direct+0x26d/0x330 [xfs]
Oct  7 18:22:44 kernel: xfs_file_iomap_begin+0x20b/0xa00 [xfs]
Oct  7 18:22:44 kernel: ? dax_iomap_rw+0xa0/0xa0
Oct  7 18:22:44 kernel: iomap_apply+0x5f/0x130
Oct  7 18:22:44 kernel: ? dax_iomap_rw+0xa0/0xa0
Oct  7 18:22:44 kernel: dax_iomap_rw+0x73/0xa0
Oct  7 18:22:44 kernel: ? dax_iomap_rw+0xa0/0xa0
Oct  7 18:22:44 kernel: xfs_file_dax_write+0xce/0x220 [xfs]
Oct  7 18:22:44 kernel: ? xfs_file_dax_read+0x83/0xf0 [xfs]
Oct  7 18:22:44 kernel: new_sync_write+0x11e/0x170
Oct  7 18:22:44 kernel: vfs_write+0xa5/0x1a0
Oct  7 18:22:44 kernel: ksys_write+0x4f/0xb0
Oct  7 18:22:44 kernel: do_syscall_64+0x55/0x1b0
Oct  7 18:22:44 kernel: entry_SYSCALL_64_after_hwframe+0x65/0xca
Oct  7 18:22:44 kernel: RIP: 0033:0x7f546898085d

And the code should be
xfs_btree_insert()
---
		error = xfs_btree_insrec(pcur, level, &nptr, &rec, key,
				&ncur, &i);
		if (error) {
			if (pcur != cur)
				xfs_btree_del_cursor(pcur, XFS_BTREE_ERROR);
			goto error0;
		}

		XFS_WANT_CORRUPTED_GOTO(cur->bc_mp, i == 1, error0);
		level++;
---

This issue have been reproduced many times.

Many thanks for any help.

Jianchao

[-- Attachment #2: corrupted_aep_xfs.txt --]
[-- Type: text/plain, Size: 36387 bytes --]

xfs_db> type bnobt
xfs_db> p
magic = 0x41423342
level = 1
numrecs = 3
leftsib = null
rightsib = null
bno = 260277520
lsn = 0x480004ca28
uuid = 00828b03-5797-4179-acd2-4d153fb5d371
owner = 1
crc = 0x6bd8c9db (correct)
keys[1-3] = [startblock,blockcount] 1:[21,2] 2:[2471622,3] 3:[2470630,2]
ptrs[1-3] = 1:4 2:6191 3:32028
xfs_db> convert agno 1 agbno 4 fsblock2470468
0x2000004 (33554436)
xfs_db> fsblock 0x2000004 
xfs_db> type bnobt
xfs_db> p
magic = 0x41423342
level = 0
numrecs = 266
leftsib = null
rightsib = 6191
bno = 260111392
lsn = 0x480004ca28
uuid = 00828b03-5797-4179-acd2-4d153fb5d371
owner = 1
crc = 0x13b235d7 (correct)
recs[1-266] = [startblock,blockcount] 1:[21,2] 2:[29,770] 3:[800,2745] 4:[3546,2645] 5:[6192,1045] 6:[7238,1209] 7:[8448,5306] 8:[13755,1791] 9:[15547,427] 10:[15975,3723] 11:[19699,619] 12:[20319,451] 13:[20771,11257] 14:[32029,2438438] 15:[2470468,1] 16:[2470470,4] 17:[2470475,1] 18:[2470477,1] 19:[2470480,1] 20:[2470482,1] 21:[2470485,1] 22:[2470487,1] 23:[2470489,2] 24:[2470492,1] 25:[2470494,2] 26:[2470497,1] 27:[2470499,1] 28:[2470501,3] 29:[2470505,1] 30:[2470507,11] 31:[2470519,4] 32:[2470524,3] 33:[2470528,3] 34:[2470532,38] 35:[2470572,1] 36:[2470577,1] 37:[2470579,1] 38:[2470582,1] 39:[2470589,3] 40:[2470594,2] 41:[2470597,8] 42:[2470606,10] 43:[2470617,3] 44:[2470621,2] 45:[2470624,2] 46:[2470627,1] 47:[2470629,1] 48:[2470632,2] 49:[2470635,14] 50:[2470651,1] 51:[2470653,14] 52:[2470668,10] 53:[2470679,5] 54:[2470685,5] 55:[2470691,21] 56:[2470713,2] 57:[2470716,2] 58:[2470719,2] 59:[2470722,1] 60:[2470724,2] 61:[2470727,9] 62:[2470737,4] 63:[2470742,2] 64:[2470745,4] 65:[2470751,1] 66:[2470754,1] 67:[2470756,1] 68:[2470758,1] 69:[2470760,1] 70:[2470764,1] 71:[2470766,2] 72:[2470776,1] 73:[2470780,1] 74:[2470782,1] 75:[2470785,2] 76:[2470788,5] 77:[2470794,1] 78:[2470796,1] 79:[2470800,5] 80:[2470806,1] 81:[2470808,1] 82:[2470811,1] 83:[2470813,5] 84:[2470824,1] 85:[2470826,3] 86:[2470830,1] 87:[2470832,1] 88:[2470834,5] 89:[2470840,2] 90:[2470843,4] 91:[2470848,3] 92:[2470852,2] 93:[2470857,1] 94:[2470863,1] 95:[2470870,1] 96:[2470872,1] 97:[2470879,1] 98:[2470898,1] 99:[2470901,1] 100:[2470903,1] 101:[2470906,2] 102:[2470914,1] 103:[2470916,1] 104:[2470920,1] 105:[2470922,3] 106:[2470926,1] 107:[2470928,4] 108:[2470933,1] 109:[2470935,1] 110:[2470937,1] 111:[2470941,1] 112:[2470944,1] 113:[2470946,12] 114:[2470959,1] 115:[2470962,1] 116:[2470964,1] 117:[2470966,1] 118:[2470969,1] 119:[2470972,1] 120:[2470974,2] 121:[2470978,1] 122:[2470980,3] 123:[2470984,2] 124:[2470987,1] 125:[2470992,1] 126:[2470994,5] 127:[2471000,1] 128:[2471003,1] 129:[2471005,2] 130:[2471008,2] 131:[2471011,3] 132:[2471015,1] 133:[2471017,12] 134:[2471031,5] 135:[2471037,2] 136:[2471041,1] 137:[2471043,1] 138:[2471045,1] 139:[2471048,1] 140:[2471052,1] 141:[2471054,1] 142:[2471056,1] 143:[2471059,2] 144:[2471063,1] 145:[2471065,1] 146:[2471067,2] 147:[2471070,1] 148:[2471073,1] 149:[2471075,1] 150:[2471077,1] 151:[2471079,1] 152:[2471081,1] 153:[2471083,2] 154:[2471087,1] 155:[2471090,1] 156:[2471093,2] 157:[2471096,1] 158:[2471107,1] 159:[2471109,1] 160:[2471113,10] 161:[2471124,1] 162:[2471126,1] 163:[2471140,7] 164:[2471149,1] 165:[2471151,1] 166:[2471153,3] 167:[2471157,5] 168:[2471163,2] 169:[2471166,1] 170:[2471169,2] 171:[2471172,2] 172:[2471175,1] 173:[2471177,1] 174:[2471179,1] 175:[2471182,1] 176:[2471185,1] 177:[2471187,1] 178:[2471189,1] 179:[2471192,1] 180:[2471194,1] 181:[2471196,1] 182:[2471198,1] 183:[2471200,2] 184:[2471203,1] 185:[2471205,1] 186:[2471207,1] 187:[2471209,1] 188:[2471211,1] 189:[2471213,1] 190:[2471215,1] 191:[2471217,1] 192:[2471219,3] 193:[2471223,1] 194:[2471225,1] 195:[2471230,1] 196:[2471240,4] 197:[2471249,1] 198:[2471251,2] 199:[2471257,1] 200:[2471267,1] 201:[2471271,1] 202:[2471280,1] 203:[2471284,1] 204:[2471286,1] 205:[2471288,1] 206:[2471292,2] 207:[2471297,1] 208:[2471299,1] 209:[2471302,1] 210:[2471305,1] 211:[2471307,1] 212:[2471310,2] 213:[2471313,1] 214:[2471316,3] 215:[2471320,1] 216:[2471322,1] 217:[2471327,1] 218:[2471333,1] 219:[2471336,1] 220:[2471342,1] 221:[2471349,1] 222:[2471352,4] 223:[2471358,1] 224:[2471360,2] 225:[2471363,1] 226:[2471376,1] 227:[2471379,1] 228:[2471400,1] 229:[2471404,1] 230:[2471425,1] 231:[2471428,1] 232:[2471430,1] 233:[2471432,1] 234:[2471434,1] 235:[2471437,1] 236:[2471439,1] 237:[2471441,2] 238:[2471483,2] 239:[2471486,1] 240:[2471489,1] 241:[2471511,2] 242:[2471519,1] 243:[2471523,1] 244:[2471526,1] 245:[2471529,1] 246:[2471531,4] 247:[2471540,1] 248:[2471543,2] 249:[2471548,1] 250:[2471552,2] 251:[2471558,1] 252:[2471560,1] 253:[2471568,1] 254:[2471570,1] 255:[2471574,1] 256:[2471593,1] 257:[2471596,1] 258:[2471601,1] 259:[2471603,1] 260:[2471606,1] 261:[2471609,1] 262:[2471611,1] 263:[2471613,1] 264:[2471615,1] 265:[2471617,1] 266:[2471619,1]
xfs_db> convert agno 1 agbno 6191 fsblock
0x200182f (33560623)
xfs_db> fsblock 0x200182f
xfs_db> type bnobt
xfs_db> p
magic = 0x41423342
level = 0
numrecs = 303
leftsib = 4
rightsib = 32028
bno = 260160888
lsn = 0x480004a9c0
uuid = 00828b03-5797-4179-acd2-4d153fb5d371
owner = 1
crc = 0x804caac1 (correct)
recs[1-303] = [startblock,blockcount] 1:[2471622,3] 2:[2471627,1] 3:[2471630,1] 4:[2471632,1] 5:[2471634,3] 6:[2471638,1] 7:[2471641,1] 8:[2471644,1] 9:[2471646,1] 10:[2471648,4] 11:[2471654,2] 12:[2471657,1] 13:[2471659,3] 14:[2471663,1] 15:[2471670,1] 16:[2471672,1] 17:[2471674,4] 18:[2471679,1] 19:[2471681,2] 20:[2471730,1] 21:[2471734,1] 22:[2471743,1] 23:[2471767,1] 24:[2471769,1] 25:[2471771,1] 26:[2471774,2] 27:[2471796,1] 28:[2471803,1] 29:[2471812,1] 30:[2471858,1] 31:[2471894,1] 32:[2471898,1] 33:[2471901,1] 34:[2471904,1] 35:[2471907,3] 36:[2471911,1] 37:[2471913,1] 38:[2471915,1] 39:[2471924,1] 40:[2471929,2] 41:[2471936,1] 42:[2471939,1] 43:[2471941,3] 44:[2471945,1] 45:[2471951,1] 46:[2471955,1] 47:[2471958,1] 48:[2471960,1] 49:[2471962,1] 50:[2471966,1] 51:[2471971,1] 52:[2471976,1] 53:[2471988,1] 54:[2472050,1] 55:[2472056,2] 56:[2472088,1] 57:[2472105,1] 58:[2472111,2] 59:[2472115,3] 60:[2472119,4] 61:[2472125,2] 62:[2472129,1] 63:[2472162,1] 64:[2472172,1] 65:[2472175,5] 66:[2472182,1] 67:[2472184,2] 68:[2472187,1] 69:[2472193,2] 70:[2472226,1] 71:[2472295,1] 72:[2472297,2] 73:[2472300,3] 74:[2472304,2] 75:[2472307,1] 76:[2472309,1] 77:[2472311,1] 78:[2472313,1] 79:[2472315,1] 80:[2472317,1] 81:[2472321,4] 82:[2472326,1] 83:[2472328,1] 84:[2472333,1] 85:[2472336,2] 86:[2472351,1] 87:[2472512,2] 88:[2472519,2] 89:[2472523,1] 90:[2472528,1] 91:[2472534,1] 92:[2472547,1] 93:[2472568,1] 94:[2472570,1] 95:[2472574,1] 96:[2472578,1] 97:[2472580,1] 98:[2472800,2] 99:[2472851,1] 100:[2472854,1] 101:[2472860,1] 102:[2472862,1] 103:[2472865,1] 104:[2473340,1] 105:[2473343,1] 106:[2473346,1] 107:[2473348,1] 108:[2473355,2] 109:[2473360,1] 110:[2473362,3] 111:[2473372,1] 112:[2473375,1] 113:[2473377,1] 114:[2473379,1] 115:[2473382,1] 116:[2473384,1] 117:[2473395,1] 118:[2473397,1] 119:[2473400,1] 120:[2473403,1] 121:[2473405,2] 122:[2473408,1] 123:[2473410,1] 124:[2473413,1] 125:[2473417,1] 126:[2473586,1] 127:[2473792,1] 128:[2473794,1] 129:[2473797,1] 130:[2473800,1] 131:[2473802,1] 132:[2473804,1] 133:[2473808,2] 134:[2473812,1] 135:[2473815,1] 136:[2473817,1] 137:[2473822,1] 138:[2473824,1] 139:[2473826,1] 140:[2473828,2] 141:[2473831,1] 142:[2473833,1] 143:[2473837,2] 144:[2473841,2] 145:[2473887,1] 146:[2473933,1] 147:[2473935,1] 148:[2473946,1] 149:[2474012,1] 150:[2474014,1] 151:[2474016,1] 152:[2474019,1] 153:[2474023,1] 154:[2474027,1] 155:[2474031,1] 156:[2474033,1] 157:[2474036,1] 158:[2474041,1] 159:[2474044,1] 160:[2474046,1] 161:[2474050,1] 162:[2474057,1] 163:[2474061,1] 164:[2474063,1] 165:[2474065,1] 166:[2474069,1] 167:[2474072,2] 168:[2474075,1] 169:[2474077,1] 170:[2474079,2] 171:[2474082,1] 172:[2474084,1] 173:[2474087,2] 174:[2474090,1] 175:[2474092,4] 176:[2474173,1] 177:[2474177,1] 178:[2474181,1] 179:[2474185,1] 180:[2474188,1] 181:[2474190,1] 182:[2474194,1] 183:[2474196,1] 184:[2474200,1] 185:[2474204,1] 186:[2474206,1] 187:[2474209,1] 188:[2474214,1] 189:[2474216,1] 190:[2474256,1] 191:[2474260,1] 192:[2474300,1] 193:[2474304,1] 194:[2474306,1] 195:[2474308,1] 196:[2474312,1] 197:[2474314,1] 198:[2474316,1] 199:[2474319,1] 200:[2474322,1] 201:[2474324,1] 202:[2474328,1] 203:[2474340,1] 204:[2474342,1] 205:[2474345,1] 206:[2474376,1] 207:[2474383,1] 208:[2474385,1] 209:[2474406,1] 210:[2474414,1] 211:[2474416,1] 212:[2474418,1] 213:[2474429,1] 214:[2474431,1] 215:[2474433,1] 216:[2474436,1] 217:[2474439,2] 218:[2474442,1] 219:[2474444,1] 220:[2474446,1] 221:[2474448,1] 222:[2474451,1] 223:[2474453,1] 224:[2474456,1] 225:[2474458,1] 226:[2474460,1] 227:[2474462,1] 228:[2474464,1] 229:[2474466,1] 230:[2474485,4] 231:[2474491,1] 232:[2474493,1] 233:[2474496,1] 234:[2474500,1] 235:[2474505,1] 236:[2474507,1] 237:[2474510,1] 238:[2474512,1] 239:[2474515,1] 240:[2474518,1] 241:[2474520,1] 242:[2474522,1] 243:[2474525,1] 244:[2474527,1] 245:[2474530,1] 246:[2474533,1] 247:[2474566,1] 248:[2474569,1] 249:[2474653,1] 250:[2474656,1] 251:[2474659,2] 252:[2474662,1] 253:[2474664,1] 254:[2474669,1] 255:[2474676,1] 256:[2474680,1] 257:[2474683,1] 258:[2474686,3] 259:[2474690,1] 260:[2474694,1] 261:[2474696,1] 262:[2474713,1] 263:[2474715,1] 264:[2474729,1] 265:[2474732,1] 266:[2474735,1] 267:[2475851,1] 268:[2477827,1] 269:[2478034,1] 270:[2469802,1] 271:[2470467,1] 272:[2470469,1] 273:[2470474,1] 274:[2470476,1] 275:[2470478,2] 276:[2470481,1] 277:[2470483,2] 278:[2470486,1] 279:[2470488,1] 280:[2470491,1] 281:[2470493,1] 282:[2470496,1] 283:[2470498,1] 284:[2470500,1] 285:[2470504,1] 286:[2470506,1] 287:[2470518,1] 288:[2470523,1] 289:[2470527,1] 290:[2470531,1] 291:[2470570,2] 292:[2470573,4] 293:[2470578,1] 294:[2470580,2] 295:[2470583,6] 296:[2470592,2] 297:[2470596,1] 298:[2470605,1] 299:[2470616,1] 300:[2470620,1] 301:[2470623,1] 302:[2470626,1] 303:[2470628,1]
xfs_db> convert agno 1 agbno  32028 fsblock
0x2007d1c (33586460)
xfs_db> fsblock 0x2007d1c
xfs_db> bnobt
command bnobt not found
xfs_db> type bnobt
xfs_db> p
magic = 0x41423342
level = 0
numrecs = 482
leftsib = 6191
rightsib = null
bno = 260367584
lsn = 0x480004a550
uuid = 00828b03-5797-4179-acd2-4d153fb5d371
owner = 1
crc = 0xf6b4cd63 (correct)
recs[1-482] = [startblock,blockcount] 1:[2470630,2] 2:[2470634,1] 3:[2470649,2] 4:[2470652,1] 5:[2470667,1] 6:[2470678,1] 7:[2470684,1] 8:[2470690,1] 9:[2470715,1] 10:[2470726,1] 11:[2470736,1] 12:[2470741,1] 13:[2470744,1] 14:[2470749,2] 15:[2470752,2] 16:[2470755,1] 17:[2470757,1] 18:[2470759,1] 19:[2470761,3] 20:[2470765,1] 21:[2470768,8] 22:[2470777,3] 23:[2470781,1] 24:[2470783,2] 25:[2470787,1] 26:[2470793,1] 27:[2470795,1] 28:[2470797,3] 29:[2470805,1] 30:[2470807,1] 31:[2470809,2] 32:[2470812,1] 33:[2470818,6] 34:[2470825,1] 35:[2470829,1] 36:[2470831,1] 37:[2470833,1] 38:[2470839,1] 39:[2470842,1] 40:[2470847,1] 41:[2470851,1] 42:[2470854,3] 43:[2470858,5] 44:[2470864,6] 45:[2470871,1] 46:[2470873,6] 47:[2470880,18] 48:[2470899,2] 49:[2470902,1] 50:[2470904,2] 51:[2470908,6] 52:[2470915,1] 53:[2470917,3] 54:[2470921,1] 55:[2470925,1] 56:[2470927,1] 57:[2470932,1] 58:[2470934,1] 59:[2470936,1] 60:[2470938,3] 61:[2470942,2] 62:[2470945,1] 63:[2470958,1] 64:[2470960,2] 65:[2470963,1] 66:[2470965,1] 67:[2470967,2] 68:[2470970,2] 69:[2470973,1] 70:[2470976,2] 71:[2470979,1] 72:[2470983,1] 73:[2470986,1] 74:[2470988,4] 75:[2470993,1] 76:[2470999,1] 77:[2471001,2] 78:[2471004,1] 79:[2471007,1] 80:[2471010,1] 81:[2471014,1] 82:[2471016,1] 83:[2471029,2] 84:[2471036,1] 85:[2471039,2] 86:[2471042,1] 87:[2471044,1] 88:[2471046,2] 89:[2471049,3] 90:[2471053,1] 91:[2471055,1] 92:[2471057,2] 93:[2471061,2] 94:[2471064,1] 95:[2471066,1] 96:[2471069,1] 97:[2471071,2] 98:[2471074,1] 99:[2471076,1] 100:[2471078,1] 101:[2471080,1] 102:[2471082,1] 103:[2471085,2] 104:[2471088,2] 105:[2471091,2] 106:[2471095,1] 107:[2471097,10] 108:[2471108,1] 109:[2471110,3] 110:[2471123,1] 111:[2471125,1] 112:[2471127,13] 113:[2471147,2] 114:[2471150,1] 115:[2471152,1] 116:[2471156,1] 117:[2471162,1] 118:[2471165,1] 119:[2471167,2] 120:[2471171,1] 121:[2471174,1] 122:[2471176,1] 123:[2471178,1] 124:[2471180,2] 125:[2471183,2] 126:[2471186,1] 127:[2471188,1] 128:[2471190,2] 129:[2471193,1] 130:[2471195,1] 131:[2471197,1] 132:[2471199,1] 133:[2471202,1] 134:[2471204,1] 135:[2471206,1] 136:[2471208,1] 137:[2471210,1] 138:[2471212,1] 139:[2471214,1] 140:[2471216,1] 141:[2471218,1] 142:[2471222,1] 143:[2471224,1] 144:[2471226,4] 145:[2471231,9] 146:[2471244,5] 147:[2471250,1] 148:[2471253,4] 149:[2471258,9] 150:[2471268,3] 151:[2471272,8] 152:[2471281,3] 153:[2471285,1] 154:[2471287,1] 155:[2471289,3] 156:[2471294,3] 157:[2471298,1] 158:[2471300,2] 159:[2471303,2] 160:[2471306,1] 161:[2471308,2] 162:[2471312,1] 163:[2471314,2] 164:[2471319,1] 165:[2471321,1] 166:[2471323,4] 167:[2471328,5] 168:[2471334,2] 169:[2471337,5] 170:[2471343,6] 171:[2471350,2] 172:[2471356,2] 173:[2471359,1] 174:[2471362,1] 175:[2471364,12] 176:[2471377,2] 177:[2471380,20] 178:[2471401,3] 179:[2471405,20] 180:[2471426,2] 181:[2471429,1] 182:[2471431,1] 183:[2471433,1] 184:[2471435,2] 185:[2471438,1] 186:[2471440,1] 187:[2471443,40] 188:[2471485,1] 189:[2471487,2] 190:[2471490,21] 191:[2471513,6] 192:[2471520,3] 193:[2471524,2] 194:[2471527,2] 195:[2471530,1] 196:[2471535,5] 197:[2471541,2] 198:[2471545,3] 199:[2471549,3] 200:[2471554,4] 201:[2471559,1] 202:[2471561,7] 203:[2471569,1] 204:[2471571,3] 205:[2471575,18] 206:[2471594,2] 207:[2471597,4] 208:[2471602,1] 209:[2471604,2] 210:[2471607,2] 211:[2471610,1] 212:[2471612,1] 213:[2471614,1] 214:[2471616,1] 215:[2471618,1] 216:[2471620,2] 217:[2471625,2] 218:[2471628,2] 219:[2471631,1] 220:[2471633,1] 221:[2471637,1] 222:[2471639,2] 223:[2471642,2] 224:[2471645,1] 225:[2471647,1] 226:[2471652,2] 227:[2471656,1] 228:[2471658,1] 229:[2471662,1] 230:[2471664,6] 231:[2471671,1] 232:[2471673,1] 233:[2471678,1] 234:[2471680,1] 235:[2471683,47] 236:[2471731,3] 237:[2471735,8] 238:[2471744,23] 239:[2471768,1] 240:[2471770,1] 241:[2471772,2] 242:[2471776,20] 243:[2471797,6] 244:[2471804,8] 245:[2471813,45] 246:[2471859,35] 247:[2471895,3] 248:[2471899,2] 249:[2471902,2] 250:[2471905,2] 251:[2471910,1] 252:[2471912,1] 253:[2471914,1] 254:[2471916,8] 255:[2471925,4] 256:[2471931,5] 257:[2471937,2] 258:[2471940,1] 259:[2471944,1] 260:[2471946,5] 261:[2471952,3] 262:[2471956,2] 263:[2471959,1] 264:[2471961,1] 265:[2471963,3] 266:[2471967,4] 267:[2471972,4] 268:[2471977,11] 269:[2471989,61] 270:[2472051,5] 271:[2472058,30] 272:[2472089,16] 273:[2472106,5] 274:[2472113,2] 275:[2472118,1] 276:[2472123,2] 277:[2472127,2] 278:[2472130,32] 279:[2472163,9] 280:[2472173,2] 281:[2472180,2] 282:[2472183,1] 283:[2472186,1] 284:[2472188,5] 285:[2472195,31] 286:[2472227,68] 287:[2472296,1] 288:[2472299,1] 289:[2472303,1] 290:[2472306,1] 291:[2472308,1] 292:[2472310,1] 293:[2472312,1] 294:[2472314,1] 295:[2472316,1] 296:[2472318,3] 297:[2472325,1] 298:[2472327,1] 299:[2472329,4] 300:[2472334,2] 301:[2472338,13] 302:[2472352,160] 303:[2472514,5] 304:[2472521,2] 305:[2472524,4] 306:[2472529,5] 307:[2472535,12] 308:[2472548,20] 309:[2472569,1] 310:[2472571,3] 311:[2472575,3] 312:[2472579,1] 313:[2472581,219] 314:[2472802,49] 315:[2472852,2] 316:[2472855,5] 317:[2472861,1] 318:[2472863,2] 319:[2472866,474] 320:[2473341,2] 321:[2473344,2] 322:[2473347,1] 323:[2473349,6] 324:[2473357,3] 325:[2473361,1] 326:[2473365,7] 327:[2473373,2] 328:[2473376,1] 329:[2473378,1] 330:[2473380,2] 331:[2473383,1] 332:[2473385,10] 333:[2473396,1] 334:[2473398,2] 335:[2473401,2] 336:[2473404,1] 337:[2473407,1] 338:[2473409,1] 339:[2473411,2] 340:[2473414,3] 341:[2473418,168] 342:[2473587,205] 343:[2473793,1] 344:[2473795,2] 345:[2473798,2] 346:[2473801,1] 347:[2473803,1] 348:[2473805,3] 349:[2473810,2] 350:[2473813,2] 351:[2473816,1] 352:[2473818,4] 353:[2473823,1] 354:[2473825,1] 355:[2473827,1] 356:[2473830,1] 357:[2473832,1] 358:[2473834,3] 359:[2473839,2] 360:[2473843,44] 361:[2473888,45] 362:[2473934,1] 363:[2473936,10] 364:[2473947,65] 365:[2474013,1] 366:[2474015,1] 367:[2474017,2] 368:[2474020,3] 369:[2474024,3] 370:[2474028,3] 371:[2474032,1] 372:[2474034,2] 373:[2474037,4] 374:[2474042,2] 375:[2474045,1] 376:[2474047,3] 377:[2474051,6] 378:[2474058,3] 379:[2474062,1] 380:[2474064,1] 381:[2474066,3] 382:[2474070,2] 383:[2474074,1] 384:[2474076,1] 385:[2474078,1] 386:[2474081,1] 387:[2474083,1] 388:[2474085,2] 389:[2474089,1] 390:[2474091,1] 391:[2474096,77] 392:[2474174,3] 393:[2474178,3] 394:[2474182,3] 395:[2474186,2] 396:[2474189,1] 397:[2474191,3] 398:[2474195,1] 399:[2474197,3] 400:[2474201,3] 401:[2474205,1] 402:[2474207,2] 403:[2474210,4] 404:[2474215,1] 405:[2474217,39] 406:[2474257,3] 407:[2474261,39] 408:[2474301,3] 409:[2474305,1] 410:[2474307,1] 411:[2474309,3] 412:[2474313,1] 413:[2474315,1] 414:[2474317,2] 415:[2474320,2] 416:[2474323,1] 417:[2474325,3] 418:[2474329,11] 419:[2474341,1] 420:[2474343,2] 421:[2474346,30] 422:[2474377,6] 423:[2474384,1] 424:[2474386,20] 425:[2474407,7] 426:[2474415,1] 427:[2474417,1] 428:[2474419,10] 429:[2474430,1] 430:[2474432,1] 431:[2474434,2] 432:[2474437,2] 433:[2474441,1] 434:[2474443,1] 435:[2474445,1] 436:[2474447,1] 437:[2474449,2] 438:[2474452,1] 439:[2474454,2] 440:[2474457,1] 441:[2474459,1] 442:[2474461,1] 443:[2474463,1] 444:[2474465,1] 445:[2474467,18] 446:[2474489,2] 447:[2474492,1] 448:[2474494,2] 449:[2474497,3] 450:[2474501,4] 451:[2474506,1] 452:[2474508,2] 453:[2474511,1] 454:[2474513,2] 455:[2474516,2] 456:[2474519,1] 457:[2474521,1] 458:[2474523,2] 459:[2474526,1] 460:[2474528,2] 461:[2474531,2] 462:[2474534,32] 463:[2474567,2] 464:[2474570,83] 465:[2474654,2] 466:[2474657,2] 467:[2474661,1] 468:[2474663,1] 469:[2474665,4] 470:[2474670,6] 471:[2474677,3] 472:[2474681,2] 473:[2474684,2] 474:[2474689,1] 475:[2474691,3] 476:[2474695,1] 477:[2474697,16] 478:[2474714,1] 479:[2474716,13] 480:[2474730,2] 481:[2474733,2] 482:[2474736,30039184]


xfs_db> agf 1
xfs_db> p
magicnum = 0x58414746
versionnum = 1
seqno = 1
length = 32513920
bnoroot = 20770
cntroot = 19698
bnolevel = 2
cntlevel = 2
flfirst = 533
fllast = 538
flcount = 6
freeblks = 32513881
longest = 30039184
btreeblks = 6
uuid = 00828b03-5797-4179-acd2-4d153fb5d371
lsn = 0x480004ca28
crc = 0x78822706 (correct)
xfs_db> convert agno 1 agbno 19698 fsblock
0x2004cf2 (33574130)
xfs_db> fsblock 0x2004cf2
xfs_db> type cntbt
xfs_db> p
magic = 0x41423343
level = 1
numrecs = 3
leftsib = null
rightsib = null
bno = 260268944
lsn = 0x480004ca28
uuid = 00828b03-5797-4179-acd2-4d153fb5d371
owner = 1
crc = 0x87c5747b (correct)
keys[1-3] = [blockcount,startblock] 1:[1,2470467] 2:[1,2473382] 3:[2,2471085]
ptrs[1-3] = 1:5 2:13754 3:7237
xfs_db> convert agno 1 agbno 5 fsblock
0x2000005 (33554437)
xfs_db> type cntbt
xfs_db> p 
magic = 0x41423343
level = 1
numrecs = 3
leftsib = null
rightsib = null
bno = 260268944
lsn = 0x480004ca28
uuid = 00828b03-5797-4179-acd2-4d153fb5d371
owner = 1
crc = 0x87c5747b (correct)
keys[1-3] = [blockcount,startblock] 1:[1,2470467] 2:[1,2473382] 3:[2,2471085]
ptrs[1-3] = 1:5 2:13754 3:7237
xfs_db> convert agno 1 agbno 5 fsblock
0x2000005 (33554437)
xfs_db> fsblock 0x2000005
xfs_db> type cntbt
xfs_db> p
magic = 0x41423343
level = 0
numrecs = 449
leftsib = null
rightsib = 13754
bno = 260111400
lsn = 0x480004ca28
uuid = 00828b03-5797-4179-acd2-4d153fb5d371
owner = 1
crc = 0x7df0b09f (correct)
recs[1-449] = [startblock,blockcount] 1:[2470467,1] 2:[2470468,1] 3:[2470469,1] 4:[2470474,1] 5:[2470475,1] 6:[2470476,1] 7:[2470477,1] 8:[2470480,1] 9:[2470481,1] 10:[2470482,1] 11:[2470485,1] 12:[2470486,1] 13:[2470487,1] 14:[2470488,1] 15:[2470491,1] 16:[2470492,1] 17:[2470493,1] 18:[2470496,1] 19:[2470497,1] 20:[2470498,1] 21:[2470499,1] 22:[2470500,1] 23:[2470504,1] 24:[2470505,1] 25:[2470506,1] 26:[2470518,1] 27:[2470523,1] 28:[2470527,1] 29:[2470531,1] 30:[2470572,1] 31:[2470577,1] 32:[2470578,1] 33:[2470579,1] 34:[2470582,1] 35:[2470596,1] 36:[2470605,1] 37:[2470616,1] 38:[2470620,1] 39:[2470623,1] 40:[2470626,1] 41:[2470627,1] 42:[2470628,1] 43:[2470629,1] 44:[2470634,1] 45:[2470651,1] 46:[2470652,1] 47:[2470667,1] 48:[2470678,1] 49:[2470684,1] 50:[2470690,1] 51:[2470712,1] 52:[2470715,1] 53:[2470718,1] 54:[2470721,1] 55:[2470722,1] 56:[2470723,1] 57:[2470726,1] 58:[2470736,1] 59:[2470741,1] 60:[2470744,1] 61:[2470751,1] 62:[2470754,1] 63:[2470755,1] 64:[2470756,1] 65:[2470757,1] 66:[2470758,1] 67:[2470759,1] 68:[2470760,1] 69:[2470764,1] 70:[2470765,1] 71:[2470776,1] 72:[2470780,1] 73:[2470781,1] 74:[2470782,1] 75:[2470787,1] 76:[2470793,1] 77:[2470794,1] 78:[2470795,1] 79:[2470796,1] 80:[2470805,1] 81:[2470806,1] 82:[2470807,1] 83:[2470808,1] 84:[2470811,1] 85:[2470812,1] 86:[2470824,1] 87:[2470825,1] 88:[2470829,1] 89:[2470830,1] 90:[2470831,1] 91:[2470832,1] 92:[2470833,1] 93:[2470839,1] 94:[2470842,1] 95:[2470847,1] 96:[2470851,1] 97:[2470857,1] 98:[2470863,1] 99:[2470870,1] 100:[2470871,1] 101:[2470872,1] 102:[2470879,1] 103:[2470898,1] 104:[2470901,1] 105:[2470902,1] 106:[2470903,1] 107:[2470914,1] 108:[2470915,1] 109:[2470916,1] 110:[2470920,1] 111:[2470921,1] 112:[2470925,1] 113:[2470926,1] 114:[2470927,1] 115:[2470932,1] 116:[2470933,1] 117:[2470934,1] 118:[2470935,1] 119:[2470936,1] 120:[2470937,1] 121:[2470941,1] 122:[2470944,1] 123:[2470945,1] 124:[2470958,1] 125:[2470959,1] 126:[2470962,1] 127:[2470963,1] 128:[2470964,1] 129:[2470965,1] 130:[2470966,1] 131:[2470969,1] 132:[2470972,1] 133:[2470973,1] 134:[2470978,1] 135:[2470979,1] 136:[2470983,1] 137:[2470986,1] 138:[2470987,1] 139:[2470992,1] 140:[2470993,1] 141:[2470999,1] 142:[2471000,1] 143:[2471003,1] 144:[2471004,1] 145:[2471007,1] 146:[2471010,1] 147:[2471014,1] 148:[2471015,1] 149:[2471016,1] 150:[2471036,1] 151:[2471041,1] 152:[2471042,1] 153:[2471043,1] 154:[2471044,1] 155:[2471045,1] 156:[2471048,1] 157:[2471052,1] 158:[2471053,1] 159:[2471054,1] 160:[2471055,1] 161:[2471056,1] 162:[2471063,1] 163:[2471064,1] 164:[2471065,1] 165:[2471066,1] 166:[2471069,1] 167:[2471070,1] 168:[2471073,1] 169:[2471074,1] 170:[2471075,1] 171:[2471076,1] 172:[2471077,1] 173:[2471078,1] 174:[2471079,1] 175:[2471080,1] 176:[2471081,1] 177:[2471082,1] 178:[2471087,1] 179:[2471090,1] 180:[2471095,1] 181:[2471096,1] 182:[2471107,1] 183:[2471108,1] 184:[2471109,1] 185:[2471123,1] 186:[2471124,1] 187:[2471125,1] 188:[2471126,1] 189:[2471149,1] 190:[2471150,1] 191:[2471151,1] 192:[2471152,1] 193:[2471156,1] 194:[2471162,1] 195:[2471165,1] 196:[2471166,1] 197:[2471171,1] 198:[2471174,1] 199:[2471175,1] 200:[2471176,1] 201:[2471177,1] 202:[2471178,1] 203:[2471179,1] 204:[2471182,1] 205:[2471185,1] 206:[2471186,1] 207:[2471187,1] 208:[2471188,1] 209:[2471189,1] 210:[2471192,1] 211:[2471193,1] 212:[2471194,1] 213:[2471195,1] 214:[2471196,1] 215:[2471197,1] 216:[2471198,1] 217:[2471199,1] 218:[2471202,1] 219:[2471203,1] 220:[2471204,1] 221:[2471205,1] 222:[2471206,1] 223:[2471207,1] 224:[2471208,1] 225:[2471209,1] 226:[2471210,1] 227:[2471211,1] 228:[2471212,1] 229:[2471213,1] 230:[2471214,1] 231:[2471215,1] 232:[2471216,1] 233:[2471217,1] 234:[2471218,1] 235:[2471222,1] 236:[2471223,1] 237:[2471224,1] 238:[2471225,1] 239:[2471230,1] 240:[2471249,1] 241:[2471250,1] 242:[2471257,1] 243:[2471267,1] 244:[2471271,1] 245:[2471280,1] 246:[2471284,1] 247:[2471285,1] 248:[2471286,1] 249:[2471287,1] 250:[2471288,1] 251:[2471297,1] 252:[2471298,1] 253:[2471299,1] 254:[2471302,1] 255:[2471305,1] 256:[2471306,1] 257:[2471307,1] 258:[2471312,1] 259:[2471313,1] 260:[2471319,1] 261:[2471320,1] 262:[2471321,1] 263:[2471322,1] 264:[2471327,1] 265:[2471333,1] 266:[2471336,1] 267:[2471342,1] 268:[2471349,1] 269:[2471358,1] 270:[2471359,1] 271:[2471362,1] 272:[2471363,1] 273:[2471376,1] 274:[2471379,1] 275:[2471400,1] 276:[2471404,1] 277:[2471425,1] 278:[2471428,1] 279:[2471429,1] 280:[2471430,1] 281:[2471431,1] 282:[2471432,1] 283:[2471433,1] 284:[2471434,1] 285:[2471437,1] 286:[2471438,1] 287:[2471439,1] 288:[2471440,1] 289:[2471485,1] 290:[2471486,1] 291:[2471489,1] 292:[2471519,1] 293:[2471523,1] 294:[2471526,1] 295:[2471529,1] 296:[2471530,1] 297:[2471540,1] 298:[2471548,1] 299:[2471558,1] 300:[2471559,1] 301:[2471560,1] 302:[2471568,1] 303:[2471569,1] 304:[2471570,1] 305:[2471574,1] 306:[2471593,1] 307:[2471596,1] 308:[2471601,1] 309:[2471602,1] 310:[2471603,1] 311:[2471606,1] 312:[2471609,1] 313:[2471610,1] 314:[2471611,1] 315:[2471612,1] 316:[2471613,1] 317:[2471614,1] 318:[2471615,1] 319:[2471616,1] 320:[2471617,1] 321:[2471618,1] 322:[2471619,1] 323:[2471627,1] 324:[2471630,1] 325:[2471631,1] 326:[2471632,1] 327:[2471633,1] 328:[2471637,1] 329:[2471638,1] 330:[2471641,1] 331:[2471644,1] 332:[2471645,1] 333:[2471646,1] 334:[2471647,1] 335:[2471656,1] 336:[2471657,1] 337:[2471658,1] 338:[2471662,1] 339:[2471663,1] 340:[2471670,1] 341:[2471671,1] 342:[2471672,1] 343:[2471673,1] 344:[2471678,1] 345:[2471679,1] 346:[2471680,1] 347:[2471730,1] 348:[2471734,1] 349:[2471743,1] 350:[2471767,1] 351:[2471768,1] 352:[2471769,1] 353:[2471770,1] 354:[2471771,1] 355:[2471796,1] 356:[2471803,1] 357:[2471812,1] 358:[2471858,1] 359:[2471894,1] 360:[2471898,1] 361:[2471901,1] 362:[2471904,1] 363:[2471910,1] 364:[2471911,1] 365:[2471912,1] 366:[2471913,1] 367:[2471914,1] 368:[2471915,1] 369:[2471924,1] 370:[2471936,1] 371:[2471939,1] 372:[2471940,1] 373:[2471944,1] 374:[2471945,1] 375:[2471951,1] 376:[2471955,1] 377:[2471958,1] 378:[2471959,1] 379:[2471960,1] 380:[2471961,1] 381:[2471962,1] 382:[2471966,1] 383:[2471971,1] 384:[2471976,1] 385:[2471988,1] 386:[2472050,1] 387:[2472088,1] 388:[2472105,1] 389:[2472118,1] 390:[2472129,1] 391:[2472162,1] 392:[2472172,1] 393:[2472182,1] 394:[2472183,1] 395:[2472186,1] 396:[2472187,1] 397:[2472226,1] 398:[2472295,1] 399:[2472296,1] 400:[2472299,1] 401:[2472303,1] 402:[2472306,1] 403:[2472307,1] 404:[2472308,1] 405:[2472309,1] 406:[2472310,1] 407:[2472311,1] 408:[2472312,1] 409:[2472313,1] 410:[2472314,1] 411:[2472315,1] 412:[2472316,1] 413:[2472317,1] 414:[2472325,1] 415:[2472326,1] 416:[2472327,1] 417:[2472328,1] 418:[2472333,1] 419:[2472351,1] 420:[2472523,1] 421:[2472528,1] 422:[2472534,1] 423:[2472547,1] 424:[2472568,1] 425:[2472569,1] 426:[2472570,1] 427:[2472574,1] 428:[2472578,1] 429:[2472579,1] 430:[2472580,1] 431:[2472851,1] 432:[2472854,1] 433:[2472860,1] 434:[2472861,1] 435:[2472862,1] 436:[2472865,1] 437:[2473340,1] 438:[2473343,1] 439:[2473346,1] 440:[2473347,1] 441:[2473348,1] 442:[2473360,1] 443:[2473361,1] 444:[2473372,1] 445:[2473375,1] 446:[2473376,1] 447:[2473377,1] 448:[2473378,1] 449:[2473379,1]


xfs_db> convert agno 1 agbno 13754 fsblock
0x20035ba (33568186)
xfs_db> fsblock 0x20035ba
xfs_db> type cntbt
xfs_db> p
magic = 0x41423343
level = 0
numrecs = 253
leftsib = 5
rightsib = 7237
bno = 260221392
lsn = 0x480004c790
uuid = 00828b03-5797-4179-acd2-4d153fb5d371
owner = 1
crc = 0xdb7fc286 (correct)
recs[1-253] = [startblock,blockcount] 1:[2473382,1] 2:[2473383,1] 3:[2473384,1] 4:[2473395,1] 5:[2473396,1] 6:[2473397,1] 7:[2473400,1] 8:[2473403,1] 9:[2473404,1] 10:[2473407,1] 11:[2473408,1] 12:[2473409,1] 13:[2473410,1] 14:[2473413,1] 15:[2473417,1] 16:[2473586,1] 17:[2473792,1] 18:[2473793,1] 19:[2473794,1] 20:[2473797,1] 21:[2473800,1] 22:[2473801,1] 23:[2473802,1] 24:[2473803,1] 25:[2473804,1] 26:[2473812,1] 27:[2473815,1] 28:[2473816,1] 29:[2473817,1] 30:[2473822,1] 31:[2473823,1] 32:[2473824,1] 33:[2473825,1] 34:[2473826,1] 35:[2473827,1] 36:[2473830,1] 37:[2473831,1] 38:[2473832,1] 39:[2473833,1] 40:[2473887,1] 41:[2473933,1] 42:[2473934,1] 43:[2473935,1] 44:[2473946,1] 45:[2474012,1] 46:[2474013,1] 47:[2474014,1] 48:[2474015,1] 49:[2474016,1] 50:[2474019,1] 51:[2474023,1] 52:[2474027,1] 53:[2474031,1] 54:[2474032,1] 55:[2474033,1] 56:[2474036,1] 57:[2474041,1] 58:[2474044,1] 59:[2474045,1] 60:[2474046,1] 61:[2474050,1] 62:[2474057,1] 63:[2474061,1] 64:[2474062,1] 65:[2474063,1] 66:[2474064,1] 67:[2474065,1] 68:[2474069,1] 69:[2474074,1] 70:[2474075,1] 71:[2474076,1] 72:[2474077,1] 73:[2474078,1] 74:[2474081,1] 75:[2474082,1] 76:[2474083,1] 77:[2474084,1] 78:[2474089,1] 79:[2474090,1] 80:[2474091,1] 81:[2474173,1] 82:[2474177,1] 83:[2474181,1] 84:[2474185,1] 85:[2474188,1] 86:[2474189,1] 87:[2474190,1] 88:[2474194,1] 89:[2474195,1] 90:[2474196,1] 91:[2474200,1] 92:[2474204,1] 93:[2474205,1] 94:[2474206,1] 95:[2474209,1] 96:[2474214,1] 97:[2474215,1] 98:[2474216,1] 99:[2474256,1] 100:[2474260,1] 101:[2474300,1] 102:[2474304,1] 103:[2474305,1] 104:[2474306,1] 105:[2474307,1] 106:[2474308,1] 107:[2474312,1] 108:[2474313,1] 109:[2474314,1] 110:[2474315,1] 111:[2474316,1] 112:[2474319,1] 113:[2474322,1] 114:[2474323,1] 115:[2474324,1] 116:[2474328,1] 117:[2474340,1] 118:[2474341,1] 119:[2474342,1] 120:[2474345,1] 121:[2474376,1] 122:[2474383,1] 123:[2474384,1] 124:[2474385,1] 125:[2474406,1] 126:[2474414,1] 127:[2474415,1] 128:[2474416,1] 129:[2474417,1] 130:[2474418,1] 131:[2474429,1] 132:[2474430,1] 133:[2474431,1] 134:[2474432,1] 135:[2474433,1] 136:[2474436,1] 137:[2474441,1] 138:[2474442,1] 139:[2474443,1] 140:[2474444,1] 141:[2474445,1] 142:[2474446,1] 143:[2474447,1] 144:[2474448,1] 145:[2474451,1] 146:[2474452,1] 147:[2474453,1] 148:[2474456,1] 149:[2474457,1] 150:[2474458,1] 151:[2474459,1] 152:[2474460,1] 153:[2474461,1] 154:[2474462,1] 155:[2474463,1] 156:[2474464,1] 157:[2474465,1] 158:[2474466,1] 159:[2474491,1] 160:[2474492,1] 161:[2474493,1] 162:[2474496,1] 163:[2474500,1] 164:[2474505,1] 165:[2474506,1] 166:[2474507,1] 167:[2474510,1] 168:[2474511,1] 169:[2474512,1] 170:[2474515,1] 171:[2474518,1] 172:[2474519,1] 173:[2474520,1] 174:[2474521,1] 175:[2474522,1] 176:[2474525,1] 177:[2474526,1] 178:[2474527,1] 179:[2474530,1] 180:[2474533,1] 181:[2474566,1] 182:[2474569,1] 183:[2474653,1] 184:[2474656,1] 185:[2474661,1] 186:[2474662,1] 187:[2474663,1] 188:[2474664,1] 189:[2474669,1] 190:[2474676,1] 191:[2474680,1] 192:[2474683,1] 193:[2474689,1] 194:[2474690,1] 195:[2474694,1] 196:[2474695,1] 197:[2474696,1] 198:[2474713,1] 199:[2474714,1] 200:[2474715,1] 201:[2474729,1] 202:[2474732,1] 203:[2474735,1] 204:[21,2] 205:[2470478,2] 206:[2470483,2] 207:[2470489,2] 208:[2470494,2] 209:[2470570,2] 210:[2470580,2] 211:[2470592,2] 212:[2470594,2] 213:[2470621,2] 214:[2470624,2] 215:[2470630,2] 216:[2470632,2] 217:[2470649,2] 218:[2470713,2] 219:[2470716,2] 220:[2470719,2] 221:[2470724,2] 222:[2470742,2] 223:[2470749,2] 224:[2470752,2] 225:[2470766,2] 226:[2470783,2] 227:[2470785,2] 228:[2470809,2] 229:[2470840,2] 230:[2470852,2] 231:[2470899,2] 232:[2470904,2] 233:[2470906,2] 234:[2470942,2] 235:[2470960,2] 236:[2470967,2] 237:[2470970,2] 238:[2470974,2] 239:[2470976,2] 240:[2470984,2] 241:[2471001,2] 242:[2471005,2] 243:[2471008,2] 244:[2471029,2] 245:[2471037,2] 246:[2471039,2] 247:[2471046,2] 248:[2471057,2] 249:[2471059,2] 250:[2471061,2] 251:[2471067,2] 252:[2471071,2] 253:[2471083,2]



recs[1-349] = [startblock,blockcount] 1:[2471085,2] 2:[2471088,2] 3:[2471091,2] 4:[2471093,2] 5:[2471147,2] 6:[2471163,2] 7:[2471167,2] 8:[2471169,2] 9:[2471172,2] 10:[2471180,2] 11:[2471183,2] 12:[2471190,2] 13:[2471200,2] 14:[2471251,2] 15:[2471292,2] 16:[2471300,2] 17:[2471303,2] 18:[2471308,2] 19:[2471310,2] 20:[2471314,2] 21:[2471334,2] 22:[2471350,2] 23:[2471356,2] 24:[2471360,2] 25:[2471377,2] 26:[2471426,2] 27:[2471435,2] 28:[2471441,2] 29:[2471483,2] 30:[2471487,2] 31:[2471511,2] 32:[2471524,2] 33:[2471527,2] 34:[2471541,2] 35:[2471543,2] 36:[2471552,2] 37:[2471594,2] 38:[2471604,2] 39:[2471607,2] 40:[2471620,2] 41:[2471625,2] 42:[2471628,2] 43:[2471639,2] 44:[2471642,2] 45:[2471652,2] 46:[2471654,2] 47:[2471681,2] 48:[2471772,2] 49:[2471774,2] 50:[2471899,2] 51:[2471902,2] 52:[2471905,2] 53:[2471929,2] 54:[2471937,2] 55:[2471956,2] 56:[2472056,2] 57:[2472111,2] 58:[2472113,2] 59:[2472123,2] 60:[2472125,2] 61:[2472127,2] 62:[2472173,2] 63:[2472180,2] 64:[2472184,2] 65:[2472193,2] 66:[2472297,2] 67:[2472304,2] 68:[2472334,2] 69:[2472336,2] 70:[2472512,2] 71:[2472519,2] 72:[2472521,2] 73:[2472800,2] 74:[2472852,2] 75:[2472863,2] 76:[2473341,2] 77:[2473344,2] 78:[2473355,2] 79:[2473373,2] 80:[2473380,2] 81:[2473398,2] 82:[2473401,2] 83:[2473405,2] 84:[2473411,2] 85:[2473795,2] 86:[2473798,2] 87:[2473808,2] 88:[2473810,2] 89:[2473813,2] 90:[2473828,2] 91:[2473837,2] 92:[2473839,2] 93:[2473841,2] 94:[2474017,2] 95:[2474034,2] 96:[2474042,2] 97:[2474070,2] 98:[2474072,2] 99:[2474079,2] 100:[2474085,2] 101:[2474087,2] 102:[2474186,2] 103:[2474207,2] 104:[2474317,2] 105:[2474320,2] 106:[2474343,2] 107:[2474434,2] 108:[2474437,2] 109:[2474439,2] 110:[2474449,2] 111:[2474454,2] 112:[2474489,2] 113:[2474494,2] 114:[2474508,2] 115:[2474513,2] 116:[2474516,2] 117:[2474523,2] 118:[2474528,2] 119:[2474531,2] 120:[2474567,2] 121:[2474654,2] 122:[2474657,2] 123:[2474659,2] 124:[2474681,2] 125:[2474684,2] 126:[2474730,2] 127:[2474733,2] 128:[2470501,3] 129:[2470524,3] 130:[2470528,3] 131:[2470589,3] 132:[2470617,3] 133:[2470761,3] 134:[2470777,3] 135:[2470797,3] 136:[2470826,3] 137:[2470848,3] 138:[2470854,3] 139:[2470917,3] 140:[2470922,3] 141:[2470938,3] 142:[2470980,3] 143:[2471011,3] 144:[2471049,3] 145:[2471110,3] 146:[2471153,3] 147:[2471219,3] 148:[2471268,3] 149:[2471281,3] 150:[2471289,3] 151:[2471294,3] 152:[2471316,3] 153:[2471401,3] 154:[2471520,3] 155:[2471545,3] 156:[2471549,3] 157:[2471571,3] 158:[2471622,3] 159:[2471634,3] 160:[2471659,3] 161:[2471731,3] 162:[2471895,3] 163:[2471907,3] 164:[2471941,3] 165:[2471952,3] 166:[2471963,3] 167:[2472115,3] 168:[2472300,3] 169:[2472318,3] 170:[2472571,3] 171:[2472575,3] 172:[2473357,3] 173:[2473362,3] 174:[2473414,3] 175:[2473805,3] 176:[2473834,3] 177:[2474020,3] 178:[2474024,3] 179:[2474028,3] 180:[2474047,3] 181:[2474058,3] 182:[2474066,3] 183:[2474174,3] 184:[2474178,3] 185:[2474182,3] 186:[2474191,3] 187:[2474197,3] 188:[2474201,3] 189:[2474257,3] 190:[2474301,3] 191:[2474309,3] 192:[2474325,3] 193:[2474497,3] 194:[2474677,3] 195:[2474686,3] 196:[2474691,3] 197:[2470470,4] 198:[2470519,4] 199:[2470573,4] 200:[2470737,4] 201:[2470745,4] 202:[2470843,4] 203:[2470928,4] 204:[2470988,4] 205:[2471226,4] 206:[2471240,4] 207:[2471253,4] 208:[2471323,4] 209:[2471352,4] 210:[2471531,4] 211:[2471554,4] 212:[2471597,4] 213:[2471648,4] 214:[2471674,4] 215:[2471925,4] 216:[2471967,4] 217:[2471972,4] 218:[2472119,4] 219:[2472321,4] 220:[2472329,4] 221:[2472524,4] 222:[2473818,4] 223:[2474037,4] 224:[2474092,4] 225:[2474210,4] 226:[2474485,4] 227:[2474501,4] 228:[2474665,4] 229:[2470679,5] 230:[2470685,5] 231:[2470788,5] 232:[2470800,5] 233:[2470813,5] 234:[2470834,5] 235:[2470858,5] 236:[2470994,5] 237:[2471031,5] 238:[2471157,5] 239:[2471244,5] 240:[2471328,5] 241:[2471337,5] 242:[2471535,5] 243:[2471931,5] 244:[2471946,5] 245:[2472051,5] 246:[2472106,5] 247:[2472175,5] 248:[2472188,5] 249:[2472514,5] 250:[2472529,5] 251:[2472855,5] 252:[2470583,6] 253:[2470818,6] 254:[2470864,6] 255:[2470873,6] 256:[2470908,6] 257:[2471343,6] 258:[2471513,6] 259:[2471664,6] 260:[2471797,6] 261:[2473349,6] 262:[2474051,6] 263:[2474377,6] 264:[2474670,6] 265:[2471140,7] 266:[2471561,7] 267:[2473365,7] 268:[2474407,7] 269:[2470597,8] 270:[2470768,8] 271:[2471272,8] 272:[2471735,8] 273:[2471804,8] 274:[2471916,8] 275:[2470727,9] 276:[2471231,9] 277:[2471258,9] 278:[2472163,9] 279:[2470606,10] 280:[2470668,10] 281:[2471097,10] 282:[2471113,10] 283:[2473385,10] 284:[2473936,10] 285:[2474419,10] 286:[2470507,11] 287:[2471977,11] 288:[2474329,11] 289:[2470946,12] 290:[2471017,12] 291:[2471364,12] 292:[2472535,12] 293:[2471127,13] 294:[2472338,13] 295:[2474716,13] 296:[2470635,14] 297:[2470653,14] 298:[2472089,16] 299:[2474697,16] 300:[2470880,18] 301:[2471575,18] 302:[2474467,18] 303:[2471380,20] 304:[2471405,20] 305:[2471776,20] 306:[2472548,20] 307:[2474386,20] 308:[2470691,21] 309:[2471490,21] 310:[2471744,23] 311:[2472058,30] 312:[2474346,30] 313:[2472195,31] 314:[2472130,32] 315:[2474534,32] 316:[2471859,35] 317:[2470532,38] 318:[2474217,39] 319:[2474261,39] 320:[2471443,40] 321:[2473843,44] 322:[2471813,45] 323:[2473888,45] 324:[2471683,47] 325:[2472802,49] 326:[2471989,61] 327:[2473947,65] 328:[2472227,68] 329:[2474096,77] 330:[2474570,83] 331:[2472352,160] 332:[2473418,168] 333:[2473587,205] 334:[2472581,219] 335:[15547,427] 336:[20319,451] 337:[2472866,474] 338:[19699,619] 339:[29,770] 340:[6192,1045] 341:[7238,1209] 342:[13755,1791] 343:[3546,2645] 344:[800,2745] 345:[15975,3723] 346:[8448,5306] 347:[20771,11257] 348:[32029,2438438] 349:[2474736,30039184]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: XFS_WANT_CORRUPTED_RETURN on xfs + dax
  2020-11-24 12:34 XFS_WANT_CORRUPTED_RETURN on xfs + dax Wang Jianchao
@ 2020-11-24 16:52 ` Darrick J. Wong
  2020-11-25  0:57   ` Wang Jianchao
  0 siblings, 1 reply; 4+ messages in thread
From: Darrick J. Wong @ 2020-11-24 16:52 UTC (permalink / raw)
  To: Wang Jianchao; +Cc: linux-xfs

On Tue, Nov 24, 2020 at 08:34:10PM +0800, Wang Jianchao wrote:
> Hi list
> 
> Help
> 
> We recently encountered an issue on xfs + dax + Aep of our online production
> system as following,
> 
> 
> [Mon Nov 16 23:39:04 2020] XFS (pmem1): Internal error 
> XFS_WANT_CORRUPTED_RETURN at line 461 of file fs/xfs/libxfs/xfs_alloc.c. 
>  Caller xfs_alloc_ag_vextent_size+0x578/0x6d0 [xfs]
> [Mon Nov 16 23:39:04 2020] CPU: 77 PID: 53995 Comm: kvstore Kdump: 
> ...
> [Mon Nov 16 23:39:04 2020] Call Trace:
> [Mon Nov 16 23:39:04 2020]  dump_stack+0x5c/0x80
> [Mon Nov 16 23:39:04 2020]  xfs_alloc_fixup_trees+0x1d7/0x370 [xfs]
> [Mon Nov 16 23:39:04 2020]  xfs_alloc_ag_vextent_size+0x578/0x6d0 [xfs]
> [Mon Nov 16 23:39:04 2020]  xfs_alloc_ag_vextent+0x126/0x140 [xfs]
> [Mon Nov 16 23:39:04 2020]  xfs_alloc_vextent+0x43a/0x560 [xfs]
> [Mon Nov 16 23:39:04 2020]  xfs_bmap_btalloc+0x462/0x8d0 [xfs]
> [Mon Nov 16 23:39:04 2020]  xfs_bmapi_write+0x610/0xbc0 [xfs]
> [Mon Nov 16 23:39:04 2020]  xfs_iomap_write_direct+0x254/0x330 [xfs]
> [Mon Nov 16 23:39:04 2020]  xfs_file_iomap_begin+0x20b/0xa20 [xfs]
> [Mon Nov 16 23:39:04 2020]  ? xfs_trans_free+0x55/0xc0 [xfs]
> [Mon Nov 16 23:39:04 2020]  ? dax_iomap_rw+0xa0/0xa0
> [Mon Nov 16 23:39:04 2020]  iomap_apply+0x63/0x130
> [Mon Nov 16 23:39:04 2020]  ? dax_iomap_rw+0xa0/0xa0
> [Mon Nov 16 23:39:04 2020]  dax_iomap_rw+0x73/0xa0
> [Mon Nov 16 23:39:04 2020]  ? dax_iomap_rw+0xa0/0xa0
> [Mon Nov 16 23:39:04 2020]  xfs_file_dax_write+0xce/0x230 [xfs]
> [Mon Nov 16 23:39:04 2020]  ? try_to_wake_up+0x54/0x4b0
> [Mon Nov 16 23:39:04 2020]  new_sync_write+0x124/0x170
> [Mon Nov 16 23:39:04 2020]  vfs_write+0xa5/0x1a0
> [Mon Nov 16 23:39:04 2020]  ksys_write+0x4f/0xb0
> [Mon Nov 16 23:39:04 2020]  do_syscall_64+0x5b/0x1b0
> [Mon Nov 16 23:39:04 2020]  entry_SYSCALL_64_after_hwframe+0x65/0xca
> [Mon Nov 16 23:39:04 2020] RIP: 0033:0x7f621167985d
> 
> The kernel is based on Centos's 4.18.0-147.5.1.el8, and the code is

Does this happen on upstream 5.10 (or 5.9.x where x < 9 or > 10)?

--D

> xfs_alloc_fixup_trees()
> ---
> /*
> 	 * Look up the record in the by-size tree if necessary.
> 	 */
> 	if (flags & XFSA_FIXUP_CNT_OK) {
>         ...
> 	} else {
> 		if ((error = xfs_alloc_lookup_eq(cnt_cur, fbno, flen, &i)))
> 			return error;
> 		XFS_WANT_CORRUPTED_RETURN(mp, i == 1);
> 	}
> 	/*
> 	 * Look up the record in the by-block tree if necessary.
> 	 */
> 	if (flags & XFSA_FIXUP_BNO_OK) {
>         ...
> 	} else {
> 		if ((error = xfs_alloc_lookup_eq(bno_cur, fbno, flen, &i)))
> 			return error;
> 		XFS_WANT_CORRUPTED_RETURN(mp, i == 1);
> 	}
> ---
> 
> The warning message is triggered when it cannot find the block number in bno btree;
> 
> And When I checked the bno btree and cnt btree with xfs_db, found that the agf1's bno btree was broken
> but the CRC was correct; 
> 
> 
> keys[1-3] = [startblock,blockcount] 1:[21,2] 2:[2471622,3] 3:[2470630,2]
> ptrs[1-3] = 1:4 2:6191 3:32028
> 
> 1 (266 recs) 21  ~ [32029,2438438]  ~ 2470468  ~ 2471619
> 2 (303 recs) 2471622  ~ 2474735 2475851 2477827 2478034 2469802 2470467 2470469 ~ 2470628 
>                                    ^       ^       ^       ^   
> 3 (482 recs) 2470630  ~ [2474736,30039184]
> 
> The 2nd btree block was disordered, four fsblocks, namely 2475851 2477827 2478034 2469802,
> were inserted in the wrong place and in addition, they even shouldn't exist, as the two big extents
> had included them.
> 
> The 1st element of the cnt btree is 2470467, but it cannot be found in bno btree due to wrong order.
> Then warning message was post. The attachment is the detail of the bno and cnt btree.
> 
> And there was another calltrace, but I didn't get the image to run xfs_dbg,
> Oct  7 18:22:44 kernel: XFS (pmem1): Internal error XFS_WANT_CORRUPTED_GOTO at line 3477 of file fs/xfs/libxfs/xfs_btree.c.  Caller xfs_free_ag_extent+0x46c/0x730 [xfs]
> Oct  7 18:22:44 kernel: Call Trace:
> Oct  7 18:22:44 kernel: dump_stack+0x5c/0x80
> Oct  7 18:22:44 kernel: xfs_btree_insert+0x1ba/0x220 [xfs]
> Oct  7 18:22:44 kernel: ? xfs_btree_lookup+0x2a9/0x460 [xfs]
> Oct  7 18:22:44 kernel: ? xfs_free_ag_extent+0x46c/0x730 [xfs]
> Oct  7 18:22:44 kernel: xfs_free_ag_extent+0x46c/0x730 [xfs]
> Oct  7 18:22:44 kernel: ? xfs_perag_get+0x25/0xb0 [xfs]
> Oct  7 18:22:44 kernel: xfs_free_agfl_block+0x2c/0x80 [xfs]
> Oct  7 18:22:44 kernel: xfs_agfl_free_finish_item+0x17a/0x190 [xfs]
> Oct  7 18:22:44 kernel: ? xfs_trans_add_item+0x33/0xa0 [xfs]
> Oct  7 18:22:44 kernel: xfs_defer_finish_noroll+0x183/0x480 [xfs]
> Oct  7 18:22:44 kernel: ? xfs_iomap_write_direct+0x26d/0x330 [xfs]
> Oct  7 18:22:44 kernel: __xfs_trans_commit+0x13f/0x330 [xfs]
> Oct  7 18:22:44 kernel: xfs_iomap_write_direct+0x26d/0x330 [xfs]
> Oct  7 18:22:44 kernel: xfs_file_iomap_begin+0x20b/0xa00 [xfs]
> Oct  7 18:22:44 kernel: ? dax_iomap_rw+0xa0/0xa0
> Oct  7 18:22:44 kernel: iomap_apply+0x5f/0x130
> Oct  7 18:22:44 kernel: ? dax_iomap_rw+0xa0/0xa0
> Oct  7 18:22:44 kernel: dax_iomap_rw+0x73/0xa0
> Oct  7 18:22:44 kernel: ? dax_iomap_rw+0xa0/0xa0
> Oct  7 18:22:44 kernel: xfs_file_dax_write+0xce/0x220 [xfs]
> Oct  7 18:22:44 kernel: ? xfs_file_dax_read+0x83/0xf0 [xfs]
> Oct  7 18:22:44 kernel: new_sync_write+0x11e/0x170
> Oct  7 18:22:44 kernel: vfs_write+0xa5/0x1a0
> Oct  7 18:22:44 kernel: ksys_write+0x4f/0xb0
> Oct  7 18:22:44 kernel: do_syscall_64+0x55/0x1b0
> Oct  7 18:22:44 kernel: entry_SYSCALL_64_after_hwframe+0x65/0xca
> Oct  7 18:22:44 kernel: RIP: 0033:0x7f546898085d
> 
> And the code should be
> xfs_btree_insert()
> ---
> 		error = xfs_btree_insrec(pcur, level, &nptr, &rec, key,
> 				&ncur, &i);
> 		if (error) {
> 			if (pcur != cur)
> 				xfs_btree_del_cursor(pcur, XFS_BTREE_ERROR);
> 			goto error0;
> 		}
> 
> 		XFS_WANT_CORRUPTED_GOTO(cur->bc_mp, i == 1, error0);
> 		level++;
> ---
> 
> This issue have been reproduced many times.
> 
> Many thanks for any help.
> 
> Jianchao

> xfs_db> type bnobt
> xfs_db> p
> magic = 0x41423342
> level = 1
> numrecs = 3
> leftsib = null
> rightsib = null
> bno = 260277520
> lsn = 0x480004ca28
> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
> owner = 1
> crc = 0x6bd8c9db (correct)
> keys[1-3] = [startblock,blockcount] 1:[21,2] 2:[2471622,3] 3:[2470630,2]
> ptrs[1-3] = 1:4 2:6191 3:32028
> xfs_db> convert agno 1 agbno 4 fsblock2470468
> 0x2000004 (33554436)
> xfs_db> fsblock 0x2000004 
> xfs_db> type bnobt
> xfs_db> p
> magic = 0x41423342
> level = 0
> numrecs = 266
> leftsib = null
> rightsib = 6191
> bno = 260111392
> lsn = 0x480004ca28
> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
> owner = 1
> crc = 0x13b235d7 (correct)
> recs[1-266] = [startblock,blockcount] 1:[21,2] 2:[29,770] 3:[800,2745] 4:[3546,2645] 5:[6192,1045] 6:[7238,1209] 7:[8448,5306] 8:[13755,1791] 9:[15547,427] 10:[15975,3723] 11:[19699,619] 12:[20319,451] 13:[20771,11257] 14:[32029,2438438] 15:[2470468,1] 16:[2470470,4] 17:[2470475,1] 18:[2470477,1] 19:[2470480,1] 20:[2470482,1] 21:[2470485,1] 22:[2470487,1] 23:[2470489,2] 24:[2470492,1] 25:[2470494,2] 26:[2470497,1] 27:[2470499,1] 28:[2470501,3] 29:[2470505,1] 30:[2470507,11] 31:[2470519,4] 32:[2470524,3] 33:[2470528,3] 34:[2470532,38] 35:[2470572,1] 36:[2470577,1] 37:[2470579,1] 38:[2470582,1] 39:[2470589,3] 40:[2470594,2] 41:[2470597,8] 42:[2470606,10] 43:[2470617,3] 44:[2470621,2] 45:[2470624,2] 46:[2470627,1] 47:[2470629,1] 48:[2470632,2] 49:[2470635,14] 50:[2470651,1] 51:[2470653,14] 52:[2470668,10] 53:[2470679,5] 54:[2470685,5] 55:[2470691,21] 56:[2470713,2] 57:[2470716,2] 58:[2470719,2] 59:[2470722,1] 60:[2470724,2] 61:[2470727,9] 62:[2470737,4] 63:[2470742,2] 64:[2470745,4] 65:[2470751,1] 66:[2470754,1] 67:[2470756,1] 68:[2470758,1] 69:[2470760,1] 70:[2470764,1] 71:[2470766,2] 72:[2470776,1] 73:[2470780,1] 74:[2470782,1] 75:[2470785,2] 76:[2470788,5] 77:[2470794,1] 78:[2470796,1] 79:[2470800,5] 80:[2470806,1] 81:[2470808,1] 82:[2470811,1] 83:[2470813,5] 84:[2470824,1] 85:[2470826,3] 86:[2470830,1] 87:[2470832,1] 88:[2470834,5] 89:[2470840,2] 90:[2470843,4] 91:[2470848,3] 92:[2470852,2] 93:[2470857,1] 94:[2470863,1] 95:[2470870,1] 96:[2470872,1] 97:[2470879,1] 98:[2470898,1] 99:[2470901,1] 100:[2470903,1] 101:[2470906,2] 102:[2470914,1] 103:[2470916,1] 104:[2470920,1] 105:[2470922,3] 106:[2470926,1] 107:[2470928,4] 108:[2470933,1] 109:[2470935,1] 110:[2470937,1] 111:[2470941,1] 112:[2470944,1] 113:[2470946,12] 114:[2470959,1] 115:[2470962,1] 116:[2470964,1] 117:[2470966,1] 118:[2470969,1] 119:[2470972,1] 120:[2470974,2] 121:[2470978,1] 122:[2470980,3] 123:[2470984,2] 124:[2470987,1] 125:[2470992,1] 126:[2470994,5] 127:[2471000,1] 128:[2471003,1] 129:[2471005,2] 130:[2471008,2] 131:[2471011,3] 132:[2471015,1] 133:[2471017,12] 134:[2471031,5] 135:[2471037,2] 136:[2471041,1] 137:[2471043,1] 138:[2471045,1] 139:[2471048,1] 140:[2471052,1] 141:[2471054,1] 142:[2471056,1] 143:[2471059,2] 144:[2471063,1] 145:[2471065,1] 146:[2471067,2] 147:[2471070,1] 148:[2471073,1] 149:[2471075,1] 150:[2471077,1] 151:[2471079,1] 152:[2471081,1] 153:[2471083,2] 154:[2471087,1] 155:[2471090,1] 156:[2471093,2] 157:[2471096,1] 158:[2471107,1] 159:[2471109,1] 160:[2471113,10] 161:[2471124,1] 162:[2471126,1] 163:[2471140,7] 164:[2471149,1] 165:[2471151,1] 166:[2471153,3] 167:[2471157,5] 168:[2471163,2] 169:[2471166,1] 170:[2471169,2] 171:[2471172,2] 172:[2471175,1] 173:[2471177,1] 174:[2471179,1] 175:[2471182,1] 176:[2471185,1] 177:[2471187,1] 178:[2471189,1] 179:[2471192,1] 180:[2471194,1] 181:[2471196,1] 182:[2471198,1] 183:[2471200,2] 184:[2471203,1] 185:[2471205,1] 186:[2471207,1] 187:[2471209,1] 188:[2471211,1] 189:[2471213,1] 190:[2471215,1] 191:[2471217,1] 192:[2471219,3] 193:[2471223,1] 194:[2471225,1] 195:[2471230,1] 196:[2471240,4] 197:[2471249,1] 198:[2471251,2] 199:[2471257,1] 200:[2471267,1] 201:[2471271,1] 202:[2471280,1] 203:[2471284,1] 204:[2471286,1] 205:[2471288,1] 206:[2471292,2] 207:[2471297,1] 208:[2471299,1] 209:[2471302,1] 210:[2471305,1] 211:[2471307,1] 212:[2471310,2] 213:[2471313,1] 214:[2471316,3] 215:[2471320,1] 216:[2471322,1] 217:[2471327,1] 218:[2471333,1] 219:[2471336,1] 220:[2471342,1] 221:[2471349,1] 222:[2471352,4] 223:[2471358,1] 224:[2471360,2] 225:[2471363,1] 226:[2471376,1] 227:[2471379,1] 228:[2471400,1] 229:[2471404,1] 230:[2471425,1] 231:[2471428,1] 232:[2471430,1] 233:[2471432,1] 234:[2471434,1] 235:[2471437,1] 236:[2471439,1] 237:[2471441,2] 238:[2471483,2] 239:[2471486,1] 240:[2471489,1] 241:[2471511,2] 242:[2471519,1] 243:[2471523,1] 244:[2471526,1] 245:[2471529,1] 246:[2471531,4] 247:[2471540,1] 248:[2471543,2] 249:[2471548,1] 250:[2471552,2] 251:[2471558,1] 252:[2471560,1] 253:[2471568,1] 254:[2471570,1] 255:[2471574,1] 256:[2471593,1] 257:[2471596,1] 258:[2471601,1] 259:[2471603,1] 260:[2471606,1] 261:[2471609,1] 262:[2471611,1] 263:[2471613,1] 264:[2471615,1] 265:[2471617,1] 266:[2471619,1]
> xfs_db> convert agno 1 agbno 6191 fsblock
> 0x200182f (33560623)
> xfs_db> fsblock 0x200182f
> xfs_db> type bnobt
> xfs_db> p
> magic = 0x41423342
> level = 0
> numrecs = 303
> leftsib = 4
> rightsib = 32028
> bno = 260160888
> lsn = 0x480004a9c0
> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
> owner = 1
> crc = 0x804caac1 (correct)
> recs[1-303] = [startblock,blockcount] 1:[2471622,3] 2:[2471627,1] 3:[2471630,1] 4:[2471632,1] 5:[2471634,3] 6:[2471638,1] 7:[2471641,1] 8:[2471644,1] 9:[2471646,1] 10:[2471648,4] 11:[2471654,2] 12:[2471657,1] 13:[2471659,3] 14:[2471663,1] 15:[2471670,1] 16:[2471672,1] 17:[2471674,4] 18:[2471679,1] 19:[2471681,2] 20:[2471730,1] 21:[2471734,1] 22:[2471743,1] 23:[2471767,1] 24:[2471769,1] 25:[2471771,1] 26:[2471774,2] 27:[2471796,1] 28:[2471803,1] 29:[2471812,1] 30:[2471858,1] 31:[2471894,1] 32:[2471898,1] 33:[2471901,1] 34:[2471904,1] 35:[2471907,3] 36:[2471911,1] 37:[2471913,1] 38:[2471915,1] 39:[2471924,1] 40:[2471929,2] 41:[2471936,1] 42:[2471939,1] 43:[2471941,3] 44:[2471945,1] 45:[2471951,1] 46:[2471955,1] 47:[2471958,1] 48:[2471960,1] 49:[2471962,1] 50:[2471966,1] 51:[2471971,1] 52:[2471976,1] 53:[2471988,1] 54:[2472050,1] 55:[2472056,2] 56:[2472088,1] 57:[2472105,1] 58:[2472111,2] 59:[2472115,3] 60:[2472119,4] 61:[2472125,2] 62:[2472129,1] 63:[2472162,1] 64:[2472172,1] 65:[2472175,5] 66:[2472182,1] 67:[2472184,2] 68:[2472187,1] 69:[2472193,2] 70:[2472226,1] 71:[2472295,1] 72:[2472297,2] 73:[2472300,3] 74:[2472304,2] 75:[2472307,1] 76:[2472309,1] 77:[2472311,1] 78:[2472313,1] 79:[2472315,1] 80:[2472317,1] 81:[2472321,4] 82:[2472326,1] 83:[2472328,1] 84:[2472333,1] 85:[2472336,2] 86:[2472351,1] 87:[2472512,2] 88:[2472519,2] 89:[2472523,1] 90:[2472528,1] 91:[2472534,1] 92:[2472547,1] 93:[2472568,1] 94:[2472570,1] 95:[2472574,1] 96:[2472578,1] 97:[2472580,1] 98:[2472800,2] 99:[2472851,1] 100:[2472854,1] 101:[2472860,1] 102:[2472862,1] 103:[2472865,1] 104:[2473340,1] 105:[2473343,1] 106:[2473346,1] 107:[2473348,1] 108:[2473355,2] 109:[2473360,1] 110:[2473362,3] 111:[2473372,1] 112:[2473375,1] 113:[2473377,1] 114:[2473379,1] 115:[2473382,1] 116:[2473384,1] 117:[2473395,1] 118:[2473397,1] 119:[2473400,1] 120:[2473403,1] 121:[2473405,2] 122:[2473408,1] 123:[2473410,1] 124:[2473413,1] 125:[2473417,1] 126:[2473586,1] 127:[2473792,1] 128:[2473794,1] 129:[2473797,1] 130:[2473800,1] 131:[2473802,1] 132:[2473804,1] 133:[2473808,2] 134:[2473812,1] 135:[2473815,1] 136:[2473817,1] 137:[2473822,1] 138:[2473824,1] 139:[2473826,1] 140:[2473828,2] 141:[2473831,1] 142:[2473833,1] 143:[2473837,2] 144:[2473841,2] 145:[2473887,1] 146:[2473933,1] 147:[2473935,1] 148:[2473946,1] 149:[2474012,1] 150:[2474014,1] 151:[2474016,1] 152:[2474019,1] 153:[2474023,1] 154:[2474027,1] 155:[2474031,1] 156:[2474033,1] 157:[2474036,1] 158:[2474041,1] 159:[2474044,1] 160:[2474046,1] 161:[2474050,1] 162:[2474057,1] 163:[2474061,1] 164:[2474063,1] 165:[2474065,1] 166:[2474069,1] 167:[2474072,2] 168:[2474075,1] 169:[2474077,1] 170:[2474079,2] 171:[2474082,1] 172:[2474084,1] 173:[2474087,2] 174:[2474090,1] 175:[2474092,4] 176:[2474173,1] 177:[2474177,1] 178:[2474181,1] 179:[2474185,1] 180:[2474188,1] 181:[2474190,1] 182:[2474194,1] 183:[2474196,1] 184:[2474200,1] 185:[2474204,1] 186:[2474206,1] 187:[2474209,1] 188:[2474214,1] 189:[2474216,1] 190:[2474256,1] 191:[2474260,1] 192:[2474300,1] 193:[2474304,1] 194:[2474306,1] 195:[2474308,1] 196:[2474312,1] 197:[2474314,1] 198:[2474316,1] 199:[2474319,1] 200:[2474322,1] 201:[2474324,1] 202:[2474328,1] 203:[2474340,1] 204:[2474342,1] 205:[2474345,1] 206:[2474376,1] 207:[2474383,1] 208:[2474385,1] 209:[2474406,1] 210:[2474414,1] 211:[2474416,1] 212:[2474418,1] 213:[2474429,1] 214:[2474431,1] 215:[2474433,1] 216:[2474436,1] 217:[2474439,2] 218:[2474442,1] 219:[2474444,1] 220:[2474446,1] 221:[2474448,1] 222:[2474451,1] 223:[2474453,1] 224:[2474456,1] 225:[2474458,1] 226:[2474460,1] 227:[2474462,1] 228:[2474464,1] 229:[2474466,1] 230:[2474485,4] 231:[2474491,1] 232:[2474493,1] 233:[2474496,1] 234:[2474500,1] 235:[2474505,1] 236:[2474507,1] 237:[2474510,1] 238:[2474512,1] 239:[2474515,1] 240:[2474518,1] 241:[2474520,1] 242:[2474522,1] 243:[2474525,1] 244:[2474527,1] 245:[2474530,1] 246:[2474533,1] 247:[2474566,1] 248:[2474569,1] 249:[2474653,1] 250:[2474656,1] 251:[2474659,2] 252:[2474662,1] 253:[2474664,1] 254:[2474669,1] 255:[2474676,1] 256:[2474680,1] 257:[2474683,1] 258:[2474686,3] 259:[2474690,1] 260:[2474694,1] 261:[2474696,1] 262:[2474713,1] 263:[2474715,1] 264:[2474729,1] 265:[2474732,1] 266:[2474735,1] 267:[2475851,1] 268:[2477827,1] 269:[2478034,1] 270:[2469802,1] 271:[2470467,1] 272:[2470469,1] 273:[2470474,1] 274:[2470476,1] 275:[2470478,2] 276:[2470481,1] 277:[2470483,2] 278:[2470486,1] 279:[2470488,1] 280:[2470491,1] 281:[2470493,1] 282:[2470496,1] 283:[2470498,1] 284:[2470500,1] 285:[2470504,1] 286:[2470506,1] 287:[2470518,1] 288:[2470523,1] 289:[2470527,1] 290:[2470531,1] 291:[2470570,2] 292:[2470573,4] 293:[2470578,1] 294:[2470580,2] 295:[2470583,6] 296:[2470592,2] 297:[2470596,1] 298:[2470605,1] 299:[2470616,1] 300:[2470620,1] 301:[2470623,1] 302:[2470626,1] 303:[2470628,1]
> xfs_db> convert agno 1 agbno  32028 fsblock
> 0x2007d1c (33586460)
> xfs_db> fsblock 0x2007d1c
> xfs_db> bnobt
> command bnobt not found
> xfs_db> type bnobt
> xfs_db> p
> magic = 0x41423342
> level = 0
> numrecs = 482
> leftsib = 6191
> rightsib = null
> bno = 260367584
> lsn = 0x480004a550
> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
> owner = 1
> crc = 0xf6b4cd63 (correct)
> recs[1-482] = [startblock,blockcount] 1:[2470630,2] 2:[2470634,1] 3:[2470649,2] 4:[2470652,1] 5:[2470667,1] 6:[2470678,1] 7:[2470684,1] 8:[2470690,1] 9:[2470715,1] 10:[2470726,1] 11:[2470736,1] 12:[2470741,1] 13:[2470744,1] 14:[2470749,2] 15:[2470752,2] 16:[2470755,1] 17:[2470757,1] 18:[2470759,1] 19:[2470761,3] 20:[2470765,1] 21:[2470768,8] 22:[2470777,3] 23:[2470781,1] 24:[2470783,2] 25:[2470787,1] 26:[2470793,1] 27:[2470795,1] 28:[2470797,3] 29:[2470805,1] 30:[2470807,1] 31:[2470809,2] 32:[2470812,1] 33:[2470818,6] 34:[2470825,1] 35:[2470829,1] 36:[2470831,1] 37:[2470833,1] 38:[2470839,1] 39:[2470842,1] 40:[2470847,1] 41:[2470851,1] 42:[2470854,3] 43:[2470858,5] 44:[2470864,6] 45:[2470871,1] 46:[2470873,6] 47:[2470880,18] 48:[2470899,2] 49:[2470902,1] 50:[2470904,2] 51:[2470908,6] 52:[2470915,1] 53:[2470917,3] 54:[2470921,1] 55:[2470925,1] 56:[2470927,1] 57:[2470932,1] 58:[2470934,1] 59:[2470936,1] 60:[2470938,3] 61:[2470942,2] 62:[2470945,1] 63:[2470958,1] 64:[2470960,2] 65:[2470963,1] 66:[2470965,1] 67:[2470967,2] 68:[2470970,2] 69:[2470973,1] 70:[2470976,2] 71:[2470979,1] 72:[2470983,1] 73:[2470986,1] 74:[2470988,4] 75:[2470993,1] 76:[2470999,1] 77:[2471001,2] 78:[2471004,1] 79:[2471007,1] 80:[2471010,1] 81:[2471014,1] 82:[2471016,1] 83:[2471029,2] 84:[2471036,1] 85:[2471039,2] 86:[2471042,1] 87:[2471044,1] 88:[2471046,2] 89:[2471049,3] 90:[2471053,1] 91:[2471055,1] 92:[2471057,2] 93:[2471061,2] 94:[2471064,1] 95:[2471066,1] 96:[2471069,1] 97:[2471071,2] 98:[2471074,1] 99:[2471076,1] 100:[2471078,1] 101:[2471080,1] 102:[2471082,1] 103:[2471085,2] 104:[2471088,2] 105:[2471091,2] 106:[2471095,1] 107:[2471097,10] 108:[2471108,1] 109:[2471110,3] 110:[2471123,1] 111:[2471125,1] 112:[2471127,13] 113:[2471147,2] 114:[2471150,1] 115:[2471152,1] 116:[2471156,1] 117:[2471162,1] 118:[2471165,1] 119:[2471167,2] 120:[2471171,1] 121:[2471174,1] 122:[2471176,1] 123:[2471178,1] 124:[2471180,2] 125:[2471183,2] 126:[2471186,1] 127:[2471188,1] 128:[2471190,2] 129:[2471193,1] 130:[2471195,1] 131:[2471197,1] 132:[2471199,1] 133:[2471202,1] 134:[2471204,1] 135:[2471206,1] 136:[2471208,1] 137:[2471210,1] 138:[2471212,1] 139:[2471214,1] 140:[2471216,1] 141:[2471218,1] 142:[2471222,1] 143:[2471224,1] 144:[2471226,4] 145:[2471231,9] 146:[2471244,5] 147:[2471250,1] 148:[2471253,4] 149:[2471258,9] 150:[2471268,3] 151:[2471272,8] 152:[2471281,3] 153:[2471285,1] 154:[2471287,1] 155:[2471289,3] 156:[2471294,3] 157:[2471298,1] 158:[2471300,2] 159:[2471303,2] 160:[2471306,1] 161:[2471308,2] 162:[2471312,1] 163:[2471314,2] 164:[2471319,1] 165:[2471321,1] 166:[2471323,4] 167:[2471328,5] 168:[2471334,2] 169:[2471337,5] 170:[2471343,6] 171:[2471350,2] 172:[2471356,2] 173:[2471359,1] 174:[2471362,1] 175:[2471364,12] 176:[2471377,2] 177:[2471380,20] 178:[2471401,3] 179:[2471405,20] 180:[2471426,2] 181:[2471429,1] 182:[2471431,1] 183:[2471433,1] 184:[2471435,2] 185:[2471438,1] 186:[2471440,1] 187:[2471443,40] 188:[2471485,1] 189:[2471487,2] 190:[2471490,21] 191:[2471513,6] 192:[2471520,3] 193:[2471524,2] 194:[2471527,2] 195:[2471530,1] 196:[2471535,5] 197:[2471541,2] 198:[2471545,3] 199:[2471549,3] 200:[2471554,4] 201:[2471559,1] 202:[2471561,7] 203:[2471569,1] 204:[2471571,3] 205:[2471575,18] 206:[2471594,2] 207:[2471597,4] 208:[2471602,1] 209:[2471604,2] 210:[2471607,2] 211:[2471610,1] 212:[2471612,1] 213:[2471614,1] 214:[2471616,1] 215:[2471618,1] 216:[2471620,2] 217:[2471625,2] 218:[2471628,2] 219:[2471631,1] 220:[2471633,1] 221:[2471637,1] 222:[2471639,2] 223:[2471642,2] 224:[2471645,1] 225:[2471647,1] 226:[2471652,2] 227:[2471656,1] 228:[2471658,1] 229:[2471662,1] 230:[2471664,6] 231:[2471671,1] 232:[2471673,1] 233:[2471678,1] 234:[2471680,1] 235:[2471683,47] 236:[2471731,3] 237:[2471735,8] 238:[2471744,23] 239:[2471768,1] 240:[2471770,1] 241:[2471772,2] 242:[2471776,20] 243:[2471797,6] 244:[2471804,8] 245:[2471813,45] 246:[2471859,35] 247:[2471895,3] 248:[2471899,2] 249:[2471902,2] 250:[2471905,2] 251:[2471910,1] 252:[2471912,1] 253:[2471914,1] 254:[2471916,8] 255:[2471925,4] 256:[2471931,5] 257:[2471937,2] 258:[2471940,1] 259:[2471944,1] 260:[2471946,5] 261:[2471952,3] 262:[2471956,2] 263:[2471959,1] 264:[2471961,1] 265:[2471963,3] 266:[2471967,4] 267:[2471972,4] 268:[2471977,11] 269:[2471989,61] 270:[2472051,5] 271:[2472058,30] 272:[2472089,16] 273:[2472106,5] 274:[2472113,2] 275:[2472118,1] 276:[2472123,2] 277:[2472127,2] 278:[2472130,32] 279:[2472163,9] 280:[2472173,2] 281:[2472180,2] 282:[2472183,1] 283:[2472186,1] 284:[2472188,5] 285:[2472195,31] 286:[2472227,68] 287:[2472296,1] 288:[2472299,1] 289:[2472303,1] 290:[2472306,1] 291:[2472308,1] 292:[2472310,1] 293:[2472312,1] 294:[2472314,1] 295:[2472316,1] 296:[2472318,3] 297:[2472325,1] 298:[2472327,1] 299:[2472329,4] 300:[2472334,2] 301:[2472338,13] 302:[2472352,160] 303:[2472514,5] 304:[2472521,2] 305:[2472524,4] 306:[2472529,5] 307:[2472535,12] 308:[2472548,20] 309:[2472569,1] 310:[2472571,3] 311:[2472575,3] 312:[2472579,1] 313:[2472581,219] 314:[2472802,49] 315:[2472852,2] 316:[2472855,5] 317:[2472861,1] 318:[2472863,2] 319:[2472866,474] 320:[2473341,2] 321:[2473344,2] 322:[2473347,1] 323:[2473349,6] 324:[2473357,3] 325:[2473361,1] 326:[2473365,7] 327:[2473373,2] 328:[2473376,1] 329:[2473378,1] 330:[2473380,2] 331:[2473383,1] 332:[2473385,10] 333:[2473396,1] 334:[2473398,2] 335:[2473401,2] 336:[2473404,1] 337:[2473407,1] 338:[2473409,1] 339:[2473411,2] 340:[2473414,3] 341:[2473418,168] 342:[2473587,205] 343:[2473793,1] 344:[2473795,2] 345:[2473798,2] 346:[2473801,1] 347:[2473803,1] 348:[2473805,3] 349:[2473810,2] 350:[2473813,2] 351:[2473816,1] 352:[2473818,4] 353:[2473823,1] 354:[2473825,1] 355:[2473827,1] 356:[2473830,1] 357:[2473832,1] 358:[2473834,3] 359:[2473839,2] 360:[2473843,44] 361:[2473888,45] 362:[2473934,1] 363:[2473936,10] 364:[2473947,65] 365:[2474013,1] 366:[2474015,1] 367:[2474017,2] 368:[2474020,3] 369:[2474024,3] 370:[2474028,3] 371:[2474032,1] 372:[2474034,2] 373:[2474037,4] 374:[2474042,2] 375:[2474045,1] 376:[2474047,3] 377:[2474051,6] 378:[2474058,3] 379:[2474062,1] 380:[2474064,1] 381:[2474066,3] 382:[2474070,2] 383:[2474074,1] 384:[2474076,1] 385:[2474078,1] 386:[2474081,1] 387:[2474083,1] 388:[2474085,2] 389:[2474089,1] 390:[2474091,1] 391:[2474096,77] 392:[2474174,3] 393:[2474178,3] 394:[2474182,3] 395:[2474186,2] 396:[2474189,1] 397:[2474191,3] 398:[2474195,1] 399:[2474197,3] 400:[2474201,3] 401:[2474205,1] 402:[2474207,2] 403:[2474210,4] 404:[2474215,1] 405:[2474217,39] 406:[2474257,3] 407:[2474261,39] 408:[2474301,3] 409:[2474305,1] 410:[2474307,1] 411:[2474309,3] 412:[2474313,1] 413:[2474315,1] 414:[2474317,2] 415:[2474320,2] 416:[2474323,1] 417:[2474325,3] 418:[2474329,11] 419:[2474341,1] 420:[2474343,2] 421:[2474346,30] 422:[2474377,6] 423:[2474384,1] 424:[2474386,20] 425:[2474407,7] 426:[2474415,1] 427:[2474417,1] 428:[2474419,10] 429:[2474430,1] 430:[2474432,1] 431:[2474434,2] 432:[2474437,2] 433:[2474441,1] 434:[2474443,1] 435:[2474445,1] 436:[2474447,1] 437:[2474449,2] 438:[2474452,1] 439:[2474454,2] 440:[2474457,1] 441:[2474459,1] 442:[2474461,1] 443:[2474463,1] 444:[2474465,1] 445:[2474467,18] 446:[2474489,2] 447:[2474492,1] 448:[2474494,2] 449:[2474497,3] 450:[2474501,4] 451:[2474506,1] 452:[2474508,2] 453:[2474511,1] 454:[2474513,2] 455:[2474516,2] 456:[2474519,1] 457:[2474521,1] 458:[2474523,2] 459:[2474526,1] 460:[2474528,2] 461:[2474531,2] 462:[2474534,32] 463:[2474567,2] 464:[2474570,83] 465:[2474654,2] 466:[2474657,2] 467:[2474661,1] 468:[2474663,1] 469:[2474665,4] 470:[2474670,6] 471:[2474677,3] 472:[2474681,2] 473:[2474684,2] 474:[2474689,1] 475:[2474691,3] 476:[2474695,1] 477:[2474697,16] 478:[2474714,1] 479:[2474716,13] 480:[2474730,2] 481:[2474733,2] 482:[2474736,30039184]
> 
> 
> xfs_db> agf 1
> xfs_db> p
> magicnum = 0x58414746
> versionnum = 1
> seqno = 1
> length = 32513920
> bnoroot = 20770
> cntroot = 19698
> bnolevel = 2
> cntlevel = 2
> flfirst = 533
> fllast = 538
> flcount = 6
> freeblks = 32513881
> longest = 30039184
> btreeblks = 6
> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
> lsn = 0x480004ca28
> crc = 0x78822706 (correct)
> xfs_db> convert agno 1 agbno 19698 fsblock
> 0x2004cf2 (33574130)
> xfs_db> fsblock 0x2004cf2
> xfs_db> type cntbt
> xfs_db> p
> magic = 0x41423343
> level = 1
> numrecs = 3
> leftsib = null
> rightsib = null
> bno = 260268944
> lsn = 0x480004ca28
> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
> owner = 1
> crc = 0x87c5747b (correct)
> keys[1-3] = [blockcount,startblock] 1:[1,2470467] 2:[1,2473382] 3:[2,2471085]
> ptrs[1-3] = 1:5 2:13754 3:7237
> xfs_db> convert agno 1 agbno 5 fsblock
> 0x2000005 (33554437)
> xfs_db> type cntbt
> xfs_db> p 
> magic = 0x41423343
> level = 1
> numrecs = 3
> leftsib = null
> rightsib = null
> bno = 260268944
> lsn = 0x480004ca28
> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
> owner = 1
> crc = 0x87c5747b (correct)
> keys[1-3] = [blockcount,startblock] 1:[1,2470467] 2:[1,2473382] 3:[2,2471085]
> ptrs[1-3] = 1:5 2:13754 3:7237
> xfs_db> convert agno 1 agbno 5 fsblock
> 0x2000005 (33554437)
> xfs_db> fsblock 0x2000005
> xfs_db> type cntbt
> xfs_db> p
> magic = 0x41423343
> level = 0
> numrecs = 449
> leftsib = null
> rightsib = 13754
> bno = 260111400
> lsn = 0x480004ca28
> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
> owner = 1
> crc = 0x7df0b09f (correct)
> recs[1-449] = [startblock,blockcount] 1:[2470467,1] 2:[2470468,1] 3:[2470469,1] 4:[2470474,1] 5:[2470475,1] 6:[2470476,1] 7:[2470477,1] 8:[2470480,1] 9:[2470481,1] 10:[2470482,1] 11:[2470485,1] 12:[2470486,1] 13:[2470487,1] 14:[2470488,1] 15:[2470491,1] 16:[2470492,1] 17:[2470493,1] 18:[2470496,1] 19:[2470497,1] 20:[2470498,1] 21:[2470499,1] 22:[2470500,1] 23:[2470504,1] 24:[2470505,1] 25:[2470506,1] 26:[2470518,1] 27:[2470523,1] 28:[2470527,1] 29:[2470531,1] 30:[2470572,1] 31:[2470577,1] 32:[2470578,1] 33:[2470579,1] 34:[2470582,1] 35:[2470596,1] 36:[2470605,1] 37:[2470616,1] 38:[2470620,1] 39:[2470623,1] 40:[2470626,1] 41:[2470627,1] 42:[2470628,1] 43:[2470629,1] 44:[2470634,1] 45:[2470651,1] 46:[2470652,1] 47:[2470667,1] 48:[2470678,1] 49:[2470684,1] 50:[2470690,1] 51:[2470712,1] 52:[2470715,1] 53:[2470718,1] 54:[2470721,1] 55:[2470722,1] 56:[2470723,1] 57:[2470726,1] 58:[2470736,1] 59:[2470741,1] 60:[2470744,1] 61:[2470751,1] 62:[2470754,1] 63:[2470755,1] 64:[2470756,1] 65:[2470757,1] 66:[2470758,1] 67:[2470759,1] 68:[2470760,1] 69:[2470764,1] 70:[2470765,1] 71:[2470776,1] 72:[2470780,1] 73:[2470781,1] 74:[2470782,1] 75:[2470787,1] 76:[2470793,1] 77:[2470794,1] 78:[2470795,1] 79:[2470796,1] 80:[2470805,1] 81:[2470806,1] 82:[2470807,1] 83:[2470808,1] 84:[2470811,1] 85:[2470812,1] 86:[2470824,1] 87:[2470825,1] 88:[2470829,1] 89:[2470830,1] 90:[2470831,1] 91:[2470832,1] 92:[2470833,1] 93:[2470839,1] 94:[2470842,1] 95:[2470847,1] 96:[2470851,1] 97:[2470857,1] 98:[2470863,1] 99:[2470870,1] 100:[2470871,1] 101:[2470872,1] 102:[2470879,1] 103:[2470898,1] 104:[2470901,1] 105:[2470902,1] 106:[2470903,1] 107:[2470914,1] 108:[2470915,1] 109:[2470916,1] 110:[2470920,1] 111:[2470921,1] 112:[2470925,1] 113:[2470926,1] 114:[2470927,1] 115:[2470932,1] 116:[2470933,1] 117:[2470934,1] 118:[2470935,1] 119:[2470936,1] 120:[2470937,1] 121:[2470941,1] 122:[2470944,1] 123:[2470945,1] 124:[2470958,1] 125:[2470959,1] 126:[2470962,1] 127:[2470963,1] 128:[2470964,1] 129:[2470965,1] 130:[2470966,1] 131:[2470969,1] 132:[2470972,1] 133:[2470973,1] 134:[2470978,1] 135:[2470979,1] 136:[2470983,1] 137:[2470986,1] 138:[2470987,1] 139:[2470992,1] 140:[2470993,1] 141:[2470999,1] 142:[2471000,1] 143:[2471003,1] 144:[2471004,1] 145:[2471007,1] 146:[2471010,1] 147:[2471014,1] 148:[2471015,1] 149:[2471016,1] 150:[2471036,1] 151:[2471041,1] 152:[2471042,1] 153:[2471043,1] 154:[2471044,1] 155:[2471045,1] 156:[2471048,1] 157:[2471052,1] 158:[2471053,1] 159:[2471054,1] 160:[2471055,1] 161:[2471056,1] 162:[2471063,1] 163:[2471064,1] 164:[2471065,1] 165:[2471066,1] 166:[2471069,1] 167:[2471070,1] 168:[2471073,1] 169:[2471074,1] 170:[2471075,1] 171:[2471076,1] 172:[2471077,1] 173:[2471078,1] 174:[2471079,1] 175:[2471080,1] 176:[2471081,1] 177:[2471082,1] 178:[2471087,1] 179:[2471090,1] 180:[2471095,1] 181:[2471096,1] 182:[2471107,1] 183:[2471108,1] 184:[2471109,1] 185:[2471123,1] 186:[2471124,1] 187:[2471125,1] 188:[2471126,1] 189:[2471149,1] 190:[2471150,1] 191:[2471151,1] 192:[2471152,1] 193:[2471156,1] 194:[2471162,1] 195:[2471165,1] 196:[2471166,1] 197:[2471171,1] 198:[2471174,1] 199:[2471175,1] 200:[2471176,1] 201:[2471177,1] 202:[2471178,1] 203:[2471179,1] 204:[2471182,1] 205:[2471185,1] 206:[2471186,1] 207:[2471187,1] 208:[2471188,1] 209:[2471189,1] 210:[2471192,1] 211:[2471193,1] 212:[2471194,1] 213:[2471195,1] 214:[2471196,1] 215:[2471197,1] 216:[2471198,1] 217:[2471199,1] 218:[2471202,1] 219:[2471203,1] 220:[2471204,1] 221:[2471205,1] 222:[2471206,1] 223:[2471207,1] 224:[2471208,1] 225:[2471209,1] 226:[2471210,1] 227:[2471211,1] 228:[2471212,1] 229:[2471213,1] 230:[2471214,1] 231:[2471215,1] 232:[2471216,1] 233:[2471217,1] 234:[2471218,1] 235:[2471222,1] 236:[2471223,1] 237:[2471224,1] 238:[2471225,1] 239:[2471230,1] 240:[2471249,1] 241:[2471250,1] 242:[2471257,1] 243:[2471267,1] 244:[2471271,1] 245:[2471280,1] 246:[2471284,1] 247:[2471285,1] 248:[2471286,1] 249:[2471287,1] 250:[2471288,1] 251:[2471297,1] 252:[2471298,1] 253:[2471299,1] 254:[2471302,1] 255:[2471305,1] 256:[2471306,1] 257:[2471307,1] 258:[2471312,1] 259:[2471313,1] 260:[2471319,1] 261:[2471320,1] 262:[2471321,1] 263:[2471322,1] 264:[2471327,1] 265:[2471333,1] 266:[2471336,1] 267:[2471342,1] 268:[2471349,1] 269:[2471358,1] 270:[2471359,1] 271:[2471362,1] 272:[2471363,1] 273:[2471376,1] 274:[2471379,1] 275:[2471400,1] 276:[2471404,1] 277:[2471425,1] 278:[2471428,1] 279:[2471429,1] 280:[2471430,1] 281:[2471431,1] 282:[2471432,1] 283:[2471433,1] 284:[2471434,1] 285:[2471437,1] 286:[2471438,1] 287:[2471439,1] 288:[2471440,1] 289:[2471485,1] 290:[2471486,1] 291:[2471489,1] 292:[2471519,1] 293:[2471523,1] 294:[2471526,1] 295:[2471529,1] 296:[2471530,1] 297:[2471540,1] 298:[2471548,1] 299:[2471558,1] 300:[2471559,1] 301:[2471560,1] 302:[2471568,1] 303:[2471569,1] 304:[2471570,1] 305:[2471574,1] 306:[2471593,1] 307:[2471596,1] 308:[2471601,1] 309:[2471602,1] 310:[2471603,1] 311:[2471606,1] 312:[2471609,1] 313:[2471610,1] 314:[2471611,1] 315:[2471612,1] 316:[2471613,1] 317:[2471614,1] 318:[2471615,1] 319:[2471616,1] 320:[2471617,1] 321:[2471618,1] 322:[2471619,1] 323:[2471627,1] 324:[2471630,1] 325:[2471631,1] 326:[2471632,1] 327:[2471633,1] 328:[2471637,1] 329:[2471638,1] 330:[2471641,1] 331:[2471644,1] 332:[2471645,1] 333:[2471646,1] 334:[2471647,1] 335:[2471656,1] 336:[2471657,1] 337:[2471658,1] 338:[2471662,1] 339:[2471663,1] 340:[2471670,1] 341:[2471671,1] 342:[2471672,1] 343:[2471673,1] 344:[2471678,1] 345:[2471679,1] 346:[2471680,1] 347:[2471730,1] 348:[2471734,1] 349:[2471743,1] 350:[2471767,1] 351:[2471768,1] 352:[2471769,1] 353:[2471770,1] 354:[2471771,1] 355:[2471796,1] 356:[2471803,1] 357:[2471812,1] 358:[2471858,1] 359:[2471894,1] 360:[2471898,1] 361:[2471901,1] 362:[2471904,1] 363:[2471910,1] 364:[2471911,1] 365:[2471912,1] 366:[2471913,1] 367:[2471914,1] 368:[2471915,1] 369:[2471924,1] 370:[2471936,1] 371:[2471939,1] 372:[2471940,1] 373:[2471944,1] 374:[2471945,1] 375:[2471951,1] 376:[2471955,1] 377:[2471958,1] 378:[2471959,1] 379:[2471960,1] 380:[2471961,1] 381:[2471962,1] 382:[2471966,1] 383:[2471971,1] 384:[2471976,1] 385:[2471988,1] 386:[2472050,1] 387:[2472088,1] 388:[2472105,1] 389:[2472118,1] 390:[2472129,1] 391:[2472162,1] 392:[2472172,1] 393:[2472182,1] 394:[2472183,1] 395:[2472186,1] 396:[2472187,1] 397:[2472226,1] 398:[2472295,1] 399:[2472296,1] 400:[2472299,1] 401:[2472303,1] 402:[2472306,1] 403:[2472307,1] 404:[2472308,1] 405:[2472309,1] 406:[2472310,1] 407:[2472311,1] 408:[2472312,1] 409:[2472313,1] 410:[2472314,1] 411:[2472315,1] 412:[2472316,1] 413:[2472317,1] 414:[2472325,1] 415:[2472326,1] 416:[2472327,1] 417:[2472328,1] 418:[2472333,1] 419:[2472351,1] 420:[2472523,1] 421:[2472528,1] 422:[2472534,1] 423:[2472547,1] 424:[2472568,1] 425:[2472569,1] 426:[2472570,1] 427:[2472574,1] 428:[2472578,1] 429:[2472579,1] 430:[2472580,1] 431:[2472851,1] 432:[2472854,1] 433:[2472860,1] 434:[2472861,1] 435:[2472862,1] 436:[2472865,1] 437:[2473340,1] 438:[2473343,1] 439:[2473346,1] 440:[2473347,1] 441:[2473348,1] 442:[2473360,1] 443:[2473361,1] 444:[2473372,1] 445:[2473375,1] 446:[2473376,1] 447:[2473377,1] 448:[2473378,1] 449:[2473379,1]
> 
> 
> xfs_db> convert agno 1 agbno 13754 fsblock
> 0x20035ba (33568186)
> xfs_db> fsblock 0x20035ba
> xfs_db> type cntbt
> xfs_db> p
> magic = 0x41423343
> level = 0
> numrecs = 253
> leftsib = 5
> rightsib = 7237
> bno = 260221392
> lsn = 0x480004c790
> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
> owner = 1
> crc = 0xdb7fc286 (correct)
> recs[1-253] = [startblock,blockcount] 1:[2473382,1] 2:[2473383,1] 3:[2473384,1] 4:[2473395,1] 5:[2473396,1] 6:[2473397,1] 7:[2473400,1] 8:[2473403,1] 9:[2473404,1] 10:[2473407,1] 11:[2473408,1] 12:[2473409,1] 13:[2473410,1] 14:[2473413,1] 15:[2473417,1] 16:[2473586,1] 17:[2473792,1] 18:[2473793,1] 19:[2473794,1] 20:[2473797,1] 21:[2473800,1] 22:[2473801,1] 23:[2473802,1] 24:[2473803,1] 25:[2473804,1] 26:[2473812,1] 27:[2473815,1] 28:[2473816,1] 29:[2473817,1] 30:[2473822,1] 31:[2473823,1] 32:[2473824,1] 33:[2473825,1] 34:[2473826,1] 35:[2473827,1] 36:[2473830,1] 37:[2473831,1] 38:[2473832,1] 39:[2473833,1] 40:[2473887,1] 41:[2473933,1] 42:[2473934,1] 43:[2473935,1] 44:[2473946,1] 45:[2474012,1] 46:[2474013,1] 47:[2474014,1] 48:[2474015,1] 49:[2474016,1] 50:[2474019,1] 51:[2474023,1] 52:[2474027,1] 53:[2474031,1] 54:[2474032,1] 55:[2474033,1] 56:[2474036,1] 57:[2474041,1] 58:[2474044,1] 59:[2474045,1] 60:[2474046,1] 61:[2474050,1] 62:[2474057,1] 63:[2474061,1] 64:[2474062,1] 65:[2474063,1] 66:[2474064,1] 67:[2474065,1] 68:[2474069,1] 69:[2474074,1] 70:[2474075,1] 71:[2474076,1] 72:[2474077,1] 73:[2474078,1] 74:[2474081,1] 75:[2474082,1] 76:[2474083,1] 77:[2474084,1] 78:[2474089,1] 79:[2474090,1] 80:[2474091,1] 81:[2474173,1] 82:[2474177,1] 83:[2474181,1] 84:[2474185,1] 85:[2474188,1] 86:[2474189,1] 87:[2474190,1] 88:[2474194,1] 89:[2474195,1] 90:[2474196,1] 91:[2474200,1] 92:[2474204,1] 93:[2474205,1] 94:[2474206,1] 95:[2474209,1] 96:[2474214,1] 97:[2474215,1] 98:[2474216,1] 99:[2474256,1] 100:[2474260,1] 101:[2474300,1] 102:[2474304,1] 103:[2474305,1] 104:[2474306,1] 105:[2474307,1] 106:[2474308,1] 107:[2474312,1] 108:[2474313,1] 109:[2474314,1] 110:[2474315,1] 111:[2474316,1] 112:[2474319,1] 113:[2474322,1] 114:[2474323,1] 115:[2474324,1] 116:[2474328,1] 117:[2474340,1] 118:[2474341,1] 119:[2474342,1] 120:[2474345,1] 121:[2474376,1] 122:[2474383,1] 123:[2474384,1] 124:[2474385,1] 125:[2474406,1] 126:[2474414,1] 127:[2474415,1] 128:[2474416,1] 129:[2474417,1] 130:[2474418,1] 131:[2474429,1] 132:[2474430,1] 133:[2474431,1] 134:[2474432,1] 135:[2474433,1] 136:[2474436,1] 137:[2474441,1] 138:[2474442,1] 139:[2474443,1] 140:[2474444,1] 141:[2474445,1] 142:[2474446,1] 143:[2474447,1] 144:[2474448,1] 145:[2474451,1] 146:[2474452,1] 147:[2474453,1] 148:[2474456,1] 149:[2474457,1] 150:[2474458,1] 151:[2474459,1] 152:[2474460,1] 153:[2474461,1] 154:[2474462,1] 155:[2474463,1] 156:[2474464,1] 157:[2474465,1] 158:[2474466,1] 159:[2474491,1] 160:[2474492,1] 161:[2474493,1] 162:[2474496,1] 163:[2474500,1] 164:[2474505,1] 165:[2474506,1] 166:[2474507,1] 167:[2474510,1] 168:[2474511,1] 169:[2474512,1] 170:[2474515,1] 171:[2474518,1] 172:[2474519,1] 173:[2474520,1] 174:[2474521,1] 175:[2474522,1] 176:[2474525,1] 177:[2474526,1] 178:[2474527,1] 179:[2474530,1] 180:[2474533,1] 181:[2474566,1] 182:[2474569,1] 183:[2474653,1] 184:[2474656,1] 185:[2474661,1] 186:[2474662,1] 187:[2474663,1] 188:[2474664,1] 189:[2474669,1] 190:[2474676,1] 191:[2474680,1] 192:[2474683,1] 193:[2474689,1] 194:[2474690,1] 195:[2474694,1] 196:[2474695,1] 197:[2474696,1] 198:[2474713,1] 199:[2474714,1] 200:[2474715,1] 201:[2474729,1] 202:[2474732,1] 203:[2474735,1] 204:[21,2] 205:[2470478,2] 206:[2470483,2] 207:[2470489,2] 208:[2470494,2] 209:[2470570,2] 210:[2470580,2] 211:[2470592,2] 212:[2470594,2] 213:[2470621,2] 214:[2470624,2] 215:[2470630,2] 216:[2470632,2] 217:[2470649,2] 218:[2470713,2] 219:[2470716,2] 220:[2470719,2] 221:[2470724,2] 222:[2470742,2] 223:[2470749,2] 224:[2470752,2] 225:[2470766,2] 226:[2470783,2] 227:[2470785,2] 228:[2470809,2] 229:[2470840,2] 230:[2470852,2] 231:[2470899,2] 232:[2470904,2] 233:[2470906,2] 234:[2470942,2] 235:[2470960,2] 236:[2470967,2] 237:[2470970,2] 238:[2470974,2] 239:[2470976,2] 240:[2470984,2] 241:[2471001,2] 242:[2471005,2] 243:[2471008,2] 244:[2471029,2] 245:[2471037,2] 246:[2471039,2] 247:[2471046,2] 248:[2471057,2] 249:[2471059,2] 250:[2471061,2] 251:[2471067,2] 252:[2471071,2] 253:[2471083,2]
> 
> 
> 
> recs[1-349] = [startblock,blockcount] 1:[2471085,2] 2:[2471088,2] 3:[2471091,2] 4:[2471093,2] 5:[2471147,2] 6:[2471163,2] 7:[2471167,2] 8:[2471169,2] 9:[2471172,2] 10:[2471180,2] 11:[2471183,2] 12:[2471190,2] 13:[2471200,2] 14:[2471251,2] 15:[2471292,2] 16:[2471300,2] 17:[2471303,2] 18:[2471308,2] 19:[2471310,2] 20:[2471314,2] 21:[2471334,2] 22:[2471350,2] 23:[2471356,2] 24:[2471360,2] 25:[2471377,2] 26:[2471426,2] 27:[2471435,2] 28:[2471441,2] 29:[2471483,2] 30:[2471487,2] 31:[2471511,2] 32:[2471524,2] 33:[2471527,2] 34:[2471541,2] 35:[2471543,2] 36:[2471552,2] 37:[2471594,2] 38:[2471604,2] 39:[2471607,2] 40:[2471620,2] 41:[2471625,2] 42:[2471628,2] 43:[2471639,2] 44:[2471642,2] 45:[2471652,2] 46:[2471654,2] 47:[2471681,2] 48:[2471772,2] 49:[2471774,2] 50:[2471899,2] 51:[2471902,2] 52:[2471905,2] 53:[2471929,2] 54:[2471937,2] 55:[2471956,2] 56:[2472056,2] 57:[2472111,2] 58:[2472113,2] 59:[2472123,2] 60:[2472125,2] 61:[2472127,2] 62:[2472173,2] 63:[2472180,2] 64:[2472184,2] 65:[2472193,2] 66:[2472297,2] 67:[2472304,2] 68:[2472334,2] 69:[2472336,2] 70:[2472512,2] 71:[2472519,2] 72:[2472521,2] 73:[2472800,2] 74:[2472852,2] 75:[2472863,2] 76:[2473341,2] 77:[2473344,2] 78:[2473355,2] 79:[2473373,2] 80:[2473380,2] 81:[2473398,2] 82:[2473401,2] 83:[2473405,2] 84:[2473411,2] 85:[2473795,2] 86:[2473798,2] 87:[2473808,2] 88:[2473810,2] 89:[2473813,2] 90:[2473828,2] 91:[2473837,2] 92:[2473839,2] 93:[2473841,2] 94:[2474017,2] 95:[2474034,2] 96:[2474042,2] 97:[2474070,2] 98:[2474072,2] 99:[2474079,2] 100:[2474085,2] 101:[2474087,2] 102:[2474186,2] 103:[2474207,2] 104:[2474317,2] 105:[2474320,2] 106:[2474343,2] 107:[2474434,2] 108:[2474437,2] 109:[2474439,2] 110:[2474449,2] 111:[2474454,2] 112:[2474489,2] 113:[2474494,2] 114:[2474508,2] 115:[2474513,2] 116:[2474516,2] 117:[2474523,2] 118:[2474528,2] 119:[2474531,2] 120:[2474567,2] 121:[2474654,2] 122:[2474657,2] 123:[2474659,2] 124:[2474681,2] 125:[2474684,2] 126:[2474730,2] 127:[2474733,2] 128:[2470501,3] 129:[2470524,3] 130:[2470528,3] 131:[2470589,3] 132:[2470617,3] 133:[2470761,3] 134:[2470777,3] 135:[2470797,3] 136:[2470826,3] 137:[2470848,3] 138:[2470854,3] 139:[2470917,3] 140:[2470922,3] 141:[2470938,3] 142:[2470980,3] 143:[2471011,3] 144:[2471049,3] 145:[2471110,3] 146:[2471153,3] 147:[2471219,3] 148:[2471268,3] 149:[2471281,3] 150:[2471289,3] 151:[2471294,3] 152:[2471316,3] 153:[2471401,3] 154:[2471520,3] 155:[2471545,3] 156:[2471549,3] 157:[2471571,3] 158:[2471622,3] 159:[2471634,3] 160:[2471659,3] 161:[2471731,3] 162:[2471895,3] 163:[2471907,3] 164:[2471941,3] 165:[2471952,3] 166:[2471963,3] 167:[2472115,3] 168:[2472300,3] 169:[2472318,3] 170:[2472571,3] 171:[2472575,3] 172:[2473357,3] 173:[2473362,3] 174:[2473414,3] 175:[2473805,3] 176:[2473834,3] 177:[2474020,3] 178:[2474024,3] 179:[2474028,3] 180:[2474047,3] 181:[2474058,3] 182:[2474066,3] 183:[2474174,3] 184:[2474178,3] 185:[2474182,3] 186:[2474191,3] 187:[2474197,3] 188:[2474201,3] 189:[2474257,3] 190:[2474301,3] 191:[2474309,3] 192:[2474325,3] 193:[2474497,3] 194:[2474677,3] 195:[2474686,3] 196:[2474691,3] 197:[2470470,4] 198:[2470519,4] 199:[2470573,4] 200:[2470737,4] 201:[2470745,4] 202:[2470843,4] 203:[2470928,4] 204:[2470988,4] 205:[2471226,4] 206:[2471240,4] 207:[2471253,4] 208:[2471323,4] 209:[2471352,4] 210:[2471531,4] 211:[2471554,4] 212:[2471597,4] 213:[2471648,4] 214:[2471674,4] 215:[2471925,4] 216:[2471967,4] 217:[2471972,4] 218:[2472119,4] 219:[2472321,4] 220:[2472329,4] 221:[2472524,4] 222:[2473818,4] 223:[2474037,4] 224:[2474092,4] 225:[2474210,4] 226:[2474485,4] 227:[2474501,4] 228:[2474665,4] 229:[2470679,5] 230:[2470685,5] 231:[2470788,5] 232:[2470800,5] 233:[2470813,5] 234:[2470834,5] 235:[2470858,5] 236:[2470994,5] 237:[2471031,5] 238:[2471157,5] 239:[2471244,5] 240:[2471328,5] 241:[2471337,5] 242:[2471535,5] 243:[2471931,5] 244:[2471946,5] 245:[2472051,5] 246:[2472106,5] 247:[2472175,5] 248:[2472188,5] 249:[2472514,5] 250:[2472529,5] 251:[2472855,5] 252:[2470583,6] 253:[2470818,6] 254:[2470864,6] 255:[2470873,6] 256:[2470908,6] 257:[2471343,6] 258:[2471513,6] 259:[2471664,6] 260:[2471797,6] 261:[2473349,6] 262:[2474051,6] 263:[2474377,6] 264:[2474670,6] 265:[2471140,7] 266:[2471561,7] 267:[2473365,7] 268:[2474407,7] 269:[2470597,8] 270:[2470768,8] 271:[2471272,8] 272:[2471735,8] 273:[2471804,8] 274:[2471916,8] 275:[2470727,9] 276:[2471231,9] 277:[2471258,9] 278:[2472163,9] 279:[2470606,10] 280:[2470668,10] 281:[2471097,10] 282:[2471113,10] 283:[2473385,10] 284:[2473936,10] 285:[2474419,10] 286:[2470507,11] 287:[2471977,11] 288:[2474329,11] 289:[2470946,12] 290:[2471017,12] 291:[2471364,12] 292:[2472535,12] 293:[2471127,13] 294:[2472338,13] 295:[2474716,13] 296:[2470635,14] 297:[2470653,14] 298:[2472089,16] 299:[2474697,16] 300:[2470880,18] 301:[2471575,18] 302:[2474467,18] 303:[2471380,20] 304:[2471405,20] 305:[2471776,20] 306:[2472548,20] 307:[2474386,20] 308:[2470691,21] 309:[2471490,21] 310:[2471744,23] 311:[2472058,30] 312:[2474346,30] 313:[2472195,31] 314:[2472130,32] 315:[2474534,32] 316:[2471859,35] 317:[2470532,38] 318:[2474217,39] 319:[2474261,39] 320:[2471443,40] 321:[2473843,44] 322:[2471813,45] 323:[2473888,45] 324:[2471683,47] 325:[2472802,49] 326:[2471989,61] 327:[2473947,65] 328:[2472227,68] 329:[2474096,77] 330:[2474570,83] 331:[2472352,160] 332:[2473418,168] 333:[2473587,205] 334:[2472581,219] 335:[15547,427] 336:[20319,451] 337:[2472866,474] 338:[19699,619] 339:[29,770] 340:[6192,1045] 341:[7238,1209] 342:[13755,1791] 343:[3546,2645] 344:[800,2745] 345:[15975,3723] 346:[8448,5306] 347:[20771,11257] 348:[32029,2438438] 349:[2474736,30039184]


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: XFS_WANT_CORRUPTED_RETURN on xfs + dax
  2020-11-24 16:52 ` Darrick J. Wong
@ 2020-11-25  0:57   ` Wang Jianchao
  2020-12-03 21:34     ` Darrick J. Wong
  0 siblings, 1 reply; 4+ messages in thread
From: Wang Jianchao @ 2020-11-25  0:57 UTC (permalink / raw)
  To: Darrick J. Wong; +Cc: linux-xfs

Hi Darrick

On 2020/11/25 12:52 上午, Darrick J. Wong wrote:
> On Tue, Nov 24, 2020 at 08:34:10PM +0800, Wang Jianchao wrote:
>> Hi list
>>
>> Help
>>
>> We recently encountered an issue on xfs + dax + Aep of our online production
>> system as following,
>>
>>
>> [Mon Nov 16 23:39:04 2020] XFS (pmem1): Internal error 
>> XFS_WANT_CORRUPTED_RETURN at line 461 of file fs/xfs/libxfs/xfs_alloc.c. 
>>  Caller xfs_alloc_ag_vextent_size+0x578/0x6d0 [xfs]
>> [Mon Nov 16 23:39:04 2020] CPU: 77 PID: 53995 Comm: kvstore Kdump: 
>> ...
>> [Mon Nov 16 23:39:04 2020] Call Trace:
>> [Mon Nov 16 23:39:04 2020]  dump_stack+0x5c/0x80
>> [Mon Nov 16 23:39:04 2020]  xfs_alloc_fixup_trees+0x1d7/0x370 [xfs]
>> [Mon Nov 16 23:39:04 2020]  xfs_alloc_ag_vextent_size+0x578/0x6d0 [xfs]
>> [Mon Nov 16 23:39:04 2020]  xfs_alloc_ag_vextent+0x126/0x140 [xfs]
>> [Mon Nov 16 23:39:04 2020]  xfs_alloc_vextent+0x43a/0x560 [xfs]
>> [Mon Nov 16 23:39:04 2020]  xfs_bmap_btalloc+0x462/0x8d0 [xfs]
>> [Mon Nov 16 23:39:04 2020]  xfs_bmapi_write+0x610/0xbc0 [xfs]
>> [Mon Nov 16 23:39:04 2020]  xfs_iomap_write_direct+0x254/0x330 [xfs]
>> [Mon Nov 16 23:39:04 2020]  xfs_file_iomap_begin+0x20b/0xa20 [xfs]
>> [Mon Nov 16 23:39:04 2020]  ? xfs_trans_free+0x55/0xc0 [xfs]
>> [Mon Nov 16 23:39:04 2020]  ? dax_iomap_rw+0xa0/0xa0
>> [Mon Nov 16 23:39:04 2020]  iomap_apply+0x63/0x130
>> [Mon Nov 16 23:39:04 2020]  ? dax_iomap_rw+0xa0/0xa0
>> [Mon Nov 16 23:39:04 2020]  dax_iomap_rw+0x73/0xa0
>> [Mon Nov 16 23:39:04 2020]  ? dax_iomap_rw+0xa0/0xa0
>> [Mon Nov 16 23:39:04 2020]  xfs_file_dax_write+0xce/0x230 [xfs]
>> [Mon Nov 16 23:39:04 2020]  ? try_to_wake_up+0x54/0x4b0
>> [Mon Nov 16 23:39:04 2020]  new_sync_write+0x124/0x170
>> [Mon Nov 16 23:39:04 2020]  vfs_write+0xa5/0x1a0
>> [Mon Nov 16 23:39:04 2020]  ksys_write+0x4f/0xb0
>> [Mon Nov 16 23:39:04 2020]  do_syscall_64+0x5b/0x1b0
>> [Mon Nov 16 23:39:04 2020]  entry_SYSCALL_64_after_hwframe+0x65/0xca
>> [Mon Nov 16 23:39:04 2020] RIP: 0033:0x7f621167985d
>>
>> The kernel is based on Centos's 4.18.0-147.5.1.el8, and the code is
> 
> Does this happen on upstream 5.10 (or 5.9.x where x < 9 or > 10)?
> 
> --D

We haven't try it and would like to setup a test environment with newer kernel.
What's kind of issue could cause the disordered btree recs ?

Many thanks
Jianchao

> 
>> xfs_alloc_fixup_trees()
>> ---
>> /*
>> 	 * Look up the record in the by-size tree if necessary.
>> 	 */
>> 	if (flags & XFSA_FIXUP_CNT_OK) {
>>         ...
>> 	} else {
>> 		if ((error = xfs_alloc_lookup_eq(cnt_cur, fbno, flen, &i)))
>> 			return error;
>> 		XFS_WANT_CORRUPTED_RETURN(mp, i == 1);
>> 	}
>> 	/*
>> 	 * Look up the record in the by-block tree if necessary.
>> 	 */
>> 	if (flags & XFSA_FIXUP_BNO_OK) {
>>         ...
>> 	} else {
>> 		if ((error = xfs_alloc_lookup_eq(bno_cur, fbno, flen, &i)))
>> 			return error;
>> 		XFS_WANT_CORRUPTED_RETURN(mp, i == 1);
>> 	}
>> ---
>>
>> The warning message is triggered when it cannot find the block number in bno btree;
>>
>> And When I checked the bno btree and cnt btree with xfs_db, found that the agf1's bno btree was broken
>> but the CRC was correct; 
>>
>>
>> keys[1-3] = [startblock,blockcount] 1:[21,2] 2:[2471622,3] 3:[2470630,2]
>> ptrs[1-3] = 1:4 2:6191 3:32028
>>
>> 1 (266 recs) 21  ~ [32029,2438438]  ~ 2470468  ~ 2471619
>> 2 (303 recs) 2471622  ~ 2474735 2475851 2477827 2478034 2469802 2470467 2470469 ~ 2470628 
>>                                    ^       ^       ^       ^   
>> 3 (482 recs) 2470630  ~ [2474736,30039184]
>>
>> The 2nd btree block was disordered, four fsblocks, namely 2475851 2477827 2478034 2469802,
>> were inserted in the wrong place and in addition, they even shouldn't exist, as the two big extents
>> had included them.
>>
>> The 1st element of the cnt btree is 2470467, but it cannot be found in bno btree due to wrong order.
>> Then warning message was post. The attachment is the detail of the bno and cnt btree.
>>
>> And there was another calltrace, but I didn't get the image to run xfs_dbg,
>> Oct  7 18:22:44 kernel: XFS (pmem1): Internal error XFS_WANT_CORRUPTED_GOTO at line 3477 of file fs/xfs/libxfs/xfs_btree.c.  Caller xfs_free_ag_extent+0x46c/0x730 [xfs]
>> Oct  7 18:22:44 kernel: Call Trace:
>> Oct  7 18:22:44 kernel: dump_stack+0x5c/0x80
>> Oct  7 18:22:44 kernel: xfs_btree_insert+0x1ba/0x220 [xfs]
>> Oct  7 18:22:44 kernel: ? xfs_btree_lookup+0x2a9/0x460 [xfs]
>> Oct  7 18:22:44 kernel: ? xfs_free_ag_extent+0x46c/0x730 [xfs]
>> Oct  7 18:22:44 kernel: xfs_free_ag_extent+0x46c/0x730 [xfs]
>> Oct  7 18:22:44 kernel: ? xfs_perag_get+0x25/0xb0 [xfs]
>> Oct  7 18:22:44 kernel: xfs_free_agfl_block+0x2c/0x80 [xfs]
>> Oct  7 18:22:44 kernel: xfs_agfl_free_finish_item+0x17a/0x190 [xfs]
>> Oct  7 18:22:44 kernel: ? xfs_trans_add_item+0x33/0xa0 [xfs]
>> Oct  7 18:22:44 kernel: xfs_defer_finish_noroll+0x183/0x480 [xfs]
>> Oct  7 18:22:44 kernel: ? xfs_iomap_write_direct+0x26d/0x330 [xfs]
>> Oct  7 18:22:44 kernel: __xfs_trans_commit+0x13f/0x330 [xfs]
>> Oct  7 18:22:44 kernel: xfs_iomap_write_direct+0x26d/0x330 [xfs]
>> Oct  7 18:22:44 kernel: xfs_file_iomap_begin+0x20b/0xa00 [xfs]
>> Oct  7 18:22:44 kernel: ? dax_iomap_rw+0xa0/0xa0
>> Oct  7 18:22:44 kernel: iomap_apply+0x5f/0x130
>> Oct  7 18:22:44 kernel: ? dax_iomap_rw+0xa0/0xa0
>> Oct  7 18:22:44 kernel: dax_iomap_rw+0x73/0xa0
>> Oct  7 18:22:44 kernel: ? dax_iomap_rw+0xa0/0xa0
>> Oct  7 18:22:44 kernel: xfs_file_dax_write+0xce/0x220 [xfs]
>> Oct  7 18:22:44 kernel: ? xfs_file_dax_read+0x83/0xf0 [xfs]
>> Oct  7 18:22:44 kernel: new_sync_write+0x11e/0x170
>> Oct  7 18:22:44 kernel: vfs_write+0xa5/0x1a0
>> Oct  7 18:22:44 kernel: ksys_write+0x4f/0xb0
>> Oct  7 18:22:44 kernel: do_syscall_64+0x55/0x1b0
>> Oct  7 18:22:44 kernel: entry_SYSCALL_64_after_hwframe+0x65/0xca
>> Oct  7 18:22:44 kernel: RIP: 0033:0x7f546898085d
>>
>> And the code should be
>> xfs_btree_insert()
>> ---
>> 		error = xfs_btree_insrec(pcur, level, &nptr, &rec, key,
>> 				&ncur, &i);
>> 		if (error) {
>> 			if (pcur != cur)
>> 				xfs_btree_del_cursor(pcur, XFS_BTREE_ERROR);
>> 			goto error0;
>> 		}
>>
>> 		XFS_WANT_CORRUPTED_GOTO(cur->bc_mp, i == 1, error0);
>> 		level++;
>> ---
>>
>> This issue have been reproduced many times.
>>
>> Many thanks for any help.
>>
>> Jianchao
> 
>> xfs_db> type bnobt
>> xfs_db> p
>> magic = 0x41423342
>> level = 1
>> numrecs = 3
>> leftsib = null
>> rightsib = null
>> bno = 260277520
>> lsn = 0x480004ca28
>> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
>> owner = 1
>> crc = 0x6bd8c9db (correct)
>> keys[1-3] = [startblock,blockcount] 1:[21,2] 2:[2471622,3] 3:[2470630,2]
>> ptrs[1-3] = 1:4 2:6191 3:32028
>> xfs_db> convert agno 1 agbno 4 fsblock2470468
>> 0x2000004 (33554436)
>> xfs_db> fsblock 0x2000004 
>> xfs_db> type bnobt
>> xfs_db> p
>> magic = 0x41423342
>> level = 0
>> numrecs = 266
>> leftsib = null
>> rightsib = 6191
>> bno = 260111392
>> lsn = 0x480004ca28
>> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
>> owner = 1
>> crc = 0x13b235d7 (correct)
>> recs[1-266] = [startblock,blockcount] 1:[21,2] 2:[29,770] 3:[800,2745] 4:[3546,2645] 5:[6192,1045] 6:[7238,1209] 7:[8448,5306] 8:[13755,1791] 9:[15547,427] 10:[15975,3723] 11:[19699,619] 12:[20319,451] 13:[20771,11257] 14:[32029,2438438] 15:[2470468,1] 16:[2470470,4] 17:[2470475,1] 18:[2470477,1] 19:[2470480,1] 20:[2470482,1] 21:[2470485,1] 22:[2470487,1] 23:[2470489,2] 24:[2470492,1] 25:[2470494,2] 26:[2470497,1] 27:[2470499,1] 28:[2470501,3] 29:[2470505,1] 30:[2470507,11] 31:[2470519,4] 32:[2470524,3] 33:[2470528,3] 34:[2470532,38] 35:[2470572,1] 36:[2470577,1] 37:[2470579,1] 38:[2470582,1] 39:[2470589,3] 40:[2470594,2] 41:[2470597,8] 42:[2470606,10] 43:[2470617,3] 44:[2470621,2] 45:[2470624,2] 46:[2470627,1] 47:[2470629,1] 48:[2470632,2] 49:[2470635,14] 50:[2470651,1] 51:[2470653,14] 52:[2470668,10] 53:[2470679,5] 54:[2470685,5] 55:[2470691,21] 56:[2470713,2] 57:[2470716,2] 58:[2470719,2] 59:[2470722,1] 60:[2470724,2] 61:[2470727,9] 62:[2470737,4] 63:[2470742,2] 64:[2470745,4] 65:[2470751,1] 66:[2470754,1] 67:[2470756,1] 68:[2470758,1] 69:[2470760,1] 70:[2470764,1] 71:[2470766,2] 72:[2470776,1] 73:[2470780,1] 74:[2470782,1] 75:[2470785,2] 76:[2470788,5] 77:[2470794,1] 78:[2470796,1] 79:[2470800,5] 80:[2470806,1] 81:[2470808,1] 82:[2470811,1] 83:[2470813,5] 84:[2470824,1] 85:[2470826,3] 86:[2470830,1] 87:[2470832,1] 88:[2470834,5] 89:[2470840,2] 90:[2470843,4] 91:[2470848,3] 92:[2470852,2] 93:[2470857,1] 94:[2470863,1] 95:[2470870,1] 96:[2470872,1] 97:[2470879,1] 98:[2470898,1] 99:[2470901,1] 100:[2470903,1] 101:[2470906,2] 102:[2470914,1] 103:[2470916,1] 104:[2470920,1] 105:[2470922,3] 106:[2470926,1] 107:[2470928,4] 108:[2470933,1] 109:[2470935,1] 110:[2470937,1] 111:[2470941,1] 112:[2470944,1] 113:[2470946,12] 114:[2470959,1] 115:[2470962,1] 116:[2470964,1] 117:[2470966,1] 118:[2470969,1] 119:[2470972,1] 120:[2470974,2] 121:[2470978,1] 122:[2470980,3] 123:[2470984,2] 124:[2470987,1] 125:[2470992,1] 126:[2470994,5] 127:[2471000,1] 128:[2471003,1] 129:[2471005,2] 130:[2471008,2] 131:[2471011,3] 132:[2471015,1] 133:[2471017,12] 134:[2471031,5] 135:[2471037,2] 136:[2471041,1] 137:[2471043,1] 138:[2471045,1] 139:[2471048,1] 140:[2471052,1] 141:[2471054,1] 142:[2471056,1] 143:[2471059,2] 144:[2471063,1] 145:[2471065,1] 146:[2471067,2] 147:[2471070,1] 148:[2471073,1] 149:[2471075,1] 150:[2471077,1] 151:[2471079,1] 152:[2471081,1] 153:[2471083,2] 154:[2471087,1] 155:[2471090,1] 156:[2471093,2] 157:[2471096,1] 158:[2471107,1] 159:[2471109,1] 160:[2471113,10] 161:[2471124,1] 162:[2471126,1] 163:[2471140,7] 164:[2471149,1] 165:[2471151,1] 166:[2471153,3] 167:[2471157,5] 168:[2471163,2] 169:[2471166,1] 170:[2471169,2] 171:[2471172,2] 172:[2471175,1] 173:[2471177,1] 174:[2471179,1] 175:[2471182,1] 176:[2471185,1] 177:[2471187,1] 178:[2471189,1] 179:[2471192,1] 180:[2471194,1] 181:[2471196,1] 182:[2471198,1] 183:[2471200,2] 184:[2471203,1] 185:[2471205,1] 186:[2471207,1] 187:[2471209,1] 188:[2471211,1] 189:[2471213,1] 190:[2471215,1] 191:[2471217,1] 192:[2471219,3] 193:[2471223,1] 194:[2471225,1] 195:[2471230,1] 196:[2471240,4] 197:[2471249,1] 198:[2471251,2] 199:[2471257,1] 200:[2471267,1] 201:[2471271,1] 202:[2471280,1] 203:[2471284,1] 204:[2471286,1] 205:[2471288,1] 206:[2471292,2] 207:[2471297,1] 208:[2471299,1] 209:[2471302,1] 210:[2471305,1] 211:[2471307,1] 212:[2471310,2] 213:[2471313,1] 214:[2471316,3] 215:[2471320,1] 216:[2471322,1] 217:[2471327,1] 218:[2471333,1] 219:[2471336,1] 220:[2471342,1] 221:[2471349,1] 222:[2471352,4] 223:[2471358,1] 224:[2471360,2] 225:[2471363,1] 226:[2471376,1] 227:[2471379,1] 228:[2471400,1] 229:[2471404,1] 230:[2471425,1] 231:[2471428,1] 232:[2471430,1] 233:[2471432,1] 234:[2471434,1] 235:[2471437,1] 236:[2471439,1] 237:[2471441,2] 238:[2471483,2] 239:[2471486,1] 240:[2471489,1] 241:[2471511,2] 242:[2471519,1] 243:[2471523,1] 244:[2471526,1] 245:[2471529,1] 246:[2471531,4] 247:[2471540,1] 248:[2471543,2] 249:[2471548,1] 250:[2471552,2] 251:[2471558,1] 252:[2471560,1] 253:[2471568,1] 254:[2471570,1] 255:[2471574,1] 256:[2471593,1] 257:[2471596,1] 258:[2471601,1] 259:[2471603,1] 260:[2471606,1] 261:[2471609,1] 262:[2471611,1] 263:[2471613,1] 264:[2471615,1] 265:[2471617,1] 266:[2471619,1]
>> xfs_db> convert agno 1 agbno 6191 fsblock
>> 0x200182f (33560623)
>> xfs_db> fsblock 0x200182f
>> xfs_db> type bnobt
>> xfs_db> p
>> magic = 0x41423342
>> level = 0
>> numrecs = 303
>> leftsib = 4
>> rightsib = 32028
>> bno = 260160888
>> lsn = 0x480004a9c0
>> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
>> owner = 1
>> crc = 0x804caac1 (correct)
>> recs[1-303] = [startblock,blockcount] 1:[2471622,3] 2:[2471627,1] 3:[2471630,1] 4:[2471632,1] 5:[2471634,3] 6:[2471638,1] 7:[2471641,1] 8:[2471644,1] 9:[2471646,1] 10:[2471648,4] 11:[2471654,2] 12:[2471657,1] 13:[2471659,3] 14:[2471663,1] 15:[2471670,1] 16:[2471672,1] 17:[2471674,4] 18:[2471679,1] 19:[2471681,2] 20:[2471730,1] 21:[2471734,1] 22:[2471743,1] 23:[2471767,1] 24:[2471769,1] 25:[2471771,1] 26:[2471774,2] 27:[2471796,1] 28:[2471803,1] 29:[2471812,1] 30:[2471858,1] 31:[2471894,1] 32:[2471898,1] 33:[2471901,1] 34:[2471904,1] 35:[2471907,3] 36:[2471911,1] 37:[2471913,1] 38:[2471915,1] 39:[2471924,1] 40:[2471929,2] 41:[2471936,1] 42:[2471939,1] 43:[2471941,3] 44:[2471945,1] 45:[2471951,1] 46:[2471955,1] 47:[2471958,1] 48:[2471960,1] 49:[2471962,1] 50:[2471966,1] 51:[2471971,1] 52:[2471976,1] 53:[2471988,1] 54:[2472050,1] 55:[2472056,2] 56:[2472088,1] 57:[2472105,1] 58:[2472111,2] 59:[2472115,3] 60:[2472119,4] 61:[2472125,2] 62:[2472129,1] 63:[2472162,1] 64:[2472172,1] 65:[2472175,5] 66:[2472182,1] 67:[2472184,2] 68:[2472187,1] 69:[2472193,2] 70:[2472226,1] 71:[2472295,1] 72:[2472297,2] 73:[2472300,3] 74:[2472304,2] 75:[2472307,1] 76:[2472309,1] 77:[2472311,1] 78:[2472313,1] 79:[2472315,1] 80:[2472317,1] 81:[2472321,4] 82:[2472326,1] 83:[2472328,1] 84:[2472333,1] 85:[2472336,2] 86:[2472351,1] 87:[2472512,2] 88:[2472519,2] 89:[2472523,1] 90:[2472528,1] 91:[2472534,1] 92:[2472547,1] 93:[2472568,1] 94:[2472570,1] 95:[2472574,1] 96:[2472578,1] 97:[2472580,1] 98:[2472800,2] 99:[2472851,1] 100:[2472854,1] 101:[2472860,1] 102:[2472862,1] 103:[2472865,1] 104:[2473340,1] 105:[2473343,1] 106:[2473346,1] 107:[2473348,1] 108:[2473355,2] 109:[2473360,1] 110:[2473362,3] 111:[2473372,1] 112:[2473375,1] 113:[2473377,1] 114:[2473379,1] 115:[2473382,1] 116:[2473384,1] 117:[2473395,1] 118:[2473397,1] 119:[2473400,1] 120:[2473403,1] 121:[2473405,2] 122:[2473408,1] 123:[2473410,1] 124:[2473413,1] 125:[2473417,1] 126:[2473586,1] 127:[2473792,1] 128:[2473794,1] 129:[2473797,1] 130:[2473800,1] 131:[2473802,1] 132:[2473804,1] 133:[2473808,2] 134:[2473812,1] 135:[2473815,1] 136:[2473817,1] 137:[2473822,1] 138:[2473824,1] 139:[2473826,1] 140:[2473828,2] 141:[2473831,1] 142:[2473833,1] 143:[2473837,2] 144:[2473841,2] 145:[2473887,1] 146:[2473933,1] 147:[2473935,1] 148:[2473946,1] 149:[2474012,1] 150:[2474014,1] 151:[2474016,1] 152:[2474019,1] 153:[2474023,1] 154:[2474027,1] 155:[2474031,1] 156:[2474033,1] 157:[2474036,1] 158:[2474041,1] 159:[2474044,1] 160:[2474046,1] 161:[2474050,1] 162:[2474057,1] 163:[2474061,1] 164:[2474063,1] 165:[2474065,1] 166:[2474069,1] 167:[2474072,2] 168:[2474075,1] 169:[2474077,1] 170:[2474079,2] 171:[2474082,1] 172:[2474084,1] 173:[2474087,2] 174:[2474090,1] 175:[2474092,4] 176:[2474173,1] 177:[2474177,1] 178:[2474181,1] 179:[2474185,1] 180:[2474188,1] 181:[2474190,1] 182:[2474194,1] 183:[2474196,1] 184:[2474200,1] 185:[2474204,1] 186:[2474206,1] 187:[2474209,1] 188:[2474214,1] 189:[2474216,1] 190:[2474256,1] 191:[2474260,1] 192:[2474300,1] 193:[2474304,1] 194:[2474306,1] 195:[2474308,1] 196:[2474312,1] 197:[2474314,1] 198:[2474316,1] 199:[2474319,1] 200:[2474322,1] 201:[2474324,1] 202:[2474328,1] 203:[2474340,1] 204:[2474342,1] 205:[2474345,1] 206:[2474376,1] 207:[2474383,1] 208:[2474385,1] 209:[2474406,1] 210:[2474414,1] 211:[2474416,1] 212:[2474418,1] 213:[2474429,1] 214:[2474431,1] 215:[2474433,1] 216:[2474436,1] 217:[2474439,2] 218:[2474442,1] 219:[2474444,1] 220:[2474446,1] 221:[2474448,1] 222:[2474451,1] 223:[2474453,1] 224:[2474456,1] 225:[2474458,1] 226:[2474460,1] 227:[2474462,1] 228:[2474464,1] 229:[2474466,1] 230:[2474485,4] 231:[2474491,1] 232:[2474493,1] 233:[2474496,1] 234:[2474500,1] 235:[2474505,1] 236:[2474507,1] 237:[2474510,1] 238:[2474512,1] 239:[2474515,1] 240:[2474518,1] 241:[2474520,1] 242:[2474522,1] 243:[2474525,1] 244:[2474527,1] 245:[2474530,1] 246:[2474533,1] 247:[2474566,1] 248:[2474569,1] 249:[2474653,1] 250:[2474656,1] 251:[2474659,2] 252:[2474662,1] 253:[2474664,1] 254:[2474669,1] 255:[2474676,1] 256:[2474680,1] 257:[2474683,1] 258:[2474686,3] 259:[2474690,1] 260:[2474694,1] 261:[2474696,1] 262:[2474713,1] 263:[2474715,1] 264:[2474729,1] 265:[2474732,1] 266:[2474735,1] 267:[2475851,1] 268:[2477827,1] 269:[2478034,1] 270:[2469802,1] 271:[2470467,1] 272:[2470469,1] 273:[2470474,1] 274:[2470476,1] 275:[2470478,2] 276:[2470481,1] 277:[2470483,2] 278:[2470486,1] 279:[2470488,1] 280:[2470491,1] 281:[2470493,1] 282:[2470496,1] 283:[2470498,1] 284:[2470500,1] 285:[2470504,1] 286:[2470506,1] 287:[2470518,1] 288:[2470523,1] 289:[2470527,1] 290:[2470531,1] 291:[2470570,2] 292:[2470573,4] 293:[2470578,1] 294:[2470580,2] 295:[2470583,6] 296:[2470592,2] 297:[2470596,1] 298:[2470605,1] 299:[2470616,1] 300:[2470620,1] 301:[2470623,1] 302:[2470626,1] 303:[2470628,1]
>> xfs_db> convert agno 1 agbno  32028 fsblock
>> 0x2007d1c (33586460)
>> xfs_db> fsblock 0x2007d1c
>> xfs_db> bnobt
>> command bnobt not found
>> xfs_db> type bnobt
>> xfs_db> p
>> magic = 0x41423342
>> level = 0
>> numrecs = 482
>> leftsib = 6191
>> rightsib = null
>> bno = 260367584
>> lsn = 0x480004a550
>> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
>> owner = 1
>> crc = 0xf6b4cd63 (correct)
>> recs[1-482] = [startblock,blockcount] 1:[2470630,2] 2:[2470634,1] 3:[2470649,2] 4:[2470652,1] 5:[2470667,1] 6:[2470678,1] 7:[2470684,1] 8:[2470690,1] 9:[2470715,1] 10:[2470726,1] 11:[2470736,1] 12:[2470741,1] 13:[2470744,1] 14:[2470749,2] 15:[2470752,2] 16:[2470755,1] 17:[2470757,1] 18:[2470759,1] 19:[2470761,3] 20:[2470765,1] 21:[2470768,8] 22:[2470777,3] 23:[2470781,1] 24:[2470783,2] 25:[2470787,1] 26:[2470793,1] 27:[2470795,1] 28:[2470797,3] 29:[2470805,1] 30:[2470807,1] 31:[2470809,2] 32:[2470812,1] 33:[2470818,6] 34:[2470825,1] 35:[2470829,1] 36:[2470831,1] 37:[2470833,1] 38:[2470839,1] 39:[2470842,1] 40:[2470847,1] 41:[2470851,1] 42:[2470854,3] 43:[2470858,5] 44:[2470864,6] 45:[2470871,1] 46:[2470873,6] 47:[2470880,18] 48:[2470899,2] 49:[2470902,1] 50:[2470904,2] 51:[2470908,6] 52:[2470915,1] 53:[2470917,3] 54:[2470921,1] 55:[2470925,1] 56:[2470927,1] 57:[2470932,1] 58:[2470934,1] 59:[2470936,1] 60:[2470938,3] 61:[2470942,2] 62:[2470945,1] 63:[2470958,1] 64:[2470960,2] 65:[2470963,1] 66:[2470965,1] 67:[2470967,2] 68:[2470970,2] 69:[2470973,1] 70:[2470976,2] 71:[2470979,1] 72:[2470983,1] 73:[2470986,1] 74:[2470988,4] 75:[2470993,1] 76:[2470999,1] 77:[2471001,2] 78:[2471004,1] 79:[2471007,1] 80:[2471010,1] 81:[2471014,1] 82:[2471016,1] 83:[2471029,2] 84:[2471036,1] 85:[2471039,2] 86:[2471042,1] 87:[2471044,1] 88:[2471046,2] 89:[2471049,3] 90:[2471053,1] 91:[2471055,1] 92:[2471057,2] 93:[2471061,2] 94:[2471064,1] 95:[2471066,1] 96:[2471069,1] 97:[2471071,2] 98:[2471074,1] 99:[2471076,1] 100:[2471078,1] 101:[2471080,1] 102:[2471082,1] 103:[2471085,2] 104:[2471088,2] 105:[2471091,2] 106:[2471095,1] 107:[2471097,10] 108:[2471108,1] 109:[2471110,3] 110:[2471123,1] 111:[2471125,1] 112:[2471127,13] 113:[2471147,2] 114:[2471150,1] 115:[2471152,1] 116:[2471156,1] 117:[2471162,1] 118:[2471165,1] 119:[2471167,2] 120:[2471171,1] 121:[2471174,1] 122:[2471176,1] 123:[2471178,1] 124:[2471180,2] 125:[2471183,2] 126:[2471186,1] 127:[2471188,1] 128:[2471190,2] 129:[2471193,1] 130:[2471195,1] 131:[2471197,1] 132:[2471199,1] 133:[2471202,1] 134:[2471204,1] 135:[2471206,1] 136:[2471208,1] 137:[2471210,1] 138:[2471212,1] 139:[2471214,1] 140:[2471216,1] 141:[2471218,1] 142:[2471222,1] 143:[2471224,1] 144:[2471226,4] 145:[2471231,9] 146:[2471244,5] 147:[2471250,1] 148:[2471253,4] 149:[2471258,9] 150:[2471268,3] 151:[2471272,8] 152:[2471281,3] 153:[2471285,1] 154:[2471287,1] 155:[2471289,3] 156:[2471294,3] 157:[2471298,1] 158:[2471300,2] 159:[2471303,2] 160:[2471306,1] 161:[2471308,2] 162:[2471312,1] 163:[2471314,2] 164:[2471319,1] 165:[2471321,1] 166:[2471323,4] 167:[2471328,5] 168:[2471334,2] 169:[2471337,5] 170:[2471343,6] 171:[2471350,2] 172:[2471356,2] 173:[2471359,1] 174:[2471362,1] 175:[2471364,12] 176:[2471377,2] 177:[2471380,20] 178:[2471401,3] 179:[2471405,20] 180:[2471426,2] 181:[2471429,1] 182:[2471431,1] 183:[2471433,1] 184:[2471435,2] 185:[2471438,1] 186:[2471440,1] 187:[2471443,40] 188:[2471485,1] 189:[2471487,2] 190:[2471490,21] 191:[2471513,6] 192:[2471520,3] 193:[2471524,2] 194:[2471527,2] 195:[2471530,1] 196:[2471535,5] 197:[2471541,2] 198:[2471545,3] 199:[2471549,3] 200:[2471554,4] 201:[2471559,1] 202:[2471561,7] 203:[2471569,1] 204:[2471571,3] 205:[2471575,18] 206:[2471594,2] 207:[2471597,4] 208:[2471602,1] 209:[2471604,2] 210:[2471607,2] 211:[2471610,1] 212:[2471612,1] 213:[2471614,1] 214:[2471616,1] 215:[2471618,1] 216:[2471620,2] 217:[2471625,2] 218:[2471628,2] 219:[2471631,1] 220:[2471633,1] 221:[2471637,1] 222:[2471639,2] 223:[2471642,2] 224:[2471645,1] 225:[2471647,1] 226:[2471652,2] 227:[2471656,1] 228:[2471658,1] 229:[2471662,1] 230:[2471664,6] 231:[2471671,1] 232:[2471673,1] 233:[2471678,1] 234:[2471680,1] 235:[2471683,47] 236:[2471731,3] 237:[2471735,8] 238:[2471744,23] 239:[2471768,1] 240:[2471770,1] 241:[2471772,2] 242:[2471776,20] 243:[2471797,6] 244:[2471804,8] 245:[2471813,45] 246:[2471859,35] 247:[2471895,3] 248:[2471899,2] 249:[2471902,2] 250:[2471905,2] 251:[2471910,1] 252:[2471912,1] 253:[2471914,1] 254:[2471916,8] 255:[2471925,4] 256:[2471931,5] 257:[2471937,2] 258:[2471940,1] 259:[2471944,1] 260:[2471946,5] 261:[2471952,3] 262:[2471956,2] 263:[2471959,1] 264:[2471961,1] 265:[2471963,3] 266:[2471967,4] 267:[2471972,4] 268:[2471977,11] 269:[2471989,61] 270:[2472051,5] 271:[2472058,30] 272:[2472089,16] 273:[2472106,5] 274:[2472113,2] 275:[2472118,1] 276:[2472123,2] 277:[2472127,2] 278:[2472130,32] 279:[2472163,9] 280:[2472173,2] 281:[2472180,2] 282:[2472183,1] 283:[2472186,1] 284:[2472188,5] 285:[2472195,31] 286:[2472227,68] 287:[2472296,1] 288:[2472299,1] 289:[2472303,1] 290:[2472306,1] 291:[2472308,1] 292:[2472310,1] 293:[2472312,1] 294:[2472314,1] 295:[2472316,1] 296:[2472318,3] 297:[2472325,1] 298:[2472327,1] 299:[2472329,4] 300:[2472334,2] 301:[2472338,13] 302:[2472352,160] 303:[2472514,5] 304:[2472521,2] 305:[2472524,4] 306:[2472529,5] 307:[2472535,12] 308:[2472548,20] 309:[2472569,1] 310:[2472571,3] 311:[2472575,3] 312:[2472579,1] 313:[2472581,219] 314:[2472802,49] 315:[2472852,2] 316:[2472855,5] 317:[2472861,1] 318:[2472863,2] 319:[2472866,474] 320:[2473341,2] 321:[2473344,2] 322:[2473347,1] 323:[2473349,6] 324:[2473357,3] 325:[2473361,1] 326:[2473365,7] 327:[2473373,2] 328:[2473376,1] 329:[2473378,1] 330:[2473380,2] 331:[2473383,1] 332:[2473385,10] 333:[2473396,1] 334:[2473398,2] 335:[2473401,2] 336:[2473404,1] 337:[2473407,1] 338:[2473409,1] 339:[2473411,2] 340:[2473414,3] 341:[2473418,168] 342:[2473587,205] 343:[2473793,1] 344:[2473795,2] 345:[2473798,2] 346:[2473801,1] 347:[2473803,1] 348:[2473805,3] 349:[2473810,2] 350:[2473813,2] 351:[2473816,1] 352:[2473818,4] 353:[2473823,1] 354:[2473825,1] 355:[2473827,1] 356:[2473830,1] 357:[2473832,1] 358:[2473834,3] 359:[2473839,2] 360:[2473843,44] 361:[2473888,45] 362:[2473934,1] 363:[2473936,10] 364:[2473947,65] 365:[2474013,1] 366:[2474015,1] 367:[2474017,2] 368:[2474020,3] 369:[2474024,3] 370:[2474028,3] 371:[2474032,1] 372:[2474034,2] 373:[2474037,4] 374:[2474042,2] 375:[2474045,1] 376:[2474047,3] 377:[2474051,6] 378:[2474058,3] 379:[2474062,1] 380:[2474064,1] 381:[2474066,3] 382:[2474070,2] 383:[2474074,1] 384:[2474076,1] 385:[2474078,1] 386:[2474081,1] 387:[2474083,1] 388:[2474085,2] 389:[2474089,1] 390:[2474091,1] 391:[2474096,77] 392:[2474174,3] 393:[2474178,3] 394:[2474182,3] 395:[2474186,2] 396:[2474189,1] 397:[2474191,3] 398:[2474195,1] 399:[2474197,3] 400:[2474201,3] 401:[2474205,1] 402:[2474207,2] 403:[2474210,4] 404:[2474215,1] 405:[2474217,39] 406:[2474257,3] 407:[2474261,39] 408:[2474301,3] 409:[2474305,1] 410:[2474307,1] 411:[2474309,3] 412:[2474313,1] 413:[2474315,1] 414:[2474317,2] 415:[2474320,2] 416:[2474323,1] 417:[2474325,3] 418:[2474329,11] 419:[2474341,1] 420:[2474343,2] 421:[2474346,30] 422:[2474377,6] 423:[2474384,1] 424:[2474386,20] 425:[2474407,7] 426:[2474415,1] 427:[2474417,1] 428:[2474419,10] 429:[2474430,1] 430:[2474432,1] 431:[2474434,2] 432:[2474437,2] 433:[2474441,1] 434:[2474443,1] 435:[2474445,1] 436:[2474447,1] 437:[2474449,2] 438:[2474452,1] 439:[2474454,2] 440:[2474457,1] 441:[2474459,1] 442:[2474461,1] 443:[2474463,1] 444:[2474465,1] 445:[2474467,18] 446:[2474489,2] 447:[2474492,1] 448:[2474494,2] 449:[2474497,3] 450:[2474501,4] 451:[2474506,1] 452:[2474508,2] 453:[2474511,1] 454:[2474513,2] 455:[2474516,2] 456:[2474519,1] 457:[2474521,1] 458:[2474523,2] 459:[2474526,1] 460:[2474528,2] 461:[2474531,2] 462:[2474534,32] 463:[2474567,2] 464:[2474570,83] 465:[2474654,2] 466:[2474657,2] 467:[2474661,1] 468:[2474663,1] 469:[2474665,4] 470:[2474670,6] 471:[2474677,3] 472:[2474681,2] 473:[2474684,2] 474:[2474689,1] 475:[2474691,3] 476:[2474695,1] 477:[2474697,16] 478:[2474714,1] 479:[2474716,13] 480:[2474730,2] 481:[2474733,2] 482:[2474736,30039184]
>>
>>
>> xfs_db> agf 1
>> xfs_db> p
>> magicnum = 0x58414746
>> versionnum = 1
>> seqno = 1
>> length = 32513920
>> bnoroot = 20770
>> cntroot = 19698
>> bnolevel = 2
>> cntlevel = 2
>> flfirst = 533
>> fllast = 538
>> flcount = 6
>> freeblks = 32513881
>> longest = 30039184
>> btreeblks = 6
>> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
>> lsn = 0x480004ca28
>> crc = 0x78822706 (correct)
>> xfs_db> convert agno 1 agbno 19698 fsblock
>> 0x2004cf2 (33574130)
>> xfs_db> fsblock 0x2004cf2
>> xfs_db> type cntbt
>> xfs_db> p
>> magic = 0x41423343
>> level = 1
>> numrecs = 3
>> leftsib = null
>> rightsib = null
>> bno = 260268944
>> lsn = 0x480004ca28
>> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
>> owner = 1
>> crc = 0x87c5747b (correct)
>> keys[1-3] = [blockcount,startblock] 1:[1,2470467] 2:[1,2473382] 3:[2,2471085]
>> ptrs[1-3] = 1:5 2:13754 3:7237
>> xfs_db> convert agno 1 agbno 5 fsblock
>> 0x2000005 (33554437)
>> xfs_db> type cntbt
>> xfs_db> p 
>> magic = 0x41423343
>> level = 1
>> numrecs = 3
>> leftsib = null
>> rightsib = null
>> bno = 260268944
>> lsn = 0x480004ca28
>> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
>> owner = 1
>> crc = 0x87c5747b (correct)
>> keys[1-3] = [blockcount,startblock] 1:[1,2470467] 2:[1,2473382] 3:[2,2471085]
>> ptrs[1-3] = 1:5 2:13754 3:7237
>> xfs_db> convert agno 1 agbno 5 fsblock
>> 0x2000005 (33554437)
>> xfs_db> fsblock 0x2000005
>> xfs_db> type cntbt
>> xfs_db> p
>> magic = 0x41423343
>> level = 0
>> numrecs = 449
>> leftsib = null
>> rightsib = 13754
>> bno = 260111400
>> lsn = 0x480004ca28
>> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
>> owner = 1
>> crc = 0x7df0b09f (correct)
>> recs[1-449] = [startblock,blockcount] 1:[2470467,1] 2:[2470468,1] 3:[2470469,1] 4:[2470474,1] 5:[2470475,1] 6:[2470476,1] 7:[2470477,1] 8:[2470480,1] 9:[2470481,1] 10:[2470482,1] 11:[2470485,1] 12:[2470486,1] 13:[2470487,1] 14:[2470488,1] 15:[2470491,1] 16:[2470492,1] 17:[2470493,1] 18:[2470496,1] 19:[2470497,1] 20:[2470498,1] 21:[2470499,1] 22:[2470500,1] 23:[2470504,1] 24:[2470505,1] 25:[2470506,1] 26:[2470518,1] 27:[2470523,1] 28:[2470527,1] 29:[2470531,1] 30:[2470572,1] 31:[2470577,1] 32:[2470578,1] 33:[2470579,1] 34:[2470582,1] 35:[2470596,1] 36:[2470605,1] 37:[2470616,1] 38:[2470620,1] 39:[2470623,1] 40:[2470626,1] 41:[2470627,1] 42:[2470628,1] 43:[2470629,1] 44:[2470634,1] 45:[2470651,1] 46:[2470652,1] 47:[2470667,1] 48:[2470678,1] 49:[2470684,1] 50:[2470690,1] 51:[2470712,1] 52:[2470715,1] 53:[2470718,1] 54:[2470721,1] 55:[2470722,1] 56:[2470723,1] 57:[2470726,1] 58:[2470736,1] 59:[2470741,1] 60:[2470744,1] 61:[2470751,1] 62:[2470754,1] 63:[2470755,1] 64:[2470756,1] 65:[2470757,1] 66:[2470758,1] 67:[2470759,1] 68:[2470760,1] 69:[2470764,1] 70:[2470765,1] 71:[2470776,1] 72:[2470780,1] 73:[2470781,1] 74:[2470782,1] 75:[2470787,1] 76:[2470793,1] 77:[2470794,1] 78:[2470795,1] 79:[2470796,1] 80:[2470805,1] 81:[2470806,1] 82:[2470807,1] 83:[2470808,1] 84:[2470811,1] 85:[2470812,1] 86:[2470824,1] 87:[2470825,1] 88:[2470829,1] 89:[2470830,1] 90:[2470831,1] 91:[2470832,1] 92:[2470833,1] 93:[2470839,1] 94:[2470842,1] 95:[2470847,1] 96:[2470851,1] 97:[2470857,1] 98:[2470863,1] 99:[2470870,1] 100:[2470871,1] 101:[2470872,1] 102:[2470879,1] 103:[2470898,1] 104:[2470901,1] 105:[2470902,1] 106:[2470903,1] 107:[2470914,1] 108:[2470915,1] 109:[2470916,1] 110:[2470920,1] 111:[2470921,1] 112:[2470925,1] 113:[2470926,1] 114:[2470927,1] 115:[2470932,1] 116:[2470933,1] 117:[2470934,1] 118:[2470935,1] 119:[2470936,1] 120:[2470937,1] 121:[2470941,1] 122:[2470944,1] 123:[2470945,1] 124:[2470958,1] 125:[2470959,1] 126:[2470962,1] 127:[2470963,1] 128:[2470964,1] 129:[2470965,1] 130:[2470966,1] 131:[2470969,1] 132:[2470972,1] 133:[2470973,1] 134:[2470978,1] 135:[2470979,1] 136:[2470983,1] 137:[2470986,1] 138:[2470987,1] 139:[2470992,1] 140:[2470993,1] 141:[2470999,1] 142:[2471000,1] 143:[2471003,1] 144:[2471004,1] 145:[2471007,1] 146:[2471010,1] 147:[2471014,1] 148:[2471015,1] 149:[2471016,1] 150:[2471036,1] 151:[2471041,1] 152:[2471042,1] 153:[2471043,1] 154:[2471044,1] 155:[2471045,1] 156:[2471048,1] 157:[2471052,1] 158:[2471053,1] 159:[2471054,1] 160:[2471055,1] 161:[2471056,1] 162:[2471063,1] 163:[2471064,1] 164:[2471065,1] 165:[2471066,1] 166:[2471069,1] 167:[2471070,1] 168:[2471073,1] 169:[2471074,1] 170:[2471075,1] 171:[2471076,1] 172:[2471077,1] 173:[2471078,1] 174:[2471079,1] 175:[2471080,1] 176:[2471081,1] 177:[2471082,1] 178:[2471087,1] 179:[2471090,1] 180:[2471095,1] 181:[2471096,1] 182:[2471107,1] 183:[2471108,1] 184:[2471109,1] 185:[2471123,1] 186:[2471124,1] 187:[2471125,1] 188:[2471126,1] 189:[2471149,1] 190:[2471150,1] 191:[2471151,1] 192:[2471152,1] 193:[2471156,1] 194:[2471162,1] 195:[2471165,1] 196:[2471166,1] 197:[2471171,1] 198:[2471174,1] 199:[2471175,1] 200:[2471176,1] 201:[2471177,1] 202:[2471178,1] 203:[2471179,1] 204:[2471182,1] 205:[2471185,1] 206:[2471186,1] 207:[2471187,1] 208:[2471188,1] 209:[2471189,1] 210:[2471192,1] 211:[2471193,1] 212:[2471194,1] 213:[2471195,1] 214:[2471196,1] 215:[2471197,1] 216:[2471198,1] 217:[2471199,1] 218:[2471202,1] 219:[2471203,1] 220:[2471204,1] 221:[2471205,1] 222:[2471206,1] 223:[2471207,1] 224:[2471208,1] 225:[2471209,1] 226:[2471210,1] 227:[2471211,1] 228:[2471212,1] 229:[2471213,1] 230:[2471214,1] 231:[2471215,1] 232:[2471216,1] 233:[2471217,1] 234:[2471218,1] 235:[2471222,1] 236:[2471223,1] 237:[2471224,1] 238:[2471225,1] 239:[2471230,1] 240:[2471249,1] 241:[2471250,1] 242:[2471257,1] 243:[2471267,1] 244:[2471271,1] 245:[2471280,1] 246:[2471284,1] 247:[2471285,1] 248:[2471286,1] 249:[2471287,1] 250:[2471288,1] 251:[2471297,1] 252:[2471298,1] 253:[2471299,1] 254:[2471302,1] 255:[2471305,1] 256:[2471306,1] 257:[2471307,1] 258:[2471312,1] 259:[2471313,1] 260:[2471319,1] 261:[2471320,1] 262:[2471321,1] 263:[2471322,1] 264:[2471327,1] 265:[2471333,1] 266:[2471336,1] 267:[2471342,1] 268:[2471349,1] 269:[2471358,1] 270:[2471359,1] 271:[2471362,1] 272:[2471363,1] 273:[2471376,1] 274:[2471379,1] 275:[2471400,1] 276:[2471404,1] 277:[2471425,1] 278:[2471428,1] 279:[2471429,1] 280:[2471430,1] 281:[2471431,1] 282:[2471432,1] 283:[2471433,1] 284:[2471434,1] 285:[2471437,1] 286:[2471438,1] 287:[2471439,1] 288:[2471440,1] 289:[2471485,1] 290:[2471486,1] 291:[2471489,1] 292:[2471519,1] 293:[2471523,1] 294:[2471526,1] 295:[2471529,1] 296:[2471530,1] 297:[2471540,1] 298:[2471548,1] 299:[2471558,1] 300:[2471559,1] 301:[2471560,1] 302:[2471568,1] 303:[2471569,1] 304:[2471570,1] 305:[2471574,1] 306:[2471593,1] 307:[2471596,1] 308:[2471601,1] 309:[2471602,1] 310:[2471603,1] 311:[2471606,1] 312:[2471609,1] 313:[2471610,1] 314:[2471611,1] 315:[2471612,1] 316:[2471613,1] 317:[2471614,1] 318:[2471615,1] 319:[2471616,1] 320:[2471617,1] 321:[2471618,1] 322:[2471619,1] 323:[2471627,1] 324:[2471630,1] 325:[2471631,1] 326:[2471632,1] 327:[2471633,1] 328:[2471637,1] 329:[2471638,1] 330:[2471641,1] 331:[2471644,1] 332:[2471645,1] 333:[2471646,1] 334:[2471647,1] 335:[2471656,1] 336:[2471657,1] 337:[2471658,1] 338:[2471662,1] 339:[2471663,1] 340:[2471670,1] 341:[2471671,1] 342:[2471672,1] 343:[2471673,1] 344:[2471678,1] 345:[2471679,1] 346:[2471680,1] 347:[2471730,1] 348:[2471734,1] 349:[2471743,1] 350:[2471767,1] 351:[2471768,1] 352:[2471769,1] 353:[2471770,1] 354:[2471771,1] 355:[2471796,1] 356:[2471803,1] 357:[2471812,1] 358:[2471858,1] 359:[2471894,1] 360:[2471898,1] 361:[2471901,1] 362:[2471904,1] 363:[2471910,1] 364:[2471911,1] 365:[2471912,1] 366:[2471913,1] 367:[2471914,1] 368:[2471915,1] 369:[2471924,1] 370:[2471936,1] 371:[2471939,1] 372:[2471940,1] 373:[2471944,1] 374:[2471945,1] 375:[2471951,1] 376:[2471955,1] 377:[2471958,1] 378:[2471959,1] 379:[2471960,1] 380:[2471961,1] 381:[2471962,1] 382:[2471966,1] 383:[2471971,1] 384:[2471976,1] 385:[2471988,1] 386:[2472050,1] 387:[2472088,1] 388:[2472105,1] 389:[2472118,1] 390:[2472129,1] 391:[2472162,1] 392:[2472172,1] 393:[2472182,1] 394:[2472183,1] 395:[2472186,1] 396:[2472187,1] 397:[2472226,1] 398:[2472295,1] 399:[2472296,1] 400:[2472299,1] 401:[2472303,1] 402:[2472306,1] 403:[2472307,1] 404:[2472308,1] 405:[2472309,1] 406:[2472310,1] 407:[2472311,1] 408:[2472312,1] 409:[2472313,1] 410:[2472314,1] 411:[2472315,1] 412:[2472316,1] 413:[2472317,1] 414:[2472325,1] 415:[2472326,1] 416:[2472327,1] 417:[2472328,1] 418:[2472333,1] 419:[2472351,1] 420:[2472523,1] 421:[2472528,1] 422:[2472534,1] 423:[2472547,1] 424:[2472568,1] 425:[2472569,1] 426:[2472570,1] 427:[2472574,1] 428:[2472578,1] 429:[2472579,1] 430:[2472580,1] 431:[2472851,1] 432:[2472854,1] 433:[2472860,1] 434:[2472861,1] 435:[2472862,1] 436:[2472865,1] 437:[2473340,1] 438:[2473343,1] 439:[2473346,1] 440:[2473347,1] 441:[2473348,1] 442:[2473360,1] 443:[2473361,1] 444:[2473372,1] 445:[2473375,1] 446:[2473376,1] 447:[2473377,1] 448:[2473378,1] 449:[2473379,1]
>>
>>
>> xfs_db> convert agno 1 agbno 13754 fsblock
>> 0x20035ba (33568186)
>> xfs_db> fsblock 0x20035ba
>> xfs_db> type cntbt
>> xfs_db> p
>> magic = 0x41423343
>> level = 0
>> numrecs = 253
>> leftsib = 5
>> rightsib = 7237
>> bno = 260221392
>> lsn = 0x480004c790
>> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
>> owner = 1
>> crc = 0xdb7fc286 (correct)
>> recs[1-253] = [startblock,blockcount] 1:[2473382,1] 2:[2473383,1] 3:[2473384,1] 4:[2473395,1] 5:[2473396,1] 6:[2473397,1] 7:[2473400,1] 8:[2473403,1] 9:[2473404,1] 10:[2473407,1] 11:[2473408,1] 12:[2473409,1] 13:[2473410,1] 14:[2473413,1] 15:[2473417,1] 16:[2473586,1] 17:[2473792,1] 18:[2473793,1] 19:[2473794,1] 20:[2473797,1] 21:[2473800,1] 22:[2473801,1] 23:[2473802,1] 24:[2473803,1] 25:[2473804,1] 26:[2473812,1] 27:[2473815,1] 28:[2473816,1] 29:[2473817,1] 30:[2473822,1] 31:[2473823,1] 32:[2473824,1] 33:[2473825,1] 34:[2473826,1] 35:[2473827,1] 36:[2473830,1] 37:[2473831,1] 38:[2473832,1] 39:[2473833,1] 40:[2473887,1] 41:[2473933,1] 42:[2473934,1] 43:[2473935,1] 44:[2473946,1] 45:[2474012,1] 46:[2474013,1] 47:[2474014,1] 48:[2474015,1] 49:[2474016,1] 50:[2474019,1] 51:[2474023,1] 52:[2474027,1] 53:[2474031,1] 54:[2474032,1] 55:[2474033,1] 56:[2474036,1] 57:[2474041,1] 58:[2474044,1] 59:[2474045,1] 60:[2474046,1] 61:[2474050,1] 62:[2474057,1] 63:[2474061,1] 64:[2474062,1] 65:[2474063,1] 66:[2474064,1] 67:[2474065,1] 68:[2474069,1] 69:[2474074,1] 70:[2474075,1] 71:[2474076,1] 72:[2474077,1] 73:[2474078,1] 74:[2474081,1] 75:[2474082,1] 76:[2474083,1] 77:[2474084,1] 78:[2474089,1] 79:[2474090,1] 80:[2474091,1] 81:[2474173,1] 82:[2474177,1] 83:[2474181,1] 84:[2474185,1] 85:[2474188,1] 86:[2474189,1] 87:[2474190,1] 88:[2474194,1] 89:[2474195,1] 90:[2474196,1] 91:[2474200,1] 92:[2474204,1] 93:[2474205,1] 94:[2474206,1] 95:[2474209,1] 96:[2474214,1] 97:[2474215,1] 98:[2474216,1] 99:[2474256,1] 100:[2474260,1] 101:[2474300,1] 102:[2474304,1] 103:[2474305,1] 104:[2474306,1] 105:[2474307,1] 106:[2474308,1] 107:[2474312,1] 108:[2474313,1] 109:[2474314,1] 110:[2474315,1] 111:[2474316,1] 112:[2474319,1] 113:[2474322,1] 114:[2474323,1] 115:[2474324,1] 116:[2474328,1] 117:[2474340,1] 118:[2474341,1] 119:[2474342,1] 120:[2474345,1] 121:[2474376,1] 122:[2474383,1] 123:[2474384,1] 124:[2474385,1] 125:[2474406,1] 126:[2474414,1] 127:[2474415,1] 128:[2474416,1] 129:[2474417,1] 130:[2474418,1] 131:[2474429,1] 132:[2474430,1] 133:[2474431,1] 134:[2474432,1] 135:[2474433,1] 136:[2474436,1] 137:[2474441,1] 138:[2474442,1] 139:[2474443,1] 140:[2474444,1] 141:[2474445,1] 142:[2474446,1] 143:[2474447,1] 144:[2474448,1] 145:[2474451,1] 146:[2474452,1] 147:[2474453,1] 148:[2474456,1] 149:[2474457,1] 150:[2474458,1] 151:[2474459,1] 152:[2474460,1] 153:[2474461,1] 154:[2474462,1] 155:[2474463,1] 156:[2474464,1] 157:[2474465,1] 158:[2474466,1] 159:[2474491,1] 160:[2474492,1] 161:[2474493,1] 162:[2474496,1] 163:[2474500,1] 164:[2474505,1] 165:[2474506,1] 166:[2474507,1] 167:[2474510,1] 168:[2474511,1] 169:[2474512,1] 170:[2474515,1] 171:[2474518,1] 172:[2474519,1] 173:[2474520,1] 174:[2474521,1] 175:[2474522,1] 176:[2474525,1] 177:[2474526,1] 178:[2474527,1] 179:[2474530,1] 180:[2474533,1] 181:[2474566,1] 182:[2474569,1] 183:[2474653,1] 184:[2474656,1] 185:[2474661,1] 186:[2474662,1] 187:[2474663,1] 188:[2474664,1] 189:[2474669,1] 190:[2474676,1] 191:[2474680,1] 192:[2474683,1] 193:[2474689,1] 194:[2474690,1] 195:[2474694,1] 196:[2474695,1] 197:[2474696,1] 198:[2474713,1] 199:[2474714,1] 200:[2474715,1] 201:[2474729,1] 202:[2474732,1] 203:[2474735,1] 204:[21,2] 205:[2470478,2] 206:[2470483,2] 207:[2470489,2] 208:[2470494,2] 209:[2470570,2] 210:[2470580,2] 211:[2470592,2] 212:[2470594,2] 213:[2470621,2] 214:[2470624,2] 215:[2470630,2] 216:[2470632,2] 217:[2470649,2] 218:[2470713,2] 219:[2470716,2] 220:[2470719,2] 221:[2470724,2] 222:[2470742,2] 223:[2470749,2] 224:[2470752,2] 225:[2470766,2] 226:[2470783,2] 227:[2470785,2] 228:[2470809,2] 229:[2470840,2] 230:[2470852,2] 231:[2470899,2] 232:[2470904,2] 233:[2470906,2] 234:[2470942,2] 235:[2470960,2] 236:[2470967,2] 237:[2470970,2] 238:[2470974,2] 239:[2470976,2] 240:[2470984,2] 241:[2471001,2] 242:[2471005,2] 243:[2471008,2] 244:[2471029,2] 245:[2471037,2] 246:[2471039,2] 247:[2471046,2] 248:[2471057,2] 249:[2471059,2] 250:[2471061,2] 251:[2471067,2] 252:[2471071,2] 253:[2471083,2]
>>
>>
>>
>> recs[1-349] = [startblock,blockcount] 1:[2471085,2] 2:[2471088,2] 3:[2471091,2] 4:[2471093,2] 5:[2471147,2] 6:[2471163,2] 7:[2471167,2] 8:[2471169,2] 9:[2471172,2] 10:[2471180,2] 11:[2471183,2] 12:[2471190,2] 13:[2471200,2] 14:[2471251,2] 15:[2471292,2] 16:[2471300,2] 17:[2471303,2] 18:[2471308,2] 19:[2471310,2] 20:[2471314,2] 21:[2471334,2] 22:[2471350,2] 23:[2471356,2] 24:[2471360,2] 25:[2471377,2] 26:[2471426,2] 27:[2471435,2] 28:[2471441,2] 29:[2471483,2] 30:[2471487,2] 31:[2471511,2] 32:[2471524,2] 33:[2471527,2] 34:[2471541,2] 35:[2471543,2] 36:[2471552,2] 37:[2471594,2] 38:[2471604,2] 39:[2471607,2] 40:[2471620,2] 41:[2471625,2] 42:[2471628,2] 43:[2471639,2] 44:[2471642,2] 45:[2471652,2] 46:[2471654,2] 47:[2471681,2] 48:[2471772,2] 49:[2471774,2] 50:[2471899,2] 51:[2471902,2] 52:[2471905,2] 53:[2471929,2] 54:[2471937,2] 55:[2471956,2] 56:[2472056,2] 57:[2472111,2] 58:[2472113,2] 59:[2472123,2] 60:[2472125,2] 61:[2472127,2] 62:[2472173,2] 63:[2472180,2] 64:[2472184,2] 65:[2472193,2] 66:[2472297,2] 67:[2472304,2] 68:[2472334,2] 69:[2472336,2] 70:[2472512,2] 71:[2472519,2] 72:[2472521,2] 73:[2472800,2] 74:[2472852,2] 75:[2472863,2] 76:[2473341,2] 77:[2473344,2] 78:[2473355,2] 79:[2473373,2] 80:[2473380,2] 81:[2473398,2] 82:[2473401,2] 83:[2473405,2] 84:[2473411,2] 85:[2473795,2] 86:[2473798,2] 87:[2473808,2] 88:[2473810,2] 89:[2473813,2] 90:[2473828,2] 91:[2473837,2] 92:[2473839,2] 93:[2473841,2] 94:[2474017,2] 95:[2474034,2] 96:[2474042,2] 97:[2474070,2] 98:[2474072,2] 99:[2474079,2] 100:[2474085,2] 101:[2474087,2] 102:[2474186,2] 103:[2474207,2] 104:[2474317,2] 105:[2474320,2] 106:[2474343,2] 107:[2474434,2] 108:[2474437,2] 109:[2474439,2] 110:[2474449,2] 111:[2474454,2] 112:[2474489,2] 113:[2474494,2] 114:[2474508,2] 115:[2474513,2] 116:[2474516,2] 117:[2474523,2] 118:[2474528,2] 119:[2474531,2] 120:[2474567,2] 121:[2474654,2] 122:[2474657,2] 123:[2474659,2] 124:[2474681,2] 125:[2474684,2] 126:[2474730,2] 127:[2474733,2] 128:[2470501,3] 129:[2470524,3] 130:[2470528,3] 131:[2470589,3] 132:[2470617,3] 133:[2470761,3] 134:[2470777,3] 135:[2470797,3] 136:[2470826,3] 137:[2470848,3] 138:[2470854,3] 139:[2470917,3] 140:[2470922,3] 141:[2470938,3] 142:[2470980,3] 143:[2471011,3] 144:[2471049,3] 145:[2471110,3] 146:[2471153,3] 147:[2471219,3] 148:[2471268,3] 149:[2471281,3] 150:[2471289,3] 151:[2471294,3] 152:[2471316,3] 153:[2471401,3] 154:[2471520,3] 155:[2471545,3] 156:[2471549,3] 157:[2471571,3] 158:[2471622,3] 159:[2471634,3] 160:[2471659,3] 161:[2471731,3] 162:[2471895,3] 163:[2471907,3] 164:[2471941,3] 165:[2471952,3] 166:[2471963,3] 167:[2472115,3] 168:[2472300,3] 169:[2472318,3] 170:[2472571,3] 171:[2472575,3] 172:[2473357,3] 173:[2473362,3] 174:[2473414,3] 175:[2473805,3] 176:[2473834,3] 177:[2474020,3] 178:[2474024,3] 179:[2474028,3] 180:[2474047,3] 181:[2474058,3] 182:[2474066,3] 183:[2474174,3] 184:[2474178,3] 185:[2474182,3] 186:[2474191,3] 187:[2474197,3] 188:[2474201,3] 189:[2474257,3] 190:[2474301,3] 191:[2474309,3] 192:[2474325,3] 193:[2474497,3] 194:[2474677,3] 195:[2474686,3] 196:[2474691,3] 197:[2470470,4] 198:[2470519,4] 199:[2470573,4] 200:[2470737,4] 201:[2470745,4] 202:[2470843,4] 203:[2470928,4] 204:[2470988,4] 205:[2471226,4] 206:[2471240,4] 207:[2471253,4] 208:[2471323,4] 209:[2471352,4] 210:[2471531,4] 211:[2471554,4] 212:[2471597,4] 213:[2471648,4] 214:[2471674,4] 215:[2471925,4] 216:[2471967,4] 217:[2471972,4] 218:[2472119,4] 219:[2472321,4] 220:[2472329,4] 221:[2472524,4] 222:[2473818,4] 223:[2474037,4] 224:[2474092,4] 225:[2474210,4] 226:[2474485,4] 227:[2474501,4] 228:[2474665,4] 229:[2470679,5] 230:[2470685,5] 231:[2470788,5] 232:[2470800,5] 233:[2470813,5] 234:[2470834,5] 235:[2470858,5] 236:[2470994,5] 237:[2471031,5] 238:[2471157,5] 239:[2471244,5] 240:[2471328,5] 241:[2471337,5] 242:[2471535,5] 243:[2471931,5] 244:[2471946,5] 245:[2472051,5] 246:[2472106,5] 247:[2472175,5] 248:[2472188,5] 249:[2472514,5] 250:[2472529,5] 251:[2472855,5] 252:[2470583,6] 253:[2470818,6] 254:[2470864,6] 255:[2470873,6] 256:[2470908,6] 257:[2471343,6] 258:[2471513,6] 259:[2471664,6] 260:[2471797,6] 261:[2473349,6] 262:[2474051,6] 263:[2474377,6] 264:[2474670,6] 265:[2471140,7] 266:[2471561,7] 267:[2473365,7] 268:[2474407,7] 269:[2470597,8] 270:[2470768,8] 271:[2471272,8] 272:[2471735,8] 273:[2471804,8] 274:[2471916,8] 275:[2470727,9] 276:[2471231,9] 277:[2471258,9] 278:[2472163,9] 279:[2470606,10] 280:[2470668,10] 281:[2471097,10] 282:[2471113,10] 283:[2473385,10] 284:[2473936,10] 285:[2474419,10] 286:[2470507,11] 287:[2471977,11] 288:[2474329,11] 289:[2470946,12] 290:[2471017,12] 291:[2471364,12] 292:[2472535,12] 293:[2471127,13] 294:[2472338,13] 295:[2474716,13] 296:[2470635,14] 297:[2470653,14] 298:[2472089,16] 299:[2474697,16] 300:[2470880,18] 301:[2471575,18] 302:[2474467,18] 303:[2471380,20] 304:[2471405,20] 305:[2471776,20] 306:[2472548,20] 307:[2474386,20] 308:[2470691,21] 309:[2471490,21] 310:[2471744,23] 311:[2472058,30] 312:[2474346,30] 313:[2472195,31] 314:[2472130,32] 315:[2474534,32] 316:[2471859,35] 317:[2470532,38] 318:[2474217,39] 319:[2474261,39] 320:[2471443,40] 321:[2473843,44] 322:[2471813,45] 323:[2473888,45] 324:[2471683,47] 325:[2472802,49] 326:[2471989,61] 327:[2473947,65] 328:[2472227,68] 329:[2474096,77] 330:[2474570,83] 331:[2472352,160] 332:[2473418,168] 333:[2473587,205] 334:[2472581,219] 335:[15547,427] 336:[20319,451] 337:[2472866,474] 338:[19699,619] 339:[29,770] 340:[6192,1045] 341:[7238,1209] 342:[13755,1791] 343:[3546,2645] 344:[800,2745] 345:[15975,3723] 346:[8448,5306] 347:[20771,11257] 348:[32029,2438438] 349:[2474736,30039184]
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: XFS_WANT_CORRUPTED_RETURN on xfs + dax
  2020-11-25  0:57   ` Wang Jianchao
@ 2020-12-03 21:34     ` Darrick J. Wong
  0 siblings, 0 replies; 4+ messages in thread
From: Darrick J. Wong @ 2020-12-03 21:34 UTC (permalink / raw)
  To: Wang Jianchao; +Cc: linux-xfs

On Wed, Nov 25, 2020 at 08:57:47AM +0800, Wang Jianchao wrote:
> Hi Darrick
> 
> On 2020/11/25 12:52 上午, Darrick J. Wong wrote:
> > On Tue, Nov 24, 2020 at 08:34:10PM +0800, Wang Jianchao wrote:
> >> Hi list
> >>
> >> Help
> >>
> >> We recently encountered an issue on xfs + dax + Aep of our online production
> >> system as following,
> >>
> >>
> >> [Mon Nov 16 23:39:04 2020] XFS (pmem1): Internal error 
> >> XFS_WANT_CORRUPTED_RETURN at line 461 of file fs/xfs/libxfs/xfs_alloc.c. 
> >>  Caller xfs_alloc_ag_vextent_size+0x578/0x6d0 [xfs]
> >> [Mon Nov 16 23:39:04 2020] CPU: 77 PID: 53995 Comm: kvstore Kdump: 
> >> ...
> >> [Mon Nov 16 23:39:04 2020] Call Trace:
> >> [Mon Nov 16 23:39:04 2020]  dump_stack+0x5c/0x80
> >> [Mon Nov 16 23:39:04 2020]  xfs_alloc_fixup_trees+0x1d7/0x370 [xfs]
> >> [Mon Nov 16 23:39:04 2020]  xfs_alloc_ag_vextent_size+0x578/0x6d0 [xfs]
> >> [Mon Nov 16 23:39:04 2020]  xfs_alloc_ag_vextent+0x126/0x140 [xfs]
> >> [Mon Nov 16 23:39:04 2020]  xfs_alloc_vextent+0x43a/0x560 [xfs]
> >> [Mon Nov 16 23:39:04 2020]  xfs_bmap_btalloc+0x462/0x8d0 [xfs]
> >> [Mon Nov 16 23:39:04 2020]  xfs_bmapi_write+0x610/0xbc0 [xfs]
> >> [Mon Nov 16 23:39:04 2020]  xfs_iomap_write_direct+0x254/0x330 [xfs]
> >> [Mon Nov 16 23:39:04 2020]  xfs_file_iomap_begin+0x20b/0xa20 [xfs]
> >> [Mon Nov 16 23:39:04 2020]  ? xfs_trans_free+0x55/0xc0 [xfs]
> >> [Mon Nov 16 23:39:04 2020]  ? dax_iomap_rw+0xa0/0xa0
> >> [Mon Nov 16 23:39:04 2020]  iomap_apply+0x63/0x130
> >> [Mon Nov 16 23:39:04 2020]  ? dax_iomap_rw+0xa0/0xa0
> >> [Mon Nov 16 23:39:04 2020]  dax_iomap_rw+0x73/0xa0
> >> [Mon Nov 16 23:39:04 2020]  ? dax_iomap_rw+0xa0/0xa0
> >> [Mon Nov 16 23:39:04 2020]  xfs_file_dax_write+0xce/0x230 [xfs]
> >> [Mon Nov 16 23:39:04 2020]  ? try_to_wake_up+0x54/0x4b0
> >> [Mon Nov 16 23:39:04 2020]  new_sync_write+0x124/0x170
> >> [Mon Nov 16 23:39:04 2020]  vfs_write+0xa5/0x1a0
> >> [Mon Nov 16 23:39:04 2020]  ksys_write+0x4f/0xb0
> >> [Mon Nov 16 23:39:04 2020]  do_syscall_64+0x5b/0x1b0
> >> [Mon Nov 16 23:39:04 2020]  entry_SYSCALL_64_after_hwframe+0x65/0xca
> >> [Mon Nov 16 23:39:04 2020] RIP: 0033:0x7f621167985d
> >>
> >> The kernel is based on Centos's 4.18.0-147.5.1.el8, and the code is
> > 
> > Does this happen on upstream 5.10 (or 5.9.x where x < 9 or > 10)?
> > 
> > --D
> 
> We haven't try it and would like to setup a test environment with newer kernel.
> What's kind of issue could cause the disordered btree recs ?

Software bugs, probably?  Or storage problems...

--D

> Many thanks
> Jianchao
> 
> > 
> >> xfs_alloc_fixup_trees()
> >> ---
> >> /*
> >> 	 * Look up the record in the by-size tree if necessary.
> >> 	 */
> >> 	if (flags & XFSA_FIXUP_CNT_OK) {
> >>         ...
> >> 	} else {
> >> 		if ((error = xfs_alloc_lookup_eq(cnt_cur, fbno, flen, &i)))
> >> 			return error;
> >> 		XFS_WANT_CORRUPTED_RETURN(mp, i == 1);
> >> 	}
> >> 	/*
> >> 	 * Look up the record in the by-block tree if necessary.
> >> 	 */
> >> 	if (flags & XFSA_FIXUP_BNO_OK) {
> >>         ...
> >> 	} else {
> >> 		if ((error = xfs_alloc_lookup_eq(bno_cur, fbno, flen, &i)))
> >> 			return error;
> >> 		XFS_WANT_CORRUPTED_RETURN(mp, i == 1);
> >> 	}
> >> ---
> >>
> >> The warning message is triggered when it cannot find the block number in bno btree;
> >>
> >> And When I checked the bno btree and cnt btree with xfs_db, found that the agf1's bno btree was broken
> >> but the CRC was correct; 
> >>
> >>
> >> keys[1-3] = [startblock,blockcount] 1:[21,2] 2:[2471622,3] 3:[2470630,2]
> >> ptrs[1-3] = 1:4 2:6191 3:32028
> >>
> >> 1 (266 recs) 21  ~ [32029,2438438]  ~ 2470468  ~ 2471619
> >> 2 (303 recs) 2471622  ~ 2474735 2475851 2477827 2478034 2469802 2470467 2470469 ~ 2470628 
> >>                                    ^       ^       ^       ^   
> >> 3 (482 recs) 2470630  ~ [2474736,30039184]
> >>
> >> The 2nd btree block was disordered, four fsblocks, namely 2475851 2477827 2478034 2469802,
> >> were inserted in the wrong place and in addition, they even shouldn't exist, as the two big extents
> >> had included them.
> >>
> >> The 1st element of the cnt btree is 2470467, but it cannot be found in bno btree due to wrong order.
> >> Then warning message was post. The attachment is the detail of the bno and cnt btree.
> >>
> >> And there was another calltrace, but I didn't get the image to run xfs_dbg,
> >> Oct  7 18:22:44 kernel: XFS (pmem1): Internal error XFS_WANT_CORRUPTED_GOTO at line 3477 of file fs/xfs/libxfs/xfs_btree.c.  Caller xfs_free_ag_extent+0x46c/0x730 [xfs]
> >> Oct  7 18:22:44 kernel: Call Trace:
> >> Oct  7 18:22:44 kernel: dump_stack+0x5c/0x80
> >> Oct  7 18:22:44 kernel: xfs_btree_insert+0x1ba/0x220 [xfs]
> >> Oct  7 18:22:44 kernel: ? xfs_btree_lookup+0x2a9/0x460 [xfs]
> >> Oct  7 18:22:44 kernel: ? xfs_free_ag_extent+0x46c/0x730 [xfs]
> >> Oct  7 18:22:44 kernel: xfs_free_ag_extent+0x46c/0x730 [xfs]
> >> Oct  7 18:22:44 kernel: ? xfs_perag_get+0x25/0xb0 [xfs]
> >> Oct  7 18:22:44 kernel: xfs_free_agfl_block+0x2c/0x80 [xfs]
> >> Oct  7 18:22:44 kernel: xfs_agfl_free_finish_item+0x17a/0x190 [xfs]
> >> Oct  7 18:22:44 kernel: ? xfs_trans_add_item+0x33/0xa0 [xfs]
> >> Oct  7 18:22:44 kernel: xfs_defer_finish_noroll+0x183/0x480 [xfs]
> >> Oct  7 18:22:44 kernel: ? xfs_iomap_write_direct+0x26d/0x330 [xfs]
> >> Oct  7 18:22:44 kernel: __xfs_trans_commit+0x13f/0x330 [xfs]
> >> Oct  7 18:22:44 kernel: xfs_iomap_write_direct+0x26d/0x330 [xfs]
> >> Oct  7 18:22:44 kernel: xfs_file_iomap_begin+0x20b/0xa00 [xfs]
> >> Oct  7 18:22:44 kernel: ? dax_iomap_rw+0xa0/0xa0
> >> Oct  7 18:22:44 kernel: iomap_apply+0x5f/0x130
> >> Oct  7 18:22:44 kernel: ? dax_iomap_rw+0xa0/0xa0
> >> Oct  7 18:22:44 kernel: dax_iomap_rw+0x73/0xa0
> >> Oct  7 18:22:44 kernel: ? dax_iomap_rw+0xa0/0xa0
> >> Oct  7 18:22:44 kernel: xfs_file_dax_write+0xce/0x220 [xfs]
> >> Oct  7 18:22:44 kernel: ? xfs_file_dax_read+0x83/0xf0 [xfs]
> >> Oct  7 18:22:44 kernel: new_sync_write+0x11e/0x170
> >> Oct  7 18:22:44 kernel: vfs_write+0xa5/0x1a0
> >> Oct  7 18:22:44 kernel: ksys_write+0x4f/0xb0
> >> Oct  7 18:22:44 kernel: do_syscall_64+0x55/0x1b0
> >> Oct  7 18:22:44 kernel: entry_SYSCALL_64_after_hwframe+0x65/0xca
> >> Oct  7 18:22:44 kernel: RIP: 0033:0x7f546898085d
> >>
> >> And the code should be
> >> xfs_btree_insert()
> >> ---
> >> 		error = xfs_btree_insrec(pcur, level, &nptr, &rec, key,
> >> 				&ncur, &i);
> >> 		if (error) {
> >> 			if (pcur != cur)
> >> 				xfs_btree_del_cursor(pcur, XFS_BTREE_ERROR);
> >> 			goto error0;
> >> 		}
> >>
> >> 		XFS_WANT_CORRUPTED_GOTO(cur->bc_mp, i == 1, error0);
> >> 		level++;
> >> ---
> >>
> >> This issue have been reproduced many times.
> >>
> >> Many thanks for any help.
> >>
> >> Jianchao
> > 
> >> xfs_db> type bnobt
> >> xfs_db> p
> >> magic = 0x41423342
> >> level = 1
> >> numrecs = 3
> >> leftsib = null
> >> rightsib = null
> >> bno = 260277520
> >> lsn = 0x480004ca28
> >> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
> >> owner = 1
> >> crc = 0x6bd8c9db (correct)
> >> keys[1-3] = [startblock,blockcount] 1:[21,2] 2:[2471622,3] 3:[2470630,2]
> >> ptrs[1-3] = 1:4 2:6191 3:32028
> >> xfs_db> convert agno 1 agbno 4 fsblock2470468
> >> 0x2000004 (33554436)
> >> xfs_db> fsblock 0x2000004 
> >> xfs_db> type bnobt
> >> xfs_db> p
> >> magic = 0x41423342
> >> level = 0
> >> numrecs = 266
> >> leftsib = null
> >> rightsib = 6191
> >> bno = 260111392
> >> lsn = 0x480004ca28
> >> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
> >> owner = 1
> >> crc = 0x13b235d7 (correct)
> >> recs[1-266] = [startblock,blockcount] 1:[21,2] 2:[29,770] 3:[800,2745] 4:[3546,2645] 5:[6192,1045] 6:[7238,1209] 7:[8448,5306] 8:[13755,1791] 9:[15547,427] 10:[15975,3723] 11:[19699,619] 12:[20319,451] 13:[20771,11257] 14:[32029,2438438] 15:[2470468,1] 16:[2470470,4] 17:[2470475,1] 18:[2470477,1] 19:[2470480,1] 20:[2470482,1] 21:[2470485,1] 22:[2470487,1] 23:[2470489,2] 24:[2470492,1] 25:[2470494,2] 26:[2470497,1] 27:[2470499,1] 28:[2470501,3] 29:[2470505,1] 30:[2470507,11] 31:[2470519,4] 32:[2470524,3] 33:[2470528,3] 34:[2470532,38] 35:[2470572,1] 36:[2470577,1] 37:[2470579,1] 38:[2470582,1] 39:[2470589,3] 40:[2470594,2] 41:[2470597,8] 42:[2470606,10] 43:[2470617,3] 44:[2470621,2] 45:[2470624,2] 46:[2470627,1] 47:[2470629,1] 48:[2470632,2] 49:[2470635,14] 50:[2470651,1] 51:[2470653,14] 52:[2470668,10] 53:[2470679,5] 54:[2470685,5] 55:[2470691,21] 56:[2470713,2] 57:[2470716,2] 58:[2470719,2] 59:[2470722,1] 60:[2470724,2] 61:[2470727,9] 62:[2470737,4] 63:[2470742,2] 64:[2470745,4] 65:[2470751,1] 66:[2470754,1] 67:[2470756,1] 68:[2470758,1] 69:[2470760,1] 70:[2470764,1] 71:[2470766,2] 72:[2470776,1] 73:[2470780,1] 74:[2470782,1] 75:[2470785,2] 76:[2470788,5] 77:[2470794,1] 78:[2470796,1] 79:[2470800,5] 80:[2470806,1] 81:[2470808,1] 82:[2470811,1] 83:[2470813,5] 84:[2470824,1] 85:[2470826,3] 86:[2470830,1] 87:[2470832,1] 88:[2470834,5] 89:[2470840,2] 90:[2470843,4] 91:[2470848,3] 92:[2470852,2] 93:[2470857,1] 94:[2470863,1] 95:[2470870,1] 96:[2470872,1] 97:[2470879,1] 98:[2470898,1] 99:[2470901,1] 100:[2470903,1] 101:[2470906,2] 102:[2470914,1] 103:[2470916,1] 104:[2470920,1] 105:[2470922,3] 106:[2470926,1] 107:[2470928,4] 108:[2470933,1] 109:[2470935,1] 110:[2470937,1] 111:[2470941,1] 112:[2470944,1] 113:[2470946,12] 114:[2470959,1] 115:[2470962,1] 116:[2470964,1] 117:[2470966,1] 118:[2470969,1] 119:[2470972,1] 120:[2470974,2] 121:[2470978,1] 122:[2470980,3] 123:[2470984,2] 124:[2470987,1] 125:[2470992,1] 126:[2470994,5] 127:[2471000,1] 128:[2471003,1] 129:[2471005,2] 130:[2471008,2] 131:[2471011,3] 132:[2471015,1] 133:[2471017,12] 134:[2471031,5] 135:[2471037,2] 136:[2471041,1] 137:[2471043,1] 138:[2471045,1] 139:[2471048,1] 140:[2471052,1] 141:[2471054,1] 142:[2471056,1] 143:[2471059,2] 144:[2471063,1] 145:[2471065,1] 146:[2471067,2] 147:[2471070,1] 148:[2471073,1] 149:[2471075,1] 150:[2471077,1] 151:[2471079,1] 152:[2471081,1] 153:[2471083,2] 154:[2471087,1] 155:[2471090,1] 156:[2471093,2] 157:[2471096,1] 158:[2471107,1] 159:[2471109,1] 160:[2471113,10] 161:[2471124,1] 162:[2471126,1] 163:[2471140,7] 164:[2471149,1] 165:[2471151,1] 166:[2471153,3] 167:[2471157,5] 168:[2471163,2] 169:[2471166,1] 170:[2471169,2] 171:[2471172,2] 172:[2471175,1] 173:[2471177,1] 174:[2471179,1] 175:[2471182,1] 176:[2471185,1] 177:[2471187,1] 178:[2471189,1] 179:[2471192,1] 180:[2471194,1] 181:[2471196,1] 182:[2471198,1] 183:[2471200,2] 184:[2471203,1] 185:[2471205,1] 186:[2471207,1] 187:[2471209,1] 188:[2471211,1] 189:[2471213,1] 190:[2471215,1] 191:[2471217,1] 192:[2471219,3] 193:[2471223,1] 194:[2471225,1] 195:[2471230,1] 196:[2471240,4] 197:[2471249,1] 198:[2471251,2] 199:[2471257,1] 200:[2471267,1] 201:[2471271,1] 202:[2471280,1] 203:[2471284,1] 204:[2471286,1] 205:[2471288,1] 206:[2471292,2] 207:[2471297,1] 208:[2471299,1] 209:[2471302,1] 210:[2471305,1] 211:[2471307,1] 212:[2471310,2] 213:[2471313,1] 214:[2471316,3] 215:[2471320,1] 216:[2471322,1] 217:[2471327,1] 218:[2471333,1] 219:[2471336,1] 220:[2471342,1] 221:[2471349,1] 222:[2471352,4] 223:[2471358,1] 224:[2471360,2] 225:[2471363,1] 226:[2471376,1] 227:[2471379,1] 228:[2471400,1] 229:[2471404,1] 230:[2471425,1] 231:[2471428,1] 232:[2471430,1] 233:[2471432,1] 234:[2471434,1] 235:[2471437,1] 236:[2471439,1] 237:[2471441,2] 238:[2471483,2] 239:[2471486,1] 240:[2471489,1] 241:[2471511,2] 242:[2471519,1] 243:[2471523,1] 244:[2471526,1] 245:[2471529,1] 246:[2471531,4] 247:[2471540,1] 248:[2471543,2] 249:[2471548,1] 250:[2471552,2] 251:[2471558,1] 252:[2471560,1] 253:[2471568,1] 254:[2471570,1] 255:[2471574,1] 256:[2471593,1] 257:[2471596,1] 258:[2471601,1] 259:[2471603,1] 260:[2471606,1] 261:[2471609,1] 262:[2471611,1] 263:[2471613,1] 264:[2471615,1] 265:[2471617,1] 266:[2471619,1]
> >> xfs_db> convert agno 1 agbno 6191 fsblock
> >> 0x200182f (33560623)
> >> xfs_db> fsblock 0x200182f
> >> xfs_db> type bnobt
> >> xfs_db> p
> >> magic = 0x41423342
> >> level = 0
> >> numrecs = 303
> >> leftsib = 4
> >> rightsib = 32028
> >> bno = 260160888
> >> lsn = 0x480004a9c0
> >> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
> >> owner = 1
> >> crc = 0x804caac1 (correct)
> >> recs[1-303] = [startblock,blockcount] 1:[2471622,3] 2:[2471627,1] 3:[2471630,1] 4:[2471632,1] 5:[2471634,3] 6:[2471638,1] 7:[2471641,1] 8:[2471644,1] 9:[2471646,1] 10:[2471648,4] 11:[2471654,2] 12:[2471657,1] 13:[2471659,3] 14:[2471663,1] 15:[2471670,1] 16:[2471672,1] 17:[2471674,4] 18:[2471679,1] 19:[2471681,2] 20:[2471730,1] 21:[2471734,1] 22:[2471743,1] 23:[2471767,1] 24:[2471769,1] 25:[2471771,1] 26:[2471774,2] 27:[2471796,1] 28:[2471803,1] 29:[2471812,1] 30:[2471858,1] 31:[2471894,1] 32:[2471898,1] 33:[2471901,1] 34:[2471904,1] 35:[2471907,3] 36:[2471911,1] 37:[2471913,1] 38:[2471915,1] 39:[2471924,1] 40:[2471929,2] 41:[2471936,1] 42:[2471939,1] 43:[2471941,3] 44:[2471945,1] 45:[2471951,1] 46:[2471955,1] 47:[2471958,1] 48:[2471960,1] 49:[2471962,1] 50:[2471966,1] 51:[2471971,1] 52:[2471976,1] 53:[2471988,1] 54:[2472050,1] 55:[2472056,2] 56:[2472088,1] 57:[2472105,1] 58:[2472111,2] 59:[2472115,3] 60:[2472119,4] 61:[2472125,2] 62:[2472129,1] 63:[2472162,1] 64:[2472172,1] 65:[2472175,5] 66:[2472182,1] 67:[2472184,2] 68:[2472187,1] 69:[2472193,2] 70:[2472226,1] 71:[2472295,1] 72:[2472297,2] 73:[2472300,3] 74:[2472304,2] 75:[2472307,1] 76:[2472309,1] 77:[2472311,1] 78:[2472313,1] 79:[2472315,1] 80:[2472317,1] 81:[2472321,4] 82:[2472326,1] 83:[2472328,1] 84:[2472333,1] 85:[2472336,2] 86:[2472351,1] 87:[2472512,2] 88:[2472519,2] 89:[2472523,1] 90:[2472528,1] 91:[2472534,1] 92:[2472547,1] 93:[2472568,1] 94:[2472570,1] 95:[2472574,1] 96:[2472578,1] 97:[2472580,1] 98:[2472800,2] 99:[2472851,1] 100:[2472854,1] 101:[2472860,1] 102:[2472862,1] 103:[2472865,1] 104:[2473340,1] 105:[2473343,1] 106:[2473346,1] 107:[2473348,1] 108:[2473355,2] 109:[2473360,1] 110:[2473362,3] 111:[2473372,1] 112:[2473375,1] 113:[2473377,1] 114:[2473379,1] 115:[2473382,1] 116:[2473384,1] 117:[2473395,1] 118:[2473397,1] 119:[2473400,1] 120:[2473403,1] 121:[2473405,2] 122:[2473408,1] 123:[2473410,1] 124:[2473413,1] 125:[2473417,1] 126:[2473586,1] 127:[2473792,1] 128:[2473794,1] 129:[2473797,1] 130:[2473800,1] 131:[2473802,1] 132:[2473804,1] 133:[2473808,2] 134:[2473812,1] 135:[2473815,1] 136:[2473817,1] 137:[2473822,1] 138:[2473824,1] 139:[2473826,1] 140:[2473828,2] 141:[2473831,1] 142:[2473833,1] 143:[2473837,2] 144:[2473841,2] 145:[2473887,1] 146:[2473933,1] 147:[2473935,1] 148:[2473946,1] 149:[2474012,1] 150:[2474014,1] 151:[2474016,1] 152:[2474019,1] 153:[2474023,1] 154:[2474027,1] 155:[2474031,1] 156:[2474033,1] 157:[2474036,1] 158:[2474041,1] 159:[2474044,1] 160:[2474046,1] 161:[2474050,1] 162:[2474057,1] 163:[2474061,1] 164:[2474063,1] 165:[2474065,1] 166:[2474069,1] 167:[2474072,2] 168:[2474075,1] 169:[2474077,1] 170:[2474079,2] 171:[2474082,1] 172:[2474084,1] 173:[2474087,2] 174:[2474090,1] 175:[2474092,4] 176:[2474173,1] 177:[2474177,1] 178:[2474181,1] 179:[2474185,1] 180:[2474188,1] 181:[2474190,1] 182:[2474194,1] 183:[2474196,1] 184:[2474200,1] 185:[2474204,1] 186:[2474206,1] 187:[2474209,1] 188:[2474214,1] 189:[2474216,1] 190:[2474256,1] 191:[2474260,1] 192:[2474300,1] 193:[2474304,1] 194:[2474306,1] 195:[2474308,1] 196:[2474312,1] 197:[2474314,1] 198:[2474316,1] 199:[2474319,1] 200:[2474322,1] 201:[2474324,1] 202:[2474328,1] 203:[2474340,1] 204:[2474342,1] 205:[2474345,1] 206:[2474376,1] 207:[2474383,1] 208:[2474385,1] 209:[2474406,1] 210:[2474414,1] 211:[2474416,1] 212:[2474418,1] 213:[2474429,1] 214:[2474431,1] 215:[2474433,1] 216:[2474436,1] 217:[2474439,2] 218:[2474442,1] 219:[2474444,1] 220:[2474446,1] 221:[2474448,1] 222:[2474451,1] 223:[2474453,1] 224:[2474456,1] 225:[2474458,1] 226:[2474460,1] 227:[2474462,1] 228:[2474464,1] 229:[2474466,1] 230:[2474485,4] 231:[2474491,1] 232:[2474493,1] 233:[2474496,1] 234:[2474500,1] 235:[2474505,1] 236:[2474507,1] 237:[2474510,1] 238:[2474512,1] 239:[2474515,1] 240:[2474518,1] 241:[2474520,1] 242:[2474522,1] 243:[2474525,1] 244:[2474527,1] 245:[2474530,1] 246:[2474533,1] 247:[2474566,1] 248:[2474569,1] 249:[2474653,1] 250:[2474656,1] 251:[2474659,2] 252:[2474662,1] 253:[2474664,1] 254:[2474669,1] 255:[2474676,1] 256:[2474680,1] 257:[2474683,1] 258:[2474686,3] 259:[2474690,1] 260:[2474694,1] 261:[2474696,1] 262:[2474713,1] 263:[2474715,1] 264:[2474729,1] 265:[2474732,1] 266:[2474735,1] 267:[2475851,1] 268:[2477827,1] 269:[2478034,1] 270:[2469802,1] 271:[2470467,1] 272:[2470469,1] 273:[2470474,1] 274:[2470476,1] 275:[2470478,2] 276:[2470481,1] 277:[2470483,2] 278:[2470486,1] 279:[2470488,1] 280:[2470491,1] 281:[2470493,1] 282:[2470496,1] 283:[2470498,1] 284:[2470500,1] 285:[2470504,1] 286:[2470506,1] 287:[2470518,1] 288:[2470523,1] 289:[2470527,1] 290:[2470531,1] 291:[2470570,2] 292:[2470573,4] 293:[2470578,1] 294:[2470580,2] 295:[2470583,6] 296:[2470592,2] 297:[2470596,1] 298:[2470605,1] 299:[2470616,1] 300:[2470620,1] 301:[2470623,1] 302:[2470626,1] 303:[2470628,1]
> >> xfs_db> convert agno 1 agbno  32028 fsblock
> >> 0x2007d1c (33586460)
> >> xfs_db> fsblock 0x2007d1c
> >> xfs_db> bnobt
> >> command bnobt not found
> >> xfs_db> type bnobt
> >> xfs_db> p
> >> magic = 0x41423342
> >> level = 0
> >> numrecs = 482
> >> leftsib = 6191
> >> rightsib = null
> >> bno = 260367584
> >> lsn = 0x480004a550
> >> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
> >> owner = 1
> >> crc = 0xf6b4cd63 (correct)
> >> recs[1-482] = [startblock,blockcount] 1:[2470630,2] 2:[2470634,1] 3:[2470649,2] 4:[2470652,1] 5:[2470667,1] 6:[2470678,1] 7:[2470684,1] 8:[2470690,1] 9:[2470715,1] 10:[2470726,1] 11:[2470736,1] 12:[2470741,1] 13:[2470744,1] 14:[2470749,2] 15:[2470752,2] 16:[2470755,1] 17:[2470757,1] 18:[2470759,1] 19:[2470761,3] 20:[2470765,1] 21:[2470768,8] 22:[2470777,3] 23:[2470781,1] 24:[2470783,2] 25:[2470787,1] 26:[2470793,1] 27:[2470795,1] 28:[2470797,3] 29:[2470805,1] 30:[2470807,1] 31:[2470809,2] 32:[2470812,1] 33:[2470818,6] 34:[2470825,1] 35:[2470829,1] 36:[2470831,1] 37:[2470833,1] 38:[2470839,1] 39:[2470842,1] 40:[2470847,1] 41:[2470851,1] 42:[2470854,3] 43:[2470858,5] 44:[2470864,6] 45:[2470871,1] 46:[2470873,6] 47:[2470880,18] 48:[2470899,2] 49:[2470902,1] 50:[2470904,2] 51:[2470908,6] 52:[2470915,1] 53:[2470917,3] 54:[2470921,1] 55:[2470925,1] 56:[2470927,1] 57:[2470932,1] 58:[2470934,1] 59:[2470936,1] 60:[2470938,3] 61:[2470942,2] 62:[2470945,1] 63:[2470958,1] 64:[2470960,2] 65:[2470963,1] 66:[2470965,1] 67:[2470967,2] 68:[2470970,2] 69:[2470973,1] 70:[2470976,2] 71:[2470979,1] 72:[2470983,1] 73:[2470986,1] 74:[2470988,4] 75:[2470993,1] 76:[2470999,1] 77:[2471001,2] 78:[2471004,1] 79:[2471007,1] 80:[2471010,1] 81:[2471014,1] 82:[2471016,1] 83:[2471029,2] 84:[2471036,1] 85:[2471039,2] 86:[2471042,1] 87:[2471044,1] 88:[2471046,2] 89:[2471049,3] 90:[2471053,1] 91:[2471055,1] 92:[2471057,2] 93:[2471061,2] 94:[2471064,1] 95:[2471066,1] 96:[2471069,1] 97:[2471071,2] 98:[2471074,1] 99:[2471076,1] 100:[2471078,1] 101:[2471080,1] 102:[2471082,1] 103:[2471085,2] 104:[2471088,2] 105:[2471091,2] 106:[2471095,1] 107:[2471097,10] 108:[2471108,1] 109:[2471110,3] 110:[2471123,1] 111:[2471125,1] 112:[2471127,13] 113:[2471147,2] 114:[2471150,1] 115:[2471152,1] 116:[2471156,1] 117:[2471162,1] 118:[2471165,1] 119:[2471167,2] 120:[2471171,1] 121:[2471174,1] 122:[2471176,1] 123:[2471178,1] 124:[2471180,2] 125:[2471183,2] 126:[2471186,1] 127:[2471188,1] 128:[2471190,2] 129:[2471193,1] 130:[2471195,1] 131:[2471197,1] 132:[2471199,1] 133:[2471202,1] 134:[2471204,1] 135:[2471206,1] 136:[2471208,1] 137:[2471210,1] 138:[2471212,1] 139:[2471214,1] 140:[2471216,1] 141:[2471218,1] 142:[2471222,1] 143:[2471224,1] 144:[2471226,4] 145:[2471231,9] 146:[2471244,5] 147:[2471250,1] 148:[2471253,4] 149:[2471258,9] 150:[2471268,3] 151:[2471272,8] 152:[2471281,3] 153:[2471285,1] 154:[2471287,1] 155:[2471289,3] 156:[2471294,3] 157:[2471298,1] 158:[2471300,2] 159:[2471303,2] 160:[2471306,1] 161:[2471308,2] 162:[2471312,1] 163:[2471314,2] 164:[2471319,1] 165:[2471321,1] 166:[2471323,4] 167:[2471328,5] 168:[2471334,2] 169:[2471337,5] 170:[2471343,6] 171:[2471350,2] 172:[2471356,2] 173:[2471359,1] 174:[2471362,1] 175:[2471364,12] 176:[2471377,2] 177:[2471380,20] 178:[2471401,3] 179:[2471405,20] 180:[2471426,2] 181:[2471429,1] 182:[2471431,1] 183:[2471433,1] 184:[2471435,2] 185:[2471438,1] 186:[2471440,1] 187:[2471443,40] 188:[2471485,1] 189:[2471487,2] 190:[2471490,21] 191:[2471513,6] 192:[2471520,3] 193:[2471524,2] 194:[2471527,2] 195:[2471530,1] 196:[2471535,5] 197:[2471541,2] 198:[2471545,3] 199:[2471549,3] 200:[2471554,4] 201:[2471559,1] 202:[2471561,7] 203:[2471569,1] 204:[2471571,3] 205:[2471575,18] 206:[2471594,2] 207:[2471597,4] 208:[2471602,1] 209:[2471604,2] 210:[2471607,2] 211:[2471610,1] 212:[2471612,1] 213:[2471614,1] 214:[2471616,1] 215:[2471618,1] 216:[2471620,2] 217:[2471625,2] 218:[2471628,2] 219:[2471631,1] 220:[2471633,1] 221:[2471637,1] 222:[2471639,2] 223:[2471642,2] 224:[2471645,1] 225:[2471647,1] 226:[2471652,2] 227:[2471656,1] 228:[2471658,1] 229:[2471662,1] 230:[2471664,6] 231:[2471671,1] 232:[2471673,1] 233:[2471678,1] 234:[2471680,1] 235:[2471683,47] 236:[2471731,3] 237:[2471735,8] 238:[2471744,23] 239:[2471768,1] 240:[2471770,1] 241:[2471772,2] 242:[2471776,20] 243:[2471797,6] 244:[2471804,8] 245:[2471813,45] 246:[2471859,35] 247:[2471895,3] 248:[2471899,2] 249:[2471902,2] 250:[2471905,2] 251:[2471910,1] 252:[2471912,1] 253:[2471914,1] 254:[2471916,8] 255:[2471925,4] 256:[2471931,5] 257:[2471937,2] 258:[2471940,1] 259:[2471944,1] 260:[2471946,5] 261:[2471952,3] 262:[2471956,2] 263:[2471959,1] 264:[2471961,1] 265:[2471963,3] 266:[2471967,4] 267:[2471972,4] 268:[2471977,11] 269:[2471989,61] 270:[2472051,5] 271:[2472058,30] 272:[2472089,16] 273:[2472106,5] 274:[2472113,2] 275:[2472118,1] 276:[2472123,2] 277:[2472127,2] 278:[2472130,32] 279:[2472163,9] 280:[2472173,2] 281:[2472180,2] 282:[2472183,1] 283:[2472186,1] 284:[2472188,5] 285:[2472195,31] 286:[2472227,68] 287:[2472296,1] 288:[2472299,1] 289:[2472303,1] 290:[2472306,1] 291:[2472308,1] 292:[2472310,1] 293:[2472312,1] 294:[2472314,1] 295:[2472316,1] 296:[2472318,3] 297:[2472325,1] 298:[2472327,1] 299:[2472329,4] 300:[2472334,2] 301:[2472338,13] 302:[2472352,160] 303:[2472514,5] 304:[2472521,2] 305:[2472524,4] 306:[2472529,5] 307:[2472535,12] 308:[2472548,20] 309:[2472569,1] 310:[2472571,3] 311:[2472575,3] 312:[2472579,1] 313:[2472581,219] 314:[2472802,49] 315:[2472852,2] 316:[2472855,5] 317:[2472861,1] 318:[2472863,2] 319:[2472866,474] 320:[2473341,2] 321:[2473344,2] 322:[2473347,1] 323:[2473349,6] 324:[2473357,3] 325:[2473361,1] 326:[2473365,7] 327:[2473373,2] 328:[2473376,1] 329:[2473378,1] 330:[2473380,2] 331:[2473383,1] 332:[2473385,10] 333:[2473396,1] 334:[2473398,2] 335:[2473401,2] 336:[2473404,1] 337:[2473407,1] 338:[2473409,1] 339:[2473411,2] 340:[2473414,3] 341:[2473418,168] 342:[2473587,205] 343:[2473793,1] 344:[2473795,2] 345:[2473798,2] 346:[2473801,1] 347:[2473803,1] 348:[2473805,3] 349:[2473810,2] 350:[2473813,2] 351:[2473816,1] 352:[2473818,4] 353:[2473823,1] 354:[2473825,1] 355:[2473827,1] 356:[2473830,1] 357:[2473832,1] 358:[2473834,3] 359:[2473839,2] 360:[2473843,44] 361:[2473888,45] 362:[2473934,1] 363:[2473936,10] 364:[2473947,65] 365:[2474013,1] 366:[2474015,1] 367:[2474017,2] 368:[2474020,3] 369:[2474024,3] 370:[2474028,3] 371:[2474032,1] 372:[2474034,2] 373:[2474037,4] 374:[2474042,2] 375:[2474045,1] 376:[2474047,3] 377:[2474051,6] 378:[2474058,3] 379:[2474062,1] 380:[2474064,1] 381:[2474066,3] 382:[2474070,2] 383:[2474074,1] 384:[2474076,1] 385:[2474078,1] 386:[2474081,1] 387:[2474083,1] 388:[2474085,2] 389:[2474089,1] 390:[2474091,1] 391:[2474096,77] 392:[2474174,3] 393:[2474178,3] 394:[2474182,3] 395:[2474186,2] 396:[2474189,1] 397:[2474191,3] 398:[2474195,1] 399:[2474197,3] 400:[2474201,3] 401:[2474205,1] 402:[2474207,2] 403:[2474210,4] 404:[2474215,1] 405:[2474217,39] 406:[2474257,3] 407:[2474261,39] 408:[2474301,3] 409:[2474305,1] 410:[2474307,1] 411:[2474309,3] 412:[2474313,1] 413:[2474315,1] 414:[2474317,2] 415:[2474320,2] 416:[2474323,1] 417:[2474325,3] 418:[2474329,11] 419:[2474341,1] 420:[2474343,2] 421:[2474346,30] 422:[2474377,6] 423:[2474384,1] 424:[2474386,20] 425:[2474407,7] 426:[2474415,1] 427:[2474417,1] 428:[2474419,10] 429:[2474430,1] 430:[2474432,1] 431:[2474434,2] 432:[2474437,2] 433:[2474441,1] 434:[2474443,1] 435:[2474445,1] 436:[2474447,1] 437:[2474449,2] 438:[2474452,1] 439:[2474454,2] 440:[2474457,1] 441:[2474459,1] 442:[2474461,1] 443:[2474463,1] 444:[2474465,1] 445:[2474467,18] 446:[2474489,2] 447:[2474492,1] 448:[2474494,2] 449:[2474497,3] 450:[2474501,4] 451:[2474506,1] 452:[2474508,2] 453:[2474511,1] 454:[2474513,2] 455:[2474516,2] 456:[2474519,1] 457:[2474521,1] 458:[2474523,2] 459:[2474526,1] 460:[2474528,2] 461:[2474531,2] 462:[2474534,32] 463:[2474567,2] 464:[2474570,83] 465:[2474654,2] 466:[2474657,2] 467:[2474661,1] 468:[2474663,1] 469:[2474665,4] 470:[2474670,6] 471:[2474677,3] 472:[2474681,2] 473:[2474684,2] 474:[2474689,1] 475:[2474691,3] 476:[2474695,1] 477:[2474697,16] 478:[2474714,1] 479:[2474716,13] 480:[2474730,2] 481:[2474733,2] 482:[2474736,30039184]
> >>
> >>
> >> xfs_db> agf 1
> >> xfs_db> p
> >> magicnum = 0x58414746
> >> versionnum = 1
> >> seqno = 1
> >> length = 32513920
> >> bnoroot = 20770
> >> cntroot = 19698
> >> bnolevel = 2
> >> cntlevel = 2
> >> flfirst = 533
> >> fllast = 538
> >> flcount = 6
> >> freeblks = 32513881
> >> longest = 30039184
> >> btreeblks = 6
> >> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
> >> lsn = 0x480004ca28
> >> crc = 0x78822706 (correct)
> >> xfs_db> convert agno 1 agbno 19698 fsblock
> >> 0x2004cf2 (33574130)
> >> xfs_db> fsblock 0x2004cf2
> >> xfs_db> type cntbt
> >> xfs_db> p
> >> magic = 0x41423343
> >> level = 1
> >> numrecs = 3
> >> leftsib = null
> >> rightsib = null
> >> bno = 260268944
> >> lsn = 0x480004ca28
> >> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
> >> owner = 1
> >> crc = 0x87c5747b (correct)
> >> keys[1-3] = [blockcount,startblock] 1:[1,2470467] 2:[1,2473382] 3:[2,2471085]
> >> ptrs[1-3] = 1:5 2:13754 3:7237
> >> xfs_db> convert agno 1 agbno 5 fsblock
> >> 0x2000005 (33554437)
> >> xfs_db> type cntbt
> >> xfs_db> p 
> >> magic = 0x41423343
> >> level = 1
> >> numrecs = 3
> >> leftsib = null
> >> rightsib = null
> >> bno = 260268944
> >> lsn = 0x480004ca28
> >> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
> >> owner = 1
> >> crc = 0x87c5747b (correct)
> >> keys[1-3] = [blockcount,startblock] 1:[1,2470467] 2:[1,2473382] 3:[2,2471085]
> >> ptrs[1-3] = 1:5 2:13754 3:7237
> >> xfs_db> convert agno 1 agbno 5 fsblock
> >> 0x2000005 (33554437)
> >> xfs_db> fsblock 0x2000005
> >> xfs_db> type cntbt
> >> xfs_db> p
> >> magic = 0x41423343
> >> level = 0
> >> numrecs = 449
> >> leftsib = null
> >> rightsib = 13754
> >> bno = 260111400
> >> lsn = 0x480004ca28
> >> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
> >> owner = 1
> >> crc = 0x7df0b09f (correct)
> >> recs[1-449] = [startblock,blockcount] 1:[2470467,1] 2:[2470468,1] 3:[2470469,1] 4:[2470474,1] 5:[2470475,1] 6:[2470476,1] 7:[2470477,1] 8:[2470480,1] 9:[2470481,1] 10:[2470482,1] 11:[2470485,1] 12:[2470486,1] 13:[2470487,1] 14:[2470488,1] 15:[2470491,1] 16:[2470492,1] 17:[2470493,1] 18:[2470496,1] 19:[2470497,1] 20:[2470498,1] 21:[2470499,1] 22:[2470500,1] 23:[2470504,1] 24:[2470505,1] 25:[2470506,1] 26:[2470518,1] 27:[2470523,1] 28:[2470527,1] 29:[2470531,1] 30:[2470572,1] 31:[2470577,1] 32:[2470578,1] 33:[2470579,1] 34:[2470582,1] 35:[2470596,1] 36:[2470605,1] 37:[2470616,1] 38:[2470620,1] 39:[2470623,1] 40:[2470626,1] 41:[2470627,1] 42:[2470628,1] 43:[2470629,1] 44:[2470634,1] 45:[2470651,1] 46:[2470652,1] 47:[2470667,1] 48:[2470678,1] 49:[2470684,1] 50:[2470690,1] 51:[2470712,1] 52:[2470715,1] 53:[2470718,1] 54:[2470721,1] 55:[2470722,1] 56:[2470723,1] 57:[2470726,1] 58:[2470736,1] 59:[2470741,1] 60:[2470744,1] 61:[2470751,1] 62:[2470754,1] 63:[2470755,1] 64:[2470756,1] 65:[2470757,1] 66:[2470758,1] 67:[2470759,1] 68:[2470760,1] 69:[2470764,1] 70:[2470765,1] 71:[2470776,1] 72:[2470780,1] 73:[2470781,1] 74:[2470782,1] 75:[2470787,1] 76:[2470793,1] 77:[2470794,1] 78:[2470795,1] 79:[2470796,1] 80:[2470805,1] 81:[2470806,1] 82:[2470807,1] 83:[2470808,1] 84:[2470811,1] 85:[2470812,1] 86:[2470824,1] 87:[2470825,1] 88:[2470829,1] 89:[2470830,1] 90:[2470831,1] 91:[2470832,1] 92:[2470833,1] 93:[2470839,1] 94:[2470842,1] 95:[2470847,1] 96:[2470851,1] 97:[2470857,1] 98:[2470863,1] 99:[2470870,1] 100:[2470871,1] 101:[2470872,1] 102:[2470879,1] 103:[2470898,1] 104:[2470901,1] 105:[2470902,1] 106:[2470903,1] 107:[2470914,1] 108:[2470915,1] 109:[2470916,1] 110:[2470920,1] 111:[2470921,1] 112:[2470925,1] 113:[2470926,1] 114:[2470927,1] 115:[2470932,1] 116:[2470933,1] 117:[2470934,1] 118:[2470935,1] 119:[2470936,1] 120:[2470937,1] 121:[2470941,1] 122:[2470944,1] 123:[2470945,1] 124:[2470958,1] 125:[2470959,1] 126:[2470962,1] 127:[2470963,1] 128:[2470964,1] 129:[2470965,1] 130:[2470966,1] 131:[2470969,1] 132:[2470972,1] 133:[2470973,1] 134:[2470978,1] 135:[2470979,1] 136:[2470983,1] 137:[2470986,1] 138:[2470987,1] 139:[2470992,1] 140:[2470993,1] 141:[2470999,1] 142:[2471000,1] 143:[2471003,1] 144:[2471004,1] 145:[2471007,1] 146:[2471010,1] 147:[2471014,1] 148:[2471015,1] 149:[2471016,1] 150:[2471036,1] 151:[2471041,1] 152:[2471042,1] 153:[2471043,1] 154:[2471044,1] 155:[2471045,1] 156:[2471048,1] 157:[2471052,1] 158:[2471053,1] 159:[2471054,1] 160:[2471055,1] 161:[2471056,1] 162:[2471063,1] 163:[2471064,1] 164:[2471065,1] 165:[2471066,1] 166:[2471069,1] 167:[2471070,1] 168:[2471073,1] 169:[2471074,1] 170:[2471075,1] 171:[2471076,1] 172:[2471077,1] 173:[2471078,1] 174:[2471079,1] 175:[2471080,1] 176:[2471081,1] 177:[2471082,1] 178:[2471087,1] 179:[2471090,1] 180:[2471095,1] 181:[2471096,1] 182:[2471107,1] 183:[2471108,1] 184:[2471109,1] 185:[2471123,1] 186:[2471124,1] 187:[2471125,1] 188:[2471126,1] 189:[2471149,1] 190:[2471150,1] 191:[2471151,1] 192:[2471152,1] 193:[2471156,1] 194:[2471162,1] 195:[2471165,1] 196:[2471166,1] 197:[2471171,1] 198:[2471174,1] 199:[2471175,1] 200:[2471176,1] 201:[2471177,1] 202:[2471178,1] 203:[2471179,1] 204:[2471182,1] 205:[2471185,1] 206:[2471186,1] 207:[2471187,1] 208:[2471188,1] 209:[2471189,1] 210:[2471192,1] 211:[2471193,1] 212:[2471194,1] 213:[2471195,1] 214:[2471196,1] 215:[2471197,1] 216:[2471198,1] 217:[2471199,1] 218:[2471202,1] 219:[2471203,1] 220:[2471204,1] 221:[2471205,1] 222:[2471206,1] 223:[2471207,1] 224:[2471208,1] 225:[2471209,1] 226:[2471210,1] 227:[2471211,1] 228:[2471212,1] 229:[2471213,1] 230:[2471214,1] 231:[2471215,1] 232:[2471216,1] 233:[2471217,1] 234:[2471218,1] 235:[2471222,1] 236:[2471223,1] 237:[2471224,1] 238:[2471225,1] 239:[2471230,1] 240:[2471249,1] 241:[2471250,1] 242:[2471257,1] 243:[2471267,1] 244:[2471271,1] 245:[2471280,1] 246:[2471284,1] 247:[2471285,1] 248:[2471286,1] 249:[2471287,1] 250:[2471288,1] 251:[2471297,1] 252:[2471298,1] 253:[2471299,1] 254:[2471302,1] 255:[2471305,1] 256:[2471306,1] 257:[2471307,1] 258:[2471312,1] 259:[2471313,1] 260:[2471319,1] 261:[2471320,1] 262:[2471321,1] 263:[2471322,1] 264:[2471327,1] 265:[2471333,1] 266:[2471336,1] 267:[2471342,1] 268:[2471349,1] 269:[2471358,1] 270:[2471359,1] 271:[2471362,1] 272:[2471363,1] 273:[2471376,1] 274:[2471379,1] 275:[2471400,1] 276:[2471404,1] 277:[2471425,1] 278:[2471428,1] 279:[2471429,1] 280:[2471430,1] 281:[2471431,1] 282:[2471432,1] 283:[2471433,1] 284:[2471434,1] 285:[2471437,1] 286:[2471438,1] 287:[2471439,1] 288:[2471440,1] 289:[2471485,1] 290:[2471486,1] 291:[2471489,1] 292:[2471519,1] 293:[2471523,1] 294:[2471526,1] 295:[2471529,1] 296:[2471530,1] 297:[2471540,1] 298:[2471548,1] 299:[2471558,1] 300:[2471559,1] 301:[2471560,1] 302:[2471568,1] 303:[2471569,1] 304:[2471570,1] 305:[2471574,1] 306:[2471593,1] 307:[2471596,1] 308:[2471601,1] 309:[2471602,1] 310:[2471603,1] 311:[2471606,1] 312:[2471609,1] 313:[2471610,1] 314:[2471611,1] 315:[2471612,1] 316:[2471613,1] 317:[2471614,1] 318:[2471615,1] 319:[2471616,1] 320:[2471617,1] 321:[2471618,1] 322:[2471619,1] 323:[2471627,1] 324:[2471630,1] 325:[2471631,1] 326:[2471632,1] 327:[2471633,1] 328:[2471637,1] 329:[2471638,1] 330:[2471641,1] 331:[2471644,1] 332:[2471645,1] 333:[2471646,1] 334:[2471647,1] 335:[2471656,1] 336:[2471657,1] 337:[2471658,1] 338:[2471662,1] 339:[2471663,1] 340:[2471670,1] 341:[2471671,1] 342:[2471672,1] 343:[2471673,1] 344:[2471678,1] 345:[2471679,1] 346:[2471680,1] 347:[2471730,1] 348:[2471734,1] 349:[2471743,1] 350:[2471767,1] 351:[2471768,1] 352:[2471769,1] 353:[2471770,1] 354:[2471771,1] 355:[2471796,1] 356:[2471803,1] 357:[2471812,1] 358:[2471858,1] 359:[2471894,1] 360:[2471898,1] 361:[2471901,1] 362:[2471904,1] 363:[2471910,1] 364:[2471911,1] 365:[2471912,1] 366:[2471913,1] 367:[2471914,1] 368:[2471915,1] 369:[2471924,1] 370:[2471936,1] 371:[2471939,1] 372:[2471940,1] 373:[2471944,1] 374:[2471945,1] 375:[2471951,1] 376:[2471955,1] 377:[2471958,1] 378:[2471959,1] 379:[2471960,1] 380:[2471961,1] 381:[2471962,1] 382:[2471966,1] 383:[2471971,1] 384:[2471976,1] 385:[2471988,1] 386:[2472050,1] 387:[2472088,1] 388:[2472105,1] 389:[2472118,1] 390:[2472129,1] 391:[2472162,1] 392:[2472172,1] 393:[2472182,1] 394:[2472183,1] 395:[2472186,1] 396:[2472187,1] 397:[2472226,1] 398:[2472295,1] 399:[2472296,1] 400:[2472299,1] 401:[2472303,1] 402:[2472306,1] 403:[2472307,1] 404:[2472308,1] 405:[2472309,1] 406:[2472310,1] 407:[2472311,1] 408:[2472312,1] 409:[2472313,1] 410:[2472314,1] 411:[2472315,1] 412:[2472316,1] 413:[2472317,1] 414:[2472325,1] 415:[2472326,1] 416:[2472327,1] 417:[2472328,1] 418:[2472333,1] 419:[2472351,1] 420:[2472523,1] 421:[2472528,1] 422:[2472534,1] 423:[2472547,1] 424:[2472568,1] 425:[2472569,1] 426:[2472570,1] 427:[2472574,1] 428:[2472578,1] 429:[2472579,1] 430:[2472580,1] 431:[2472851,1] 432:[2472854,1] 433:[2472860,1] 434:[2472861,1] 435:[2472862,1] 436:[2472865,1] 437:[2473340,1] 438:[2473343,1] 439:[2473346,1] 440:[2473347,1] 441:[2473348,1] 442:[2473360,1] 443:[2473361,1] 444:[2473372,1] 445:[2473375,1] 446:[2473376,1] 447:[2473377,1] 448:[2473378,1] 449:[2473379,1]
> >>
> >>
> >> xfs_db> convert agno 1 agbno 13754 fsblock
> >> 0x20035ba (33568186)
> >> xfs_db> fsblock 0x20035ba
> >> xfs_db> type cntbt
> >> xfs_db> p
> >> magic = 0x41423343
> >> level = 0
> >> numrecs = 253
> >> leftsib = 5
> >> rightsib = 7237
> >> bno = 260221392
> >> lsn = 0x480004c790
> >> uuid = 00828b03-5797-4179-acd2-4d153fb5d371
> >> owner = 1
> >> crc = 0xdb7fc286 (correct)
> >> recs[1-253] = [startblock,blockcount] 1:[2473382,1] 2:[2473383,1] 3:[2473384,1] 4:[2473395,1] 5:[2473396,1] 6:[2473397,1] 7:[2473400,1] 8:[2473403,1] 9:[2473404,1] 10:[2473407,1] 11:[2473408,1] 12:[2473409,1] 13:[2473410,1] 14:[2473413,1] 15:[2473417,1] 16:[2473586,1] 17:[2473792,1] 18:[2473793,1] 19:[2473794,1] 20:[2473797,1] 21:[2473800,1] 22:[2473801,1] 23:[2473802,1] 24:[2473803,1] 25:[2473804,1] 26:[2473812,1] 27:[2473815,1] 28:[2473816,1] 29:[2473817,1] 30:[2473822,1] 31:[2473823,1] 32:[2473824,1] 33:[2473825,1] 34:[2473826,1] 35:[2473827,1] 36:[2473830,1] 37:[2473831,1] 38:[2473832,1] 39:[2473833,1] 40:[2473887,1] 41:[2473933,1] 42:[2473934,1] 43:[2473935,1] 44:[2473946,1] 45:[2474012,1] 46:[2474013,1] 47:[2474014,1] 48:[2474015,1] 49:[2474016,1] 50:[2474019,1] 51:[2474023,1] 52:[2474027,1] 53:[2474031,1] 54:[2474032,1] 55:[2474033,1] 56:[2474036,1] 57:[2474041,1] 58:[2474044,1] 59:[2474045,1] 60:[2474046,1] 61:[2474050,1] 62:[2474057,1] 63:[2474061,1] 64:[2474062,1] 65:[2474063,1] 66:[2474064,1] 67:[2474065,1] 68:[2474069,1] 69:[2474074,1] 70:[2474075,1] 71:[2474076,1] 72:[2474077,1] 73:[2474078,1] 74:[2474081,1] 75:[2474082,1] 76:[2474083,1] 77:[2474084,1] 78:[2474089,1] 79:[2474090,1] 80:[2474091,1] 81:[2474173,1] 82:[2474177,1] 83:[2474181,1] 84:[2474185,1] 85:[2474188,1] 86:[2474189,1] 87:[2474190,1] 88:[2474194,1] 89:[2474195,1] 90:[2474196,1] 91:[2474200,1] 92:[2474204,1] 93:[2474205,1] 94:[2474206,1] 95:[2474209,1] 96:[2474214,1] 97:[2474215,1] 98:[2474216,1] 99:[2474256,1] 100:[2474260,1] 101:[2474300,1] 102:[2474304,1] 103:[2474305,1] 104:[2474306,1] 105:[2474307,1] 106:[2474308,1] 107:[2474312,1] 108:[2474313,1] 109:[2474314,1] 110:[2474315,1] 111:[2474316,1] 112:[2474319,1] 113:[2474322,1] 114:[2474323,1] 115:[2474324,1] 116:[2474328,1] 117:[2474340,1] 118:[2474341,1] 119:[2474342,1] 120:[2474345,1] 121:[2474376,1] 122:[2474383,1] 123:[2474384,1] 124:[2474385,1] 125:[2474406,1] 126:[2474414,1] 127:[2474415,1] 128:[2474416,1] 129:[2474417,1] 130:[2474418,1] 131:[2474429,1] 132:[2474430,1] 133:[2474431,1] 134:[2474432,1] 135:[2474433,1] 136:[2474436,1] 137:[2474441,1] 138:[2474442,1] 139:[2474443,1] 140:[2474444,1] 141:[2474445,1] 142:[2474446,1] 143:[2474447,1] 144:[2474448,1] 145:[2474451,1] 146:[2474452,1] 147:[2474453,1] 148:[2474456,1] 149:[2474457,1] 150:[2474458,1] 151:[2474459,1] 152:[2474460,1] 153:[2474461,1] 154:[2474462,1] 155:[2474463,1] 156:[2474464,1] 157:[2474465,1] 158:[2474466,1] 159:[2474491,1] 160:[2474492,1] 161:[2474493,1] 162:[2474496,1] 163:[2474500,1] 164:[2474505,1] 165:[2474506,1] 166:[2474507,1] 167:[2474510,1] 168:[2474511,1] 169:[2474512,1] 170:[2474515,1] 171:[2474518,1] 172:[2474519,1] 173:[2474520,1] 174:[2474521,1] 175:[2474522,1] 176:[2474525,1] 177:[2474526,1] 178:[2474527,1] 179:[2474530,1] 180:[2474533,1] 181:[2474566,1] 182:[2474569,1] 183:[2474653,1] 184:[2474656,1] 185:[2474661,1] 186:[2474662,1] 187:[2474663,1] 188:[2474664,1] 189:[2474669,1] 190:[2474676,1] 191:[2474680,1] 192:[2474683,1] 193:[2474689,1] 194:[2474690,1] 195:[2474694,1] 196:[2474695,1] 197:[2474696,1] 198:[2474713,1] 199:[2474714,1] 200:[2474715,1] 201:[2474729,1] 202:[2474732,1] 203:[2474735,1] 204:[21,2] 205:[2470478,2] 206:[2470483,2] 207:[2470489,2] 208:[2470494,2] 209:[2470570,2] 210:[2470580,2] 211:[2470592,2] 212:[2470594,2] 213:[2470621,2] 214:[2470624,2] 215:[2470630,2] 216:[2470632,2] 217:[2470649,2] 218:[2470713,2] 219:[2470716,2] 220:[2470719,2] 221:[2470724,2] 222:[2470742,2] 223:[2470749,2] 224:[2470752,2] 225:[2470766,2] 226:[2470783,2] 227:[2470785,2] 228:[2470809,2] 229:[2470840,2] 230:[2470852,2] 231:[2470899,2] 232:[2470904,2] 233:[2470906,2] 234:[2470942,2] 235:[2470960,2] 236:[2470967,2] 237:[2470970,2] 238:[2470974,2] 239:[2470976,2] 240:[2470984,2] 241:[2471001,2] 242:[2471005,2] 243:[2471008,2] 244:[2471029,2] 245:[2471037,2] 246:[2471039,2] 247:[2471046,2] 248:[2471057,2] 249:[2471059,2] 250:[2471061,2] 251:[2471067,2] 252:[2471071,2] 253:[2471083,2]
> >>
> >>
> >>
> >> recs[1-349] = [startblock,blockcount] 1:[2471085,2] 2:[2471088,2] 3:[2471091,2] 4:[2471093,2] 5:[2471147,2] 6:[2471163,2] 7:[2471167,2] 8:[2471169,2] 9:[2471172,2] 10:[2471180,2] 11:[2471183,2] 12:[2471190,2] 13:[2471200,2] 14:[2471251,2] 15:[2471292,2] 16:[2471300,2] 17:[2471303,2] 18:[2471308,2] 19:[2471310,2] 20:[2471314,2] 21:[2471334,2] 22:[2471350,2] 23:[2471356,2] 24:[2471360,2] 25:[2471377,2] 26:[2471426,2] 27:[2471435,2] 28:[2471441,2] 29:[2471483,2] 30:[2471487,2] 31:[2471511,2] 32:[2471524,2] 33:[2471527,2] 34:[2471541,2] 35:[2471543,2] 36:[2471552,2] 37:[2471594,2] 38:[2471604,2] 39:[2471607,2] 40:[2471620,2] 41:[2471625,2] 42:[2471628,2] 43:[2471639,2] 44:[2471642,2] 45:[2471652,2] 46:[2471654,2] 47:[2471681,2] 48:[2471772,2] 49:[2471774,2] 50:[2471899,2] 51:[2471902,2] 52:[2471905,2] 53:[2471929,2] 54:[2471937,2] 55:[2471956,2] 56:[2472056,2] 57:[2472111,2] 58:[2472113,2] 59:[2472123,2] 60:[2472125,2] 61:[2472127,2] 62:[2472173,2] 63:[2472180,2] 64:[2472184,2] 65:[2472193,2] 66:[2472297,2] 67:[2472304,2] 68:[2472334,2] 69:[2472336,2] 70:[2472512,2] 71:[2472519,2] 72:[2472521,2] 73:[2472800,2] 74:[2472852,2] 75:[2472863,2] 76:[2473341,2] 77:[2473344,2] 78:[2473355,2] 79:[2473373,2] 80:[2473380,2] 81:[2473398,2] 82:[2473401,2] 83:[2473405,2] 84:[2473411,2] 85:[2473795,2] 86:[2473798,2] 87:[2473808,2] 88:[2473810,2] 89:[2473813,2] 90:[2473828,2] 91:[2473837,2] 92:[2473839,2] 93:[2473841,2] 94:[2474017,2] 95:[2474034,2] 96:[2474042,2] 97:[2474070,2] 98:[2474072,2] 99:[2474079,2] 100:[2474085,2] 101:[2474087,2] 102:[2474186,2] 103:[2474207,2] 104:[2474317,2] 105:[2474320,2] 106:[2474343,2] 107:[2474434,2] 108:[2474437,2] 109:[2474439,2] 110:[2474449,2] 111:[2474454,2] 112:[2474489,2] 113:[2474494,2] 114:[2474508,2] 115:[2474513,2] 116:[2474516,2] 117:[2474523,2] 118:[2474528,2] 119:[2474531,2] 120:[2474567,2] 121:[2474654,2] 122:[2474657,2] 123:[2474659,2] 124:[2474681,2] 125:[2474684,2] 126:[2474730,2] 127:[2474733,2] 128:[2470501,3] 129:[2470524,3] 130:[2470528,3] 131:[2470589,3] 132:[2470617,3] 133:[2470761,3] 134:[2470777,3] 135:[2470797,3] 136:[2470826,3] 137:[2470848,3] 138:[2470854,3] 139:[2470917,3] 140:[2470922,3] 141:[2470938,3] 142:[2470980,3] 143:[2471011,3] 144:[2471049,3] 145:[2471110,3] 146:[2471153,3] 147:[2471219,3] 148:[2471268,3] 149:[2471281,3] 150:[2471289,3] 151:[2471294,3] 152:[2471316,3] 153:[2471401,3] 154:[2471520,3] 155:[2471545,3] 156:[2471549,3] 157:[2471571,3] 158:[2471622,3] 159:[2471634,3] 160:[2471659,3] 161:[2471731,3] 162:[2471895,3] 163:[2471907,3] 164:[2471941,3] 165:[2471952,3] 166:[2471963,3] 167:[2472115,3] 168:[2472300,3] 169:[2472318,3] 170:[2472571,3] 171:[2472575,3] 172:[2473357,3] 173:[2473362,3] 174:[2473414,3] 175:[2473805,3] 176:[2473834,3] 177:[2474020,3] 178:[2474024,3] 179:[2474028,3] 180:[2474047,3] 181:[2474058,3] 182:[2474066,3] 183:[2474174,3] 184:[2474178,3] 185:[2474182,3] 186:[2474191,3] 187:[2474197,3] 188:[2474201,3] 189:[2474257,3] 190:[2474301,3] 191:[2474309,3] 192:[2474325,3] 193:[2474497,3] 194:[2474677,3] 195:[2474686,3] 196:[2474691,3] 197:[2470470,4] 198:[2470519,4] 199:[2470573,4] 200:[2470737,4] 201:[2470745,4] 202:[2470843,4] 203:[2470928,4] 204:[2470988,4] 205:[2471226,4] 206:[2471240,4] 207:[2471253,4] 208:[2471323,4] 209:[2471352,4] 210:[2471531,4] 211:[2471554,4] 212:[2471597,4] 213:[2471648,4] 214:[2471674,4] 215:[2471925,4] 216:[2471967,4] 217:[2471972,4] 218:[2472119,4] 219:[2472321,4] 220:[2472329,4] 221:[2472524,4] 222:[2473818,4] 223:[2474037,4] 224:[2474092,4] 225:[2474210,4] 226:[2474485,4] 227:[2474501,4] 228:[2474665,4] 229:[2470679,5] 230:[2470685,5] 231:[2470788,5] 232:[2470800,5] 233:[2470813,5] 234:[2470834,5] 235:[2470858,5] 236:[2470994,5] 237:[2471031,5] 238:[2471157,5] 239:[2471244,5] 240:[2471328,5] 241:[2471337,5] 242:[2471535,5] 243:[2471931,5] 244:[2471946,5] 245:[2472051,5] 246:[2472106,5] 247:[2472175,5] 248:[2472188,5] 249:[2472514,5] 250:[2472529,5] 251:[2472855,5] 252:[2470583,6] 253:[2470818,6] 254:[2470864,6] 255:[2470873,6] 256:[2470908,6] 257:[2471343,6] 258:[2471513,6] 259:[2471664,6] 260:[2471797,6] 261:[2473349,6] 262:[2474051,6] 263:[2474377,6] 264:[2474670,6] 265:[2471140,7] 266:[2471561,7] 267:[2473365,7] 268:[2474407,7] 269:[2470597,8] 270:[2470768,8] 271:[2471272,8] 272:[2471735,8] 273:[2471804,8] 274:[2471916,8] 275:[2470727,9] 276:[2471231,9] 277:[2471258,9] 278:[2472163,9] 279:[2470606,10] 280:[2470668,10] 281:[2471097,10] 282:[2471113,10] 283:[2473385,10] 284:[2473936,10] 285:[2474419,10] 286:[2470507,11] 287:[2471977,11] 288:[2474329,11] 289:[2470946,12] 290:[2471017,12] 291:[2471364,12] 292:[2472535,12] 293:[2471127,13] 294:[2472338,13] 295:[2474716,13] 296:[2470635,14] 297:[2470653,14] 298:[2472089,16] 299:[2474697,16] 300:[2470880,18] 301:[2471575,18] 302:[2474467,18] 303:[2471380,20] 304:[2471405,20] 305:[2471776,20] 306:[2472548,20] 307:[2474386,20] 308:[2470691,21] 309:[2471490,21] 310:[2471744,23] 311:[2472058,30] 312:[2474346,30] 313:[2472195,31] 314:[2472130,32] 315:[2474534,32] 316:[2471859,35] 317:[2470532,38] 318:[2474217,39] 319:[2474261,39] 320:[2471443,40] 321:[2473843,44] 322:[2471813,45] 323:[2473888,45] 324:[2471683,47] 325:[2472802,49] 326:[2471989,61] 327:[2473947,65] 328:[2472227,68] 329:[2474096,77] 330:[2474570,83] 331:[2472352,160] 332:[2473418,168] 333:[2473587,205] 334:[2472581,219] 335:[15547,427] 336:[20319,451] 337:[2472866,474] 338:[19699,619] 339:[29,770] 340:[6192,1045] 341:[7238,1209] 342:[13755,1791] 343:[3546,2645] 344:[800,2745] 345:[15975,3723] 346:[8448,5306] 347:[20771,11257] 348:[32029,2438438] 349:[2474736,30039184]
> > 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-03 21:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-24 12:34 XFS_WANT_CORRUPTED_RETURN on xfs + dax Wang Jianchao
2020-11-24 16:52 ` Darrick J. Wong
2020-11-25  0:57   ` Wang Jianchao
2020-12-03 21:34     ` Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).