diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-01-05 01:14:41 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-01-05 01:14:41 +0000 |
commit | 009d0e9c3e3f56565c0873761901440ad7b2955a (patch) | |
tree | e976ae249864d579cca112456563735176456882 /sys/msdosfs/msdosfsmount.h | |
parent | c0b59b63e9aa761b8457b43e7fa34a224dfe4c9b (diff) |
The FAT32 fsinxtfree field is advisory in nature and we don't use
it. So leave it untouched. Similiar to but more ruthless than the
fixes FreeBSD did, since they do use the value. Basically avoid
various off-by-one and off-by-many errors.
Fixes problems encountered by jsg@ and deraadt@ where filesystems
found on SDHC cards caused UVM faults.
Original fixes found by jsg@. ok jsg@.
Diffstat (limited to 'sys/msdosfs/msdosfsmount.h')
-rw-r--r-- | sys/msdosfs/msdosfsmount.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/msdosfs/msdosfsmount.h b/sys/msdosfs/msdosfsmount.h index 45f72016fde..8a3a5f40adc 100644 --- a/sys/msdosfs/msdosfsmount.h +++ b/sys/msdosfs/msdosfsmount.h @@ -1,4 +1,4 @@ -/* $OpenBSD: msdosfsmount.h,v 1.18 2006/12/16 12:44:05 krw Exp $ */ +/* $OpenBSD: msdosfsmount.h,v 1.19 2009/01/05 01:14:40 krw Exp $ */ /* $NetBSD: msdosfsmount.h,v 1.16 1997/10/17 11:24:24 ws Exp $ */ /*- @@ -78,7 +78,6 @@ struct msdosfsmount { uint32_t pm_fatsize; /* size of fat in bytes */ uint32_t pm_fatmask; /* mask to use for fat numbers */ uint32_t pm_fsinfo; /* fsinfo block number */ - uint32_t pm_nxtfree; /* next free cluster in fsinfo block */ u_int pm_fatmult; /* these 2 values are used in fat */ u_int pm_fatdiv; /* offset computation */ u_int pm_curfat; /* current fat for FAT32 (0 otherwise) */ |