static void invalid_block(ext2_filsys fs, blk_t blk)
{
- printf("Bad block %u out of range; ignored.\n", blk);
+ printf(_("Bad block %u out of range; ignored.\n"), blk);
return;
}
check_bb_inode_blocks, 0);
if (retval) {
com_err("ext2fs_block_iterate", retval,
- "while sanity checking the bad blocks inode");
+ _("while sanity checking the bad blocks inode"));
goto fatal;
}
retval = ext2fs_read_bb_inode(fs, &bb_list);
if (retval) {
com_err("ext2fs_read_bb_inode", retval,
- "while reading the bad blocks inode");
+ _("while reading the bad blocks inode"));
goto fatal;
}
}
f = fopen(bad_blocks_file, "r");
if (!f) {
com_err("read_bad_blocks_file", errno,
- "while trying to open %s", bad_blocks_file);
+ _("while trying to open %s"), bad_blocks_file);
goto fatal;
}
} else {
f = popen(buf, "r");
if (!f) {
com_err("read_bad_blocks_file", errno,
- "while trying popen '%s'", buf);
+ _("while trying popen '%s'"), buf);
goto fatal;
}
}
pclose(f);
if (retval) {
com_err("ext2fs_read_bb_FILE", retval,
- "while reading in list of bad blocks from file");
+ _("while reading in list of bad blocks from file"));
goto fatal;
}
retval = ext2fs_update_bb_inode(fs, bb_list);
if (retval) {
com_err("ext2fs_update_bb_inode", retval,
- "while updating bad block inode");
+ _("while updating bad block inode"));
goto fatal;
}
void test_disk(e2fsck_t ctx)
{
- read_bad_blocks_file(ctx, 0, 1);
+ read_bad_blocks_file(ctx, 0, 0);
}
static int check_bb_inode_blocks(ext2_filsys fs, blk_t *block_nr, int blockcnt,
*/
if (*block_nr >= fs->super->s_blocks_count ||
*block_nr < fs->super->s_first_data_block) {
- printf("Warning illegal block %u found in bad block inode. Cleared.\n", *block_nr);
+ printf(_("Warning illegal block %u found in bad block inode. Cleared.\n"), *block_nr);
*block_nr = 0;
return BLOCK_CHANGED;
}