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
7f705e0b
Commit
7f705e0b
authored
Mar 28, 2003
by
Anton Altaparmakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
super.c::parse_ntfs_boot_sector(): Correct the check for 64-bit clusters (Philipp Thomas)
parent
2028a1b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
fs/ntfs/ChangeLog
fs/ntfs/ChangeLog
+5
-0
fs/ntfs/super.c
fs/ntfs/super.c
+2
-3
No files found.
fs/ntfs/ChangeLog
View file @
7f705e0b
...
@@ -20,6 +20,11 @@ ToDo:
...
@@ -20,6 +20,11 @@ ToDo:
sufficient for synchronisation here. We then just need to make sure
sufficient for synchronisation here. We then just need to make sure
ntfs_readpage/writepage/truncate interoperate properly with us.
ntfs_readpage/writepage/truncate interoperate properly with us.
2.1.3 - WIP.
- super.c::parse_ntfs_boot_sector(): Correct the check for 64-bit
clusters. (Philipp Thomas)
2.1.2 - Important bug fixes aleviating the hangs in statfs.
2.1.2 - Important bug fixes aleviating the hangs in statfs.
- Fix buggy free cluster and free inode determination logic.
- Fix buggy free cluster and free inode determination logic.
...
...
fs/ntfs/super.c
View file @
7f705e0b
...
@@ -619,9 +619,8 @@ static BOOL parse_ntfs_boot_sector(ntfs_volume *vol, const NTFS_BOOT_SECTOR *b)
...
@@ -619,9 +619,8 @@ static BOOL parse_ntfs_boot_sector(ntfs_volume *vol, const NTFS_BOOT_SECTOR *b)
* the same as it is much faster on 32-bit CPUs.
* the same as it is much faster on 32-bit CPUs.
*/
*/
ll
=
sle64_to_cpu
(
b
->
number_of_sectors
)
>>
sectors_per_cluster_bits
;
ll
=
sle64_to_cpu
(
b
->
number_of_sectors
)
>>
sectors_per_cluster_bits
;
if
((
u64
)
ll
>=
1ULL
<<
(
sizeof
(
unsigned
long
)
*
8
))
{
if
((
u64
)
ll
>=
1ULL
<<
32
))
{
ntfs_error
(
vol
->
sb
,
"Cannot handle %i-bit clusters. Sorry."
,
ntfs_error
(
vol
->
sb
,
"Cannot handle 64-bit clusters. Sorry."
);
sizeof
(
unsigned
long
)
*
4
);
return
FALSE
;
return
FALSE
;
}
}
vol
->
nr_clusters
=
ll
;
vol
->
nr_clusters
=
ll
;
...
...
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