2 * write_bb_file.c --- write a list of bad blocks to a FILE *
4 * Copyright (C) 1994, 1995 Theodore Ts'o.
7 * This file may be redistributed under the terms of the GNU Public
17 errcode_t ext2fs_write_bb_FILE(ext2_badblocks_list bb_list,
18 unsigned int flags EXT2FS_ATTR((unused)),
21 badblocks_iterate bb_iter;
25 retval = ext2fs_badblocks_list_iterate_begin(bb_list, &bb_iter);
29 while (ext2fs_badblocks_list_iterate(bb_iter, &blk)) {
30 fprintf(f, "%d\n", blk);
32 ext2fs_badblocks_list_iterate_end(bb_iter);