summaryrefslogtreecommitdiff
path: root/serverboot/ffs_compat.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-01-03 20:27:13 +0000
committerRoland McGrath <roland@gnu.org>2000-01-03 20:27:13 +0000
commit54c6afb460642e1069a9d3e9f9ebeb7cad2cd8ba (patch)
treedae83399cd39f60523e109aec019c77b16fd0481 /serverboot/ffs_compat.c
parentcc6409c5b2dd87efa2cdfbc5c2366ec14d2ae931 (diff)
2000-01-03 Roland McGrath <roland@baalperazim.frob.com>
* file_io.h: Include "../ext2fs/ext2_fs.h" instead of "ext2_fs.h". * ext2_file_io.c (search_directory): Use `struct ext2_dir_entry_2' in place of `struct ext2_dir_entry', so as to grok newer dir formats. * ext2_fs.h: File removed. * Makefile (LCLHDRS): Remove it from the list. * ffs_compat.c (EXT2_INODES_PER_BLOCK): New macro, no longer in ext2_fs.h.
Diffstat (limited to 'serverboot/ffs_compat.c')
-rw-r--r--serverboot/ffs_compat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/serverboot/ffs_compat.c b/serverboot/ffs_compat.c
index 46644a9b..6e322b63 100644
--- a/serverboot/ffs_compat.c
+++ b/serverboot/ffs_compat.c
@@ -25,6 +25,8 @@
#include <file_io.h>
+#define EXT2_INODES_PER_BLOCK(s) (EXT2_BLOCK_SIZE(s) / sizeof (struct ext2_inode))
+
int ino2blk (struct ext2_super_block *fs, struct ext2_group_desc *gd, int ino)
{
int group;