diff options
author | bde <bde@FreeBSD.org> | 2007-08-05 12:58:34 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2007-08-05 12:58:34 +0000 |
commit | 2e613b81275b754323270ba112f9d73a553d837a (patch) | |
tree | 5520f8162baef5816e69462cee65b3f2603605e7 /sys/netinet6/ip6_ipsec.c | |
parent | 5a1a2bd9cf95421a0c3026645d8824333a77a4cf (diff) | |
download | FreeBSD-src-2e613b81275b754323270ba112f9d73a553d837a.zip FreeBSD-src-2e613b81275b754323270ba112f9d73a553d837a.tar.gz |
Silently fix up the estimated next free cluster number from the fsinfo
sector, instead of failing the whole mount if it is garbage. Fields
in the fsinfo sector are only advisory, so there are better sanity
checks than this, and we already silently fix up the only other advisory
field in the fsinfo (the free cluster count).
This wasn't handled quite right in rev.1.92, 1.117, or in NetBSD. 1.92
also failed the whole mount for the non-garbage magic value 0xffffffff
1.117 fixed this well enough in practice since garbage values shouldn't
occur in practice, but left the error handling larger and more convoluted
than necessary. Now we handle the magic value as a special case of
fixing up all out of bounds values.
Also fix up the estimated next free cluster number when there is no
fsinfo sector. We were using 0, but CLUST_FIRST is safer.
Approved by: re (kensmith)
Diffstat (limited to 'sys/netinet6/ip6_ipsec.c')
0 files changed, 0 insertions, 0 deletions