summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2001-04-24 00:37:16 +0000
committeriedowse <iedowse@FreeBSD.org>2001-04-24 00:37:16 +0000
commit383dd0a2656889604bb7eb71b993875024ddd832 (patch)
tree27c206456654624cddcce9e930e92a58e2438ebd /sys/fs
parent21cf7b313e0bc24fdfba9db608502a795edc2f64 (diff)
downloadFreeBSD-src-383dd0a2656889604bb7eb71b993875024ddd832.zip
FreeBSD-src-383dd0a2656889604bb7eb71b993875024ddd832.tar.gz
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
Diffstat (limited to 'sys/fs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud