diff options
author | Ian Dowse <iedowse@FreeBSD.org> | 2001-04-24 00:37:16 +0000 |
---|---|---|
committer | Ian Dowse <iedowse@FreeBSD.org> | 2001-04-24 00:37:16 +0000 |
commit | 5d69bac493abc8ca9f35ca358987efbe2cbb2a91 (patch) | |
tree | 4f441a563e151c64dcf751bac17c13c8ecd9b0d7 /sys/miscfs | |
parent | 38c7e4a631ce968b02e4a08944aabad9b57844e8 (diff) |
Pre-dirpref versions of fsck may zero out the new superblock fields
fs_contigdirs, fs_avgfilesize and fs_avgfpdir. This could cause
panics if these fields were zeroed while a filesystem was mounted
read-only, and then remounted read-write.
Add code to ffs_reload() which copies the fs_contigdirs pointer
from the previous superblock, and reinitialises fs_avgf* if necessary.
Reviewed by: mckusick
Notes
Notes:
svn path=/head/; revision=75892
Diffstat (limited to 'sys/miscfs')
0 files changed, 0 insertions, 0 deletions