Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
2a6d76e4
Commit
2a6d76e4
authored
Mar 03, 2004
by
Timothy Shimmin
Committed by
Nathan Scott
Mar 03, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] fix up some debug log code for when XFS_LOUD_RECOVERY is turned on.
SGI Modid: xfs-linux:xfs-kern:167581a
parent
540414f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_log_recover.c
+7
-5
No files found.
fs/xfs/xfs_log_recover.c
View file @
2a6d76e4
...
@@ -3416,6 +3416,7 @@ xlog_unpack_data_checksum(
...
@@ -3416,6 +3416,7 @@ xlog_unpack_data_checksum(
{
{
uint
*
up
=
(
uint
*
)
dp
;
uint
*
up
=
(
uint
*
)
dp
;
uint
chksum
=
0
;
uint
chksum
=
0
;
int
i
;
/* divide length by 4 to get # words */
/* divide length by 4 to get # words */
for
(
i
=
0
;
i
<
INT_GET
(
rhead
->
h_len
,
ARCH_CONVERT
)
>>
2
;
i
++
)
{
for
(
i
=
0
;
i
<
INT_GET
(
rhead
->
h_len
,
ARCH_CONVERT
)
>>
2
;
i
++
)
{
...
@@ -3476,7 +3477,7 @@ xlog_valid_rec_header(
...
@@ -3476,7 +3477,7 @@ xlog_valid_rec_header(
xlog_rec_header_t
*
rhead
,
xlog_rec_header_t
*
rhead
,
xfs_daddr_t
blkno
)
xfs_daddr_t
blkno
)
{
{
int
bblks
;
int
hlen
;
if
(
unlikely
(
if
(
unlikely
(
(
INT_GET
(
rhead
->
h_magicno
,
ARCH_CONVERT
)
!=
(
INT_GET
(
rhead
->
h_magicno
,
ARCH_CONVERT
)
!=
...
@@ -3495,8 +3496,8 @@ xlog_valid_rec_header(
...
@@ -3495,8 +3496,8 @@ xlog_valid_rec_header(
}
}
/* LR body must have data or it wouldn't have been written */
/* LR body must have data or it wouldn't have been written */
bblks
=
INT_GET
(
rhead
->
h_len
,
ARCH_CONVERT
);
hlen
=
INT_GET
(
rhead
->
h_len
,
ARCH_CONVERT
);
if
(
unlikely
(
bblks
<=
0
||
bblks
>
INT_MAX
))
{
if
(
unlikely
(
hlen
<=
0
||
hlen
>
INT_MAX
))
{
XFS_ERROR_REPORT
(
"xlog_valid_rec_header(2)"
,
XFS_ERROR_REPORT
(
"xlog_valid_rec_header(2)"
,
XFS_ERRLEVEL_LOW
,
log
->
l_mp
);
XFS_ERRLEVEL_LOW
,
log
->
l_mp
);
return
XFS_ERROR
(
EFSCORRUPTED
);
return
XFS_ERROR
(
EFSCORRUPTED
);
...
@@ -4041,7 +4042,7 @@ xlog_recover_check_summary(
...
@@ -4041,7 +4042,7 @@ xlog_recover_check_summary(
XFS_FSS_TO_BB
(
mp
,
1
),
0
);
XFS_FSS_TO_BB
(
mp
,
1
),
0
);
if
(
XFS_BUF_ISERROR
(
agibp
))
{
if
(
XFS_BUF_ISERROR
(
agibp
))
{
xfs_ioerror_alert
(
"xlog_recover_check_summary(agi)"
,
xfs_ioerror_alert
(
"xlog_recover_check_summary(agi)"
,
log
->
l_
mp
,
agibp
,
agidaddr
);
mp
,
agibp
,
agidaddr
);
}
}
agip
=
XFS_BUF_TO_AGI
(
agibp
);
agip
=
XFS_BUF_TO_AGI
(
agibp
);
ASSERT
(
XFS_AGI_MAGIC
==
ASSERT
(
XFS_AGI_MAGIC
==
...
@@ -4057,7 +4058,8 @@ xlog_recover_check_summary(
...
@@ -4057,7 +4058,8 @@ xlog_recover_check_summary(
sbbp
=
xfs_getsb
(
mp
,
0
);
sbbp
=
xfs_getsb
(
mp
,
0
);
#ifdef XFS_LOUD_RECOVERY
#ifdef XFS_LOUD_RECOVERY
sbp
=
XFS_BUF_TO_SBP
(
sbbp
);
sbp
=
&
mp
->
m_sb
;
xfs_xlatesb
(
XFS_BUF_TO_SBP
(
sbbp
),
sbp
,
1
,
ARCH_CONVERT
,
XFS_SB_ALL_BITS
);
cmn_err
(
CE_NOTE
,
cmn_err
(
CE_NOTE
,
"xlog_recover_check_summary: sb_icount %Lu itotal %Lu"
,
"xlog_recover_check_summary: sb_icount %Lu itotal %Lu"
,
sbp
->
sb_icount
,
itotal
);
sbp
->
sb_icount
,
itotal
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment