Commit 220c0040 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

badblocks.c (ext2fs_u32_list_count), ext2fs.h: Add new function

	which returns the number of entries in the list.
parent eca53e3c
2003-03-14 Theodore Ts'o <tytso@mit.edu>
* badblocks.c (ext2fs_u32_list_count), ext2fs.h: Add new function
which returns the number of entries in the list.
2003-03-10 Theodore Ts'o <tytso@mit.edu>
* fileio.c (ext2fs_file_lseek): Fix bug added when adding 64-bit
......
......@@ -287,3 +287,8 @@ int ext2fs_badblocks_equal(ext2_badblocks_list bb1, ext2_badblocks_list bb2)
return ext2fs_u32_list_equal((ext2_u32_list) bb1,
(ext2_u32_list) bb2);
}
int ext2fs_u32_list_count(ext2_u32_list bb)
{
return bb->num;
}
......@@ -501,6 +501,7 @@ extern errcode_t ext2fs_badblocks_copy(ext2_badblocks_list src,
ext2_badblocks_list *dest);
extern int ext2fs_badblocks_equal(ext2_badblocks_list bb1,
ext2_badblocks_list bb2);
extern int ext2fs_u32_list_count(ext2_u32_list bb);
/* bb_compat */
extern errcode_t badblocks_list_create(badblocks_list *ret, int size);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment