Fix numerous translation problems in msdosfs, related to the recent BUF/BIO
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 24 Mar 2006 22:39:22 +0000 (22:39 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 24 Mar 2006 22:39:22 +0000 (22:39 +0000)
commit4afd80f1a202eaabf0b091c2643156af4a68f156
tree66f5e4263496469eba04650fe9fac0df55fae61c
parentc791834fc80a6f29d7c8e9ad3fc896e552a17e06
Fix numerous translation problems in msdosfs, related to the recent BUF/BIO
work.  The source code was using 'bn' and 'cn' and 'lbn' interchangeability
to mean any one of device block number, logical cluster number, or disk
cluster number (which is relative to some weird offset), and sometimes
overloaded the same variable name with different types of block numbers.
This resulted in a number of errors when the code was initially translated
to 64 bit offsets.

Reported-by: David Rhodus
sys/vfs/msdosfs/msdosfs_denode.c
sys/vfs/msdosfs/msdosfs_fat.c
sys/vfs/msdosfs/msdosfs_lookup.c
sys/vfs/msdosfs/msdosfs_vnops.c
sys/vfs/msdosfs/msdosfsmount.h