ChangeLog, debugfs.c, debugfs.h:

debugfs.h, debugfs.c (do_show_super_stats): Use full words instead of
  	pluralism hack to make I18N conversion easier.  Clean up gcc -Wall
  	complaints.
bitmap-optimize
Theodore Ts'o 2001-01-12 17:23:52 +00:00
parent 7e92dfae9e
commit b74d1d89eb
3 changed files with 17 additions and 7 deletions

View File

@ -1,3 +1,9 @@
2001-01-12 Theodore Ts'o <tytso@valinux.com>
* debugfs.h, debugfs.c (do_show_super_stats): Use full words
instead of pluralism hack to make I18N conversion easier.
Clean up gcc -Wall complaints.
2001-01-11 <tytso@snap.thunk.org>
* debugfs.c, debugfs.h, dump.c, icheck.c, ls.c, lsdel.c, ncheck.c,

View File

@ -289,17 +289,18 @@ void do_show_super_stats(int argc, char *argv[])
fprintf(out, " Group %2d: block bitmap at %d, "
"inode bitmap at %d, "
"inode table at %d\n"
" %d free block%s, "
"%d free inode%s, "
"%d used director%s\n",
" %d free %s, "
"%d free %s, "
"%d used %s\n",
i, gdp->bg_block_bitmap,
gdp->bg_inode_bitmap, gdp->bg_inode_table,
gdp->bg_free_blocks_count,
gdp->bg_free_blocks_count != 1 ? "s" : "",
gdp->bg_free_blocks_count != 1 ? "blocks" : "block",
gdp->bg_free_inodes_count,
gdp->bg_free_inodes_count != 1 ? "s" : "",
gdp->bg_free_inodes_count != 1 ? "inodes" : "inode",
gdp->bg_used_dirs_count,
gdp->bg_used_dirs_count != 1 ? "ies" : "y");
gdp->bg_used_dirs_count != 1 ? "directories"
: "directory");
close_pager(out);
}
@ -470,7 +471,7 @@ static void dump_inode(ext2_ino_t inode_num, struct ext2_inode inode)
time_to_string(inode.i_dtime));
if (LINUX_S_ISLNK(inode.i_mode) && inode.i_blocks == 0)
fprintf(out, "Fast_link_dest: %.*s\n",
inode.i_size, (char *)inode.i_block);
(int) inode.i_size, (char *)inode.i_block);
else
dump_blocks(out, inode_num);
close_pager(out);

View File

@ -40,6 +40,9 @@ extern void do_icheck(int argc, char **argv);
/* ncheck.c */
extern void do_ncheck(int argc, char **argv);
/* set_super.c */
extern void do_set_super(int argc, char **);
/* debugfs.c */
extern void do_dirty_filesys(int argc, char **argv);
extern void do_open_filesys(int argc, char **argv);