diff options
Diffstat (limited to 'sys/fs/msdosfs/msdosfs_vfsops.c')
-rw-r--r-- | sys/fs/msdosfs/msdosfs_vfsops.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c index edcdd2e..be56bfc 100644 --- a/sys/fs/msdosfs/msdosfs_vfsops.c +++ b/sys/fs/msdosfs/msdosfs_vfsops.c @@ -561,9 +561,11 @@ mountmsdosfs(devvp, mp, td, argp) if (!bcmp(fp->fsisig1, "RRaA", 4) && !bcmp(fp->fsisig2, "rrAa", 4) && !bcmp(fp->fsisig3, "\0\0\125\252", 4) - && !bcmp(fp->fsisig4, "\0\0\125\252", 4)) + && !bcmp(fp->fsisig4, "\0\0\125\252", 4)) { pmp->pm_nxtfree = getulong(fp->fsinxtfree); - else + if (pmp->pm_nxtfree == 0xffffffff) + pmp->pm_nxtfree = CLUST_FIRST; + } else pmp->pm_fsinfo = 0; brelse(bp); bp = NULL; |