7fcc4ddf11
move the swap code inside the loop. 'fs->fs_sbsize' is swapped twice: the first time in order to get the correct superblock size, and later when swapping the whole superblock structure. As a result, we need to check 'fs->fs_sbsize' twice. This: - fixes my previous changes for swapped FSes - allows the kernel to look for other superblock locations if the current superblock is not validated And now: - ffs_superblock_validate() takes only one argument: the fs structure - 'fs_bsize' is unused, so delete it Add some comments to explain a bit what we are doing. |
||
---|---|---|
.. | ||
ffs_alloc.c | ||
ffs_appleufs.c | ||
ffs_balloc.c | ||
ffs_bswap.c | ||
ffs_extern.h | ||
ffs_inode.c | ||
ffs_quota2.c | ||
ffs_snapshot.c | ||
ffs_subr.c | ||
ffs_tables.c | ||
ffs_vfsops.c | ||
ffs_vnops.c | ||
ffs_wapbl.c | ||
fs.h | ||
Makefile |