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
0eaf89f2
Commit
0eaf89f2
authored
Sep 26, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
http://linux-ntfs.bkbits.net/ldm-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
dd067e71
c3764121
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
fs/partitions/ldm.c
fs/partitions/ldm.c
+10
-4
No files found.
fs/partitions/ldm.c
View file @
0eaf89f2
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* ldm - Support for Windows Logical Disk Manager (Dynamic Disks)
* ldm - Support for Windows Logical Disk Manager (Dynamic Disks)
*
*
* Copyright (C) 2001,2002 Richard Russon <ldm@flatcap.org>
* Copyright (C) 2001,2002 Richard Russon <ldm@flatcap.org>
* Copyright (
C) 2001 Anton Altaparmakov <aia21@cantab.net>
* Copyright (
c) 2001-2004 Anton Altaparmakov
* Copyright (C) 2001,2002 Jakob Kemi <jakob.kemi@telia.com>
* Copyright (C) 2001,2002 Jakob Kemi <jakob.kemi@telia.com>
*
*
* Documentation is available at http://linux-ntfs.sf.net/ldm
* Documentation is available at http://linux-ntfs.sf.net/ldm
...
@@ -517,9 +517,15 @@ static BOOL ldm_validate_vmdb (struct block_device *bdev, unsigned long base,
...
@@ -517,9 +517,15 @@ static BOOL ldm_validate_vmdb (struct block_device *bdev, unsigned long base,
if
(
vm
->
vblk_offset
!=
512
)
if
(
vm
->
vblk_offset
!=
512
)
ldm_info
(
"VBLKs start at offset 0x%04x."
,
vm
->
vblk_offset
);
ldm_info
(
"VBLKs start at offset 0x%04x."
,
vm
->
vblk_offset
);
/* FIXME: How should we handle this situation? */
/*
if
((
vm
->
vblk_size
*
vm
->
last_vblk_seq
)
!=
(
toc
->
bitmap1_size
<<
9
))
* The last_vblkd_seq can be before the end of the vmdb, just make sure
ldm_info
(
"VMDB and TOCBLOCK don't agree on the database size."
);
* it is not out of bounds.
*/
if
((
vm
->
vblk_size
*
vm
->
last_vblk_seq
)
>
(
toc
->
bitmap1_size
<<
9
))
{
ldm_crit
(
"VMDB exceeds allowed size specified by TOCBLOCK. "
"Database is corrupt. Aborting."
);
goto
out
;
}
result
=
TRUE
;
result
=
TRUE
;
out:
out:
...
...
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