fat: use generic_getfssec(), fix generic_getfssec(), add dprintf
authorH. Peter Anvin <hpa@zytor.com>
Sat, 27 Feb 2010 01:15:35 +0000 (17:15 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 27 Feb 2010 01:15:35 +0000 (17:15 -0800)
commit5143a9816e38bc518443392804d1d2ca80a225ab
tree310893fdd6f3bae410a1e0580e314d388f8054e3
parent3e89b30bfa7b90d785d8f97ea5638a7b63e12c94
fat: use generic_getfssec(), fix generic_getfssec(), add dprintf

Use generic_getfssec() for the FAT filesystem.  Do a bunch of
calculations based on clusters rather than on sectors, so we don't
have to do the same thing N times for N sectors per cluster.

Fix boundary conditions in generic_getfssec().  Adjust iso9660 to
match the resulting interface change.

Add dprintf's to generic_getfssec() and a few other routines.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/Makefile
core/fs/fat/fat.c
core/fs/fat/fat_fs.h
core/fs/fs.c
core/fs/getfssec.c
core/fs/iso9660/iso9660.c
core/include/fs.h