2001-01-01 <tytso@snap.thunk.org>
+ * mke2fs.c, e2image.c: Removed references to struct ext2fs_sb to
+ struct ext2_super_block.
+
* tune2fs.c (main): Add support to allow HAS_JOURNAL flag to be
cleared, but only if the filesystem is unmounted or
mounted read-only. Changed struct ext2fs_sb to struct
- ext2_super, and cleaned up old code which was needed for
- old versions of ext2_fs.h (not needed since we're using
- our own version now).
+ ext2_super_block, and cleaned up old code which was needed
+ for old versions of ext2_fs.h (not needed since we're
+ using our own version now).
2000-12-31 <tytso@snap.thunk.org>
{ 0, 0, 0, 0},
};
-static void set_fs_defaults(char *fs_type, struct ext2fs_sb *super,
+static void set_fs_defaults(char *fs_type, struct ext2_super_block *super,
int blocksize, int *inode_ratio)
{
int megs;
static void show_stats(ext2_filsys fs)
{
- struct ext2fs_sb *s = (struct ext2fs_sb *) fs->super;
+ struct ext2_super_block *s = fs->super;
char buf[80];
blk_t group_block;
int i, need, col_left;
errcode_t retval;
int sparse_option = 1;
char * oldpath = getenv("PATH");
- struct ext2fs_sb *param_ext2 = (struct ext2fs_sb *) ¶m;
+ struct ext2_super_block *param_ext2 = ¶m;
char * raid_opts = 0;
char * journal_opts = 0;
char * fs_type = 0;
ext2_filsys fs;
badblocks_list bb_list = 0;
int journal_blocks;
- struct ext2fs_sb *s;
#ifdef ENABLE_NLS
setlocale(LC_MESSAGES, "");
/*
* Generate a UUID for it...
*/
- s = (struct ext2fs_sb *) fs->super;
- uuid_generate(s->s_uuid);
+ uuid_generate(fs->super->s_uuid);
/*
* Override the creator OS, if applicable
* Set the volume label...
*/
if (volume_label) {
- memset(s->s_volume_name, 0, sizeof(s->s_volume_name));
- strncpy(s->s_volume_name, volume_label,
- sizeof(s->s_volume_name));
+ memset(fs->super->s_volume_name, 0,
+ sizeof(fs->super->s_volume_name));
+ strncpy(fs->super->s_volume_name, volume_label,
+ sizeof(fs->super->s_volume_name));
}
/*
* Set the last mount directory
*/
if (mount_dir) {
- memset(s->s_last_mounted, 0, sizeof(s->s_last_mounted));
- strncpy(s->s_last_mounted, mount_dir,
- sizeof(s->s_last_mounted));
+ memset(fs->super->s_last_mounted, 0,
+ sizeof(fs->super->s_last_mounted));
+ strncpy(fs->super->s_last_mounted, mount_dir,
+ sizeof(fs->super->s_last_mounted));
}
if (!quiet || noaction)