mirror of https://github.com/vitalif/e2fsprogs
Fix some minor typo's and grammar's strings, and remove debugging strings
from needing to be translated. Patch is from Benno Schulenberg.bitmap-optimize
parent
2a93a6332e
commit
f35fd3d5ee
|
@ -1,3 +1,10 @@
|
||||||
|
2005-05-09 Theodore Ts'o <tytso@mit.edu>
|
||||||
|
|
||||||
|
* tune2fs.c (main): Fix grammar in message printed when setting
|
||||||
|
the check interval (tune2fs -i)
|
||||||
|
|
||||||
|
* chattr.c: Fix case on usage message.
|
||||||
|
|
||||||
2005-05-07 Theodore Ts'o <tytso@mit.edu>
|
2005-05-07 Theodore Ts'o <tytso@mit.edu>
|
||||||
|
|
||||||
* blkid.c (main): Use the new functions blkid_dev_set_search() and
|
* blkid.c (main): Use the new functions blkid_dev_set_search() and
|
||||||
|
|
|
@ -84,7 +84,7 @@ static void fatal_error(const char * fmt_string, int errcode)
|
||||||
exit (errcode);
|
exit (errcode);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define usage() fatal_error(_("usage: %s [-RV] [-+=AacDdijsSu] [-v version] files...\n"), \
|
#define usage() fatal_error(_("Usage: %s [-RV] [-+=AacDdijsSu] [-v version] files...\n"), \
|
||||||
1)
|
1)
|
||||||
|
|
||||||
struct flags_char {
|
struct flags_char {
|
||||||
|
|
|
@ -819,7 +819,7 @@ int main (int argc, char ** argv)
|
||||||
if (i_flag) {
|
if (i_flag) {
|
||||||
sb->s_checkinterval = interval;
|
sb->s_checkinterval = interval;
|
||||||
ext2fs_mark_super_dirty(fs);
|
ext2fs_mark_super_dirty(fs);
|
||||||
printf (_("Setting interval between check %lu seconds\n"), interval);
|
printf (_("Setting interval between checks to %lu seconds\n"), interval);
|
||||||
}
|
}
|
||||||
if (m_flag) {
|
if (m_flag) {
|
||||||
sb->s_r_blocks_count = (sb->s_blocks_count / 100)
|
sb->s_r_blocks_count = (sb->s_blocks_count / 100)
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
2005-05-09 Theodore Ts'o <tytso@mit.edu>
|
||||||
|
|
||||||
|
* resize2fs.c (fix_resize_inode): Don't bother to translate
|
||||||
|
debugging printf's.
|
||||||
|
|
||||||
|
* main.c: Fix case on usage message, and remove _() from messages
|
||||||
|
from a version string that doesn't need translation.
|
||||||
|
|
||||||
2005-03-21 Theodore Ts'o <tytso@mit.edu>
|
2005-03-21 Theodore Ts'o <tytso@mit.edu>
|
||||||
|
|
||||||
* Release of E2fsprogs 1.37
|
* Release of E2fsprogs 1.37
|
||||||
|
|
|
@ -31,7 +31,8 @@ char *program_name, *device_name, *io_options;
|
||||||
|
|
||||||
static void usage (char *prog)
|
static void usage (char *prog)
|
||||||
{
|
{
|
||||||
fprintf (stderr, _("usage: %s [-d debug_flags] [-f] [-F] [-p] device [new-size]\n\n"), prog);
|
fprintf (stderr, _("Usage: %s [-d debug_flags] [-f] [-F] [-p] "
|
||||||
|
"device [new_size]\n\n"), prog);
|
||||||
|
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
@ -135,7 +136,7 @@ int main (int argc, char ** argv)
|
||||||
|
|
||||||
initialize_ext2_error_table();
|
initialize_ext2_error_table();
|
||||||
|
|
||||||
fprintf (stderr, _("resize2fs %s (%s)\n"),
|
fprintf (stderr, "resize2fs %s (%s)\n",
|
||||||
E2FSPROGS_VERSION, E2FSPROGS_DATE);
|
E2FSPROGS_VERSION, E2FSPROGS_DATE);
|
||||||
if (argc && *argv)
|
if (argc && *argv)
|
||||||
program_name = *argv;
|
program_name = *argv;
|
||||||
|
|
|
@ -108,7 +108,7 @@ errcode_t resize_fs(ext2_filsys fs, blk_t *new_size, int flags,
|
||||||
|
|
||||||
#ifdef RESIZE2FS_DEBUG
|
#ifdef RESIZE2FS_DEBUG
|
||||||
if (rfs->flags & RESIZE_DEBUG_BMOVE)
|
if (rfs->flags & RESIZE_DEBUG_BMOVE)
|
||||||
printf(_("Number of free blocks: %d/%d, Needed: %d\n"),
|
printf("Number of free blocks: %d/%d, Needed: %d\n",
|
||||||
rfs->old_fs->super->s_free_blocks_count,
|
rfs->old_fs->super->s_free_blocks_count,
|
||||||
rfs->new_fs->super->s_free_blocks_count,
|
rfs->new_fs->super->s_free_blocks_count,
|
||||||
rfs->needed_blocks);
|
rfs->needed_blocks);
|
||||||
|
@ -816,8 +816,8 @@ static blk_t get_new_block(ext2_resize_t rfs)
|
||||||
|
|
||||||
#ifdef RESIZE2FS_DEBUG
|
#ifdef RESIZE2FS_DEBUG
|
||||||
if (rfs->flags & RESIZE_DEBUG_BMOVE)
|
if (rfs->flags & RESIZE_DEBUG_BMOVE)
|
||||||
printf(_("Going into desperation "
|
printf("Going into desperation mode "
|
||||||
"mode for block allocations\n"));
|
"for block allocations\n");
|
||||||
#endif
|
#endif
|
||||||
rfs->alloc_state = DESPERATION;
|
rfs->alloc_state = DESPERATION;
|
||||||
rfs->new_blk = fs->super->s_first_data_block;
|
rfs->new_blk = fs->super->s_first_data_block;
|
||||||
|
@ -920,8 +920,8 @@ static errcode_t block_mover(ext2_resize_t rfs)
|
||||||
break;
|
break;
|
||||||
#ifdef RESIZE2FS_DEBUG
|
#ifdef RESIZE2FS_DEBUG
|
||||||
if (rfs->flags & RESIZE_DEBUG_BMOVE)
|
if (rfs->flags & RESIZE_DEBUG_BMOVE)
|
||||||
printf(_("Moving %d blocks %u->%u\n"), size,
|
printf("Moving %d blocks %u->%u\n",
|
||||||
old_blk, new_blk);
|
size, old_blk, new_blk);
|
||||||
#endif
|
#endif
|
||||||
do {
|
do {
|
||||||
c = size;
|
c = size;
|
||||||
|
@ -997,7 +997,7 @@ static int process_block(ext2_filsys fs, blk_t *block_nr,
|
||||||
pb->changed = 1;
|
pb->changed = 1;
|
||||||
#ifdef RESIZE2FS_DEBUG
|
#ifdef RESIZE2FS_DEBUG
|
||||||
if (pb->rfs->flags & RESIZE_DEBUG_BMOVE)
|
if (pb->rfs->flags & RESIZE_DEBUG_BMOVE)
|
||||||
printf(_("ino=%u, blockcnt=%lld, %u->%u\n"),
|
printf("ino=%u, blockcnt=%lld, %u->%u\n",
|
||||||
pb->ino, blockcnt, block, new_block);
|
pb->ino, blockcnt, block, new_block);
|
||||||
#endif
|
#endif
|
||||||
block = new_block;
|
block = new_block;
|
||||||
|
@ -1165,7 +1165,7 @@ static errcode_t inode_scan_and_fix(ext2_resize_t rfs)
|
||||||
|
|
||||||
#ifdef RESIZE2FS_DEBUG
|
#ifdef RESIZE2FS_DEBUG
|
||||||
if (rfs->flags & RESIZE_DEBUG_INODEMAP)
|
if (rfs->flags & RESIZE_DEBUG_INODEMAP)
|
||||||
printf(_("Inode moved %u->%u\n"), ino, new_inode);
|
printf("Inode moved %u->%u\n", ino, new_inode);
|
||||||
#endif
|
#endif
|
||||||
if (!rfs->imap) {
|
if (!rfs->imap) {
|
||||||
retval = ext2fs_create_extent_table(&rfs->imap, 0);
|
retval = ext2fs_create_extent_table(&rfs->imap, 0);
|
||||||
|
@ -1233,7 +1233,7 @@ static int check_and_change_inodes(ext2_ino_t dir,
|
||||||
return 0;
|
return 0;
|
||||||
#ifdef RESIZE2FS_DEBUG
|
#ifdef RESIZE2FS_DEBUG
|
||||||
if (is->rfs->flags & RESIZE_DEBUG_INODEMAP)
|
if (is->rfs->flags & RESIZE_DEBUG_INODEMAP)
|
||||||
printf(_("Inode translate (dir=%u, name=%.*s, %u->%u)\n"),
|
printf("Inode translate (dir=%u, name=%.*s, %u->%u)\n",
|
||||||
dir, dirent->name_len&0xFF, dirent->name,
|
dir, dirent->name_len&0xFF, dirent->name,
|
||||||
dirent->inode, new_inode);
|
dirent->inode, new_inode);
|
||||||
#endif
|
#endif
|
||||||
|
@ -1360,8 +1360,7 @@ static errcode_t move_itables(ext2_resize_t rfs)
|
||||||
|
|
||||||
#ifdef RESIZE2FS_DEBUG
|
#ifdef RESIZE2FS_DEBUG
|
||||||
if (rfs->flags & RESIZE_DEBUG_ITABLEMOVE)
|
if (rfs->flags & RESIZE_DEBUG_ITABLEMOVE)
|
||||||
printf(_("Itable move group %d block "
|
printf("Itable move group %d block %u->%u (diff %d)\n",
|
||||||
"%u->%u (diff %d)\n"),
|
|
||||||
i, old_blk, new_blk, diff);
|
i, old_blk, new_blk, diff);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1386,7 +1385,7 @@ static errcode_t move_itables(ext2_resize_t rfs)
|
||||||
n = n >> EXT2_BLOCK_SIZE_BITS(fs->super);
|
n = n >> EXT2_BLOCK_SIZE_BITS(fs->super);
|
||||||
#ifdef RESIZE2FS_DEBUG
|
#ifdef RESIZE2FS_DEBUG
|
||||||
if (rfs->flags & RESIZE_DEBUG_ITABLEMOVE)
|
if (rfs->flags & RESIZE_DEBUG_ITABLEMOVE)
|
||||||
printf(_("%d blocks of zeros...\n"), n);
|
printf("%d blocks of zeros...\n", n);
|
||||||
#endif
|
#endif
|
||||||
num = fs->inode_blocks_per_group;
|
num = fs->inode_blocks_per_group;
|
||||||
if (n > diff)
|
if (n > diff)
|
||||||
|
@ -1428,7 +1427,7 @@ static errcode_t move_itables(ext2_resize_t rfs)
|
||||||
ext2fs_flush(fs);
|
ext2fs_flush(fs);
|
||||||
#ifdef RESIZE2FS_DEBUG
|
#ifdef RESIZE2FS_DEBUG
|
||||||
if (rfs->flags & RESIZE_DEBUG_ITABLEMOVE)
|
if (rfs->flags & RESIZE_DEBUG_ITABLEMOVE)
|
||||||
printf(_("Inode table move finished.\n"));
|
printf("Inode table move finished.\n");
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -1467,7 +1466,7 @@ static errcode_t fix_resize_inode(ext2_filsys fs)
|
||||||
* should be fsck'ed and we assume it is consistent.
|
* should be fsck'ed and we assume it is consistent.
|
||||||
*/
|
*/
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
_("Should never happen resize inode corrupt!\n"));
|
_("Should never happen: resize inode corrupt!\n"));
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue