2 * bb_compat.c --- compatibility badblocks routines
4 * Copyright (C) 1997 Theodore Ts'o.
7 * This file may be redistributed under the terms of the GNU Library
8 * General Public License, version 2.
24 #include <sys/types.h>
30 errcode_t badblocks_list_create(badblocks_list *ret, int size)
32 return ext2fs_badblocks_list_create(ret, size);
35 void badblocks_list_free(badblocks_list bb)
37 ext2fs_badblocks_list_free(bb);
40 errcode_t badblocks_list_add(badblocks_list bb, blk_t blk)
42 return ext2fs_badblocks_list_add(bb, blk);
45 int badblocks_list_test(badblocks_list bb, blk_t blk)
47 return ext2fs_badblocks_list_test(bb, blk);
50 errcode_t badblocks_list_iterate_begin(badblocks_list bb,
51 badblocks_iterate *ret)
53 return ext2fs_badblocks_list_iterate_begin(bb, ret);
56 int badblocks_list_iterate(badblocks_iterate iter, blk_t *blk)
58 return ext2fs_badblocks_list_iterate(iter, blk);
61 void badblocks_list_iterate_end(badblocks_iterate iter)
63 ext2fs_badblocks_list_iterate_end(iter);