bitops.h:
extern int ext2fs_test_inode_bitmap_range(ext2fs_inode_bitmap bitmap, ino_t inode, int num);
ino_t should be ext2_ino_t