summaryrefslogtreecommitdiff
path: root/core/fs/fs.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-26 17:15:35 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-26 17:15:35 -0800
commit5143a9816e38bc518443392804d1d2ca80a225ab (patch)
tree310893fdd6f3bae410a1e0580e314d388f8054e3 /core/fs/fs.c
parent3e89b30bfa7b90d785d8f97ea5638a7b63e12c94 (diff)
downloadsyslinux-5143a9816e38bc518443392804d1d2ca80a225ab.tar.gz
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>
Diffstat (limited to 'core/fs/fs.c')
-rw-r--r--core/fs/fs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fs/fs.c b/core/fs/fs.c
index fc7948d0..94ee0c97 100644
--- a/core/fs/fs.c
+++ b/core/fs/fs.c
@@ -198,7 +198,6 @@ int searchdir(const char *name)
goto err;
}
-
/* else, try the generic-path-lookup method */
parent = get_inode(this_fs->cwd);
@@ -297,6 +296,9 @@ int searchdir(const char *name)
file->offset = 0;
file->file_len = inode->size;
+ dprintf("File %s -> %p (inode %p) len %u\n", name, file,
+ inode, inode->size);
+
return file_to_handle(file);
err: