Fix a bug where large msdos partitions were not handled correctly, and fix
a few fsck_msdosfs related 'issues' PR: 28536, 30168 Submitted by: Jiangyi Liu <jyliu@163.net> && NetBSD Approved by: rwatson (mentor)
This commit is contained in:
parent
c6d6cf1772
commit
abe78e9708
@ -543,8 +543,14 @@ mountmsdosfs(devvp, mp, td, argp)
|
||||
}
|
||||
|
||||
/*
|
||||
* Check and validate (or perhaps invalidate?) the fsinfo structure? XXX
|
||||
* Check and validate (or perhaps invalidate?) the fsinfo structure?
|
||||
*/
|
||||
if (pmp->pm_fsinfo && pmp->pm_nxtfree > pmp->pm_maxcluster) {
|
||||
printf("Next free cluster in FSInfo (%u) exceeds maxcluster (%u)\n",
|
||||
pmp->pm_nxtfree, pmp->pm_maxcluster);
|
||||
error = EINVAL;
|
||||
goto error_exit;
|
||||
}
|
||||
|
||||
/*
|
||||
* Allocate memory for the bitmap of allocated clusters, and then
|
||||
|
Loading…
x
Reference in New Issue
Block a user