blob: 5a158b34cfb00002cfd8cda007bee1f6fa2de5d4 [file] [log] [blame]
Mike Frysinger1fd98e02005-05-09 22:10:42 +00001/*
2 * bb_compat.c --- compatibility badblocks routines
Tim Rikerc1ef7bd2006-01-25 00:08:53 +00003 *
Mike Frysinger1fd98e02005-05-09 22:10:42 +00004 * Copyright (C) 1997 Theodore Ts'o.
5 *
6 * %Begin-Header%
7 * This file may be redistributed under the terms of the GNU Public
8 * License.
9 * %End-Header%
10 */
11
12#include <stdio.h>
13#include <string.h>
14#if HAVE_UNISTD_H
15#include <unistd.h>
16#endif
17#include <fcntl.h>
18#include <time.h>
19#if HAVE_SYS_STAT_H
20#include <sys/stat.h>
21#endif
22#if HAVE_SYS_TYPES_H
23#include <sys/types.h>
24#endif
25
26#include "ext2_fs.h"
27#include "ext2fsP.h"
28
29errcode_t badblocks_list_create(badblocks_list *ret, int size)
30{
31 return ext2fs_badblocks_list_create(ret, size);
32}
33
34void badblocks_list_free(badblocks_list bb)
35{
36 ext2fs_badblocks_list_free(bb);
37}
38
39errcode_t badblocks_list_add(badblocks_list bb, blk_t blk)
40{
41 return ext2fs_badblocks_list_add(bb, blk);
42}
43
44int badblocks_list_test(badblocks_list bb, blk_t blk)
45{
46 return ext2fs_badblocks_list_test(bb, blk);
47}
48
49errcode_t badblocks_list_iterate_begin(badblocks_list bb,
50 badblocks_iterate *ret)
51{
52 return ext2fs_badblocks_list_iterate_begin(bb, ret);
53}
54
55int badblocks_list_iterate(badblocks_iterate iter, blk_t *blk)
56{
57 return ext2fs_badblocks_list_iterate(iter, blk);
58}
59
60void badblocks_list_iterate_end(badblocks_iterate iter)
61{
62 ext2fs_badblocks_list_iterate_end(iter);
63}