Commit 2ec537f
committed
Added several more LFS_DEBUG* options
To help with debugging. These all seem useful, though the exact output
will probably be worth messing around with:
- LFS_DEBUGRBYDFETCHES - Debug every rbyd fetch
- LFS_DEBUGRBYDCOMMITS - Debug every rbyd commit
- LFS_DEBUGBTREEFETCHES - Debug every btree/bshrub fetch (though we
currently don't fetch bshrubs...)
- LFS_DEBUGBTREECOMMITS - Debug every btree/bshrub commit
- LFS_DEBUGMDIRFETCHES - Debug every mdir fetch
- LFS_DEBUGMDIRCOMMITS - Debug every mdir commit
- LFS_DEBUGALLOCS - Debug every block allocation
Let's see if you can match these to each debug output:
lfs.c:2942:debug: Fetched rbyd 0xe.d80 w77, eoff 3536, cksum 862283c6
lfs.c:4233:debug: Committed rbyd 0xe.dd0 w78, eoff 3616, cksum 38ae1347
lfs.c:4950:debug: Fetched btree 0x9f.806 w2048, cksum 7fb89b1b
lfs.c:6609:debug: Committed btree 0x9f.806 w2048, cksum 7fb89b1b
lfs.c:6603:debug: Committed bshrub 0x{0,1}.b06 w1747
lfs.c:7290:debug: Fetched mdir -1 0x{1,0}.8f w0, cksum 7846be7a
lfs.c:9022:debug: Committed mdir 0 0x{0,1}.a10 w2, cksum 4d2ccb29
lfs.c:10083:debug: Allocated block 0x8f, lookahead 125/253/256
Also tweaked LFSR_DEBUGRBYDBALANCE to be a bit more readable when
LFS_DEBUGRBYDFETCHES is enabled, and tweaked the out-of-space error
message to show the same lookahead info as LFS_DEBUGALLOCS:
lfs.c:10101:error: No more free space (lookahead 0/0/256)
^ ^ ^
lookahead remaining --' | |
ckpoint remaining ------' |
block count ---------------'
No code changes.1 parent 5da8f3e commit 2ec537f
2 files changed
+102
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2938 | 2938 | | |
2939 | 2939 | | |
2940 | 2940 | | |
| 2941 | + | |
| 2942 | + | |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
2941 | 2952 | | |
2942 | 2953 | | |
2943 | 2954 | | |
| |||
2967 | 2978 | | |
2968 | 2979 | | |
2969 | 2980 | | |
2970 | | - | |
| 2981 | + | |
2971 | 2982 | | |
2972 | 2983 | | |
2973 | 2984 | | |
| 2985 | + | |
2974 | 2986 | | |
2975 | 2987 | | |
2976 | 2988 | | |
| |||
4216 | 4228 | | |
4217 | 4229 | | |
4218 | 4230 | | |
| 4231 | + | |
| 4232 | + | |
| 4233 | + | |
| 4234 | + | |
| 4235 | + | |
| 4236 | + | |
| 4237 | + | |
| 4238 | + | |
| 4239 | + | |
| 4240 | + | |
| 4241 | + | |
4219 | 4242 | | |
4220 | 4243 | | |
4221 | 4244 | | |
| |||
4916 | 4939 | | |
4917 | 4940 | | |
4918 | 4941 | | |
4919 | | - | |
| 4942 | + | |
4920 | 4943 | | |
4921 | 4944 | | |
| 4945 | + | |
| 4946 | + | |
| 4947 | + | |
| 4948 | + | |
| 4949 | + | |
| 4950 | + | |
| 4951 | + | |
| 4952 | + | |
| 4953 | + | |
| 4954 | + | |
| 4955 | + | |
| 4956 | + | |
4922 | 4957 | | |
4923 | 4958 | | |
4924 | 4959 | | |
| |||
5700 | 5735 | | |
5701 | 5736 | | |
5702 | 5737 | | |
| 5738 | + | |
| 5739 | + | |
| 5740 | + | |
| 5741 | + | |
| 5742 | + | |
| 5743 | + | |
| 5744 | + | |
5703 | 5745 | | |
5704 | 5746 | | |
5705 | 5747 | | |
| |||
6479 | 6521 | | |
6480 | 6522 | | |
6481 | 6523 | | |
6482 | | - | |
| 6524 | + | |
6483 | 6525 | | |
6484 | 6526 | | |
6485 | 6527 | | |
| |||
6553 | 6595 | | |
6554 | 6596 | | |
6555 | 6597 | | |
6556 | | - | |
6557 | | - | |
6558 | 6598 | | |
6559 | 6599 | | |
6560 | 6600 | | |
| 6601 | + | |
| 6602 | + | |
| 6603 | + | |
| 6604 | + | |
| 6605 | + | |
| 6606 | + | |
| 6607 | + | |
| 6608 | + | |
| 6609 | + | |
| 6610 | + | |
| 6611 | + | |
| 6612 | + | |
| 6613 | + | |
| 6614 | + | |
| 6615 | + | |
6561 | 6616 | | |
6562 | 6617 | | |
6563 | 6618 | | |
| |||
6592 | 6647 | | |
6593 | 6648 | | |
6594 | 6649 | | |
| 6650 | + | |
| 6651 | + | |
| 6652 | + | |
| 6653 | + | |
| 6654 | + | |
| 6655 | + | |
| 6656 | + | |
| 6657 | + | |
| 6658 | + | |
6595 | 6659 | | |
6596 | 6660 | | |
6597 | 6661 | | |
| |||
7222 | 7286 | | |
7223 | 7287 | | |
7224 | 7288 | | |
| 7289 | + | |
| 7290 | + | |
| 7291 | + | |
| 7292 | + | |
| 7293 | + | |
| 7294 | + | |
| 7295 | + | |
| 7296 | + | |
| 7297 | + | |
| 7298 | + | |
7225 | 7299 | | |
7226 | 7300 | | |
7227 | 7301 | | |
| |||
8944 | 9018 | | |
8945 | 9019 | | |
8946 | 9020 | | |
| 9021 | + | |
| 9022 | + | |
| 9023 | + | |
| 9024 | + | |
| 9025 | + | |
| 9026 | + | |
| 9027 | + | |
| 9028 | + | |
| 9029 | + | |
| 9030 | + | |
8947 | 9031 | | |
8948 | 9032 | | |
8949 | 9033 | | |
| |||
9995 | 10079 | | |
9996 | 10080 | | |
9997 | 10081 | | |
| 10082 | + | |
| 10083 | + | |
| 10084 | + | |
| 10085 | + | |
| 10086 | + | |
| 10087 | + | |
| 10088 | + | |
| 10089 | + | |
9998 | 10090 | | |
9999 | 10091 | | |
10000 | 10092 | | |
| |||
10006 | 10098 | | |
10007 | 10099 | | |
10008 | 10100 | | |
10009 | | - | |
10010 | | - | |
10011 | | - | |
| 10101 | + | |
| 10102 | + | |
| 10103 | + | |
| 10104 | + | |
| 10105 | + | |
10012 | 10106 | | |
10013 | 10107 | | |
10014 | 10108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | 207 | | |
214 | 208 | | |
215 | 209 | | |
| |||
0 commit comments