Whamcloud - gitweb
ec4911e44e05e3a58d8f73f9bd4081a2eaff1105
[tools/e2fsprogs.git] / lib / ext2fs / bb_compat.c
1 /*
2  * bb_compat.c --- compatibility badblocks routines
3  * 
4  * 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 <linux/ext2_fs.h>
27
28 #include "ext2fsP.h"
29
30 errcode_t badblocks_list_create(badblocks_list *ret, int size)
31 {
32         return ext2fs_badblocks_list_create(ret, size);
33 }
34
35 void badblocks_list_free(badblocks_list bb)
36 {
37         ext2fs_badblocks_list_free(bb);
38 }
39
40 errcode_t badblocks_list_add(badblocks_list bb, blk_t blk)
41 {
42         return ext2fs_badblocks_list_add(bb, blk);
43 }
44
45 int badblocks_list_test(badblocks_list bb, blk_t blk)
46 {
47         return ext2fs_badblocks_list_test(bb, blk);
48 }
49
50 errcode_t badblocks_list_iterate_begin(badblocks_list bb,
51                                        badblocks_iterate *ret)
52 {
53         return ext2fs_badblocks_list_iterate_begin(bb, ret);
54 }
55
56 int badblocks_list_iterate(badblocks_iterate iter, blk_t *blk)
57 {
58         return ext2fs_badblocks_list_iterate(iter, blk);
59 }
60
61 void badblocks_list_iterate_end(badblocks_iterate iter)
62 {
63         ext2fs_badblocks_list_iterate_end(iter);
64 }