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
c42eb0cd
Commit
c42eb0cd
authored
Jun 19, 2003
by
Nathan Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] V2 log update - tighten checks for corrupt log during recovery
SGI Modid: 2.5.x-xfs:slinx:150093a
parent
6bdfbb7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_log_recover.c
+10
-6
No files found.
fs/xfs/xfs_log_recover.c
View file @
c42eb0cd
...
...
@@ -3454,12 +3454,16 @@ xlog_do_recovery_pass(
goto
bread_err1
;
offset
=
xlog_align
(
log
,
tail_blk
,
1
,
hbp
);
rhead
=
(
xlog_rec_header_t
*
)
offset
;
ASSERT
(
INT_GET
(
rhead
->
h_magicno
,
ARCH_CONVERT
)
==
XLOG_HEADER_MAGIC_NUM
);
if
((
INT_GET
(
rhead
->
h_version
,
ARCH_CONVERT
)
&
(
~
XLOG_VERSION_OKBITS
))
!=
0
)
{
xlog_warn
(
"XFS: xlog_do_recovery_pass: unrecognised log version number."
);
if
(
unlikely
(
(
INT_GET
(
rhead
->
h_magicno
,
ARCH_CONVERT
)
!=
XLOG_HEADER_MAGIC_NUM
)
||
(
INT_ISZERO
(
rhead
->
h_version
,
ARCH_CONVERT
))
||
(
INT_GET
(
rhead
->
h_version
,
ARCH_CONVERT
)
&
(
~
XLOG_VERSION_OKBITS
))
!=
0
))
{
xlog_warn
(
"XFS: %s: bad log magic/version (0x%x/%d)"
,
__FUNCTION__
,
INT_GET
(
rhead
->
h_magicno
,
ARCH_CONVERT
),
INT_GET
(
rhead
->
h_version
,
ARCH_CONVERT
));
error
=
XFS_ERROR
(
EIO
);
goto
bread_err1
;
}
...
...
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