NetBSD/sys/ufs/ffs
lukem 1b81d6353d remove third argument (`int ns') from ffs_sb_swap(), and let ffs_sb_swap()
determine the endianness of the `struct fs *o' superblock from o->fs_magic
and set needswap as necessary, rather than trusting the caller to get
it right.  invariably, almost every caller of ffs_sb_swap() was calling it
with ns set to the wrong value for ns anyway!
ansi KNF ffs_bswap.c declarations whilst here.

this fixes all sorts of problems when trying to use other-endian file systems,
notably the kernel trying to access memory *way* off, possibly corrupting or
panicing, and userland programs SEGVing and/or corrupting things (e.g,
"fsck_ffs -B"  to swap a file system endianness).

whilst the previous rev of ffs_bswap.c (1.10, 2000/12/23) made this problem
worse, i suspect that the problem was always there and previous versions
just happened not to trash things at the wrong time.

FFS_EI should now be a lot more stable.
2001-08-17 02:18:46 +00:00
..
ffs_alloc.c correctly cast arguments to scanc() 2001-08-09 08:16:42 +00:00
ffs_balloc.c get argument name correct in comment describing vop_balloc_args 2001-08-08 08:36:36 +00:00
ffs_bswap.c remove third argument (`int ns') from ffs_sb_swap(), and let ffs_sb_swap() 2001-08-17 02:18:46 +00:00
ffs_extern.h remove third argument (`int ns') from ffs_sb_swap(), and let ffs_sb_swap() 2001-08-17 02:18:46 +00:00
ffs_inode.c
ffs_softdep.c
ffs_softdep.stub.c
ffs_subr.c be consistent and use "u_char" instead of "unsigned char" 2001-08-09 08:15:26 +00:00
ffs_tables.c
ffs_vfsops.c remove third argument (`int ns') from ffs_sb_swap(), and let ffs_sb_swap() 2001-08-17 02:18:46 +00:00
ffs_vnops.c
fs.h
Makefile
softdep.h