Re: [RFC][Update][Patch 16/16]Update ext3 superblock definition

Andreas Dilger <[email protected]>
Newsgroups gmane.comp.file-systems.ext2.devel
Message-ID <[email protected]>
On Jun 29, 2006  17:19 -0700, Mingming Cao wrote:
> The ext3 on-disk superblock definition in the kernel is lagging
> behind some e2fsprogs-only fields (the backup of the journal inode,
> and the mkfs timestamp), leading to the high bits of the fs size
> being declared in a field already reserved by e2fsprogs.  Bring them
> back in sync.

Again, VERY DANGEROUS to have an intermediate step that is having the
wrong on-disk format, in case someone starts just using the earlier
patch for some reason.

> diff -puN include/linux/ext3_fs.h~ext3-sb-struc-sync-with-e2fsprog include/linux/ext3_fs.h
> --- linux-2.6.17/include/linux/ext3_fs.h~ext3-sb-struc-sync-with-e2fsprog	2006-06-28 16:47:18.377462723 -0700
> +++ linux-2.6.17-ming/include/linux/ext3_fs.h	2006-06-28 16:47:18.381462264 -0700
> @@ -532,13 +532,15 @@ struct ext3_super_block {
>  	__u8	s_def_hash_version;	/* Default hash version to use */
>  	__u8	s_reserved_char_pad;
>  	__u16	s_reserved_word_pad;
> -	__le32	s_default_mount_opts;
> +/*100*/	__le32	s_default_mount_opts;
>  	__le32	s_first_meta_bg; 	/* First metablock block group */
> +	__le32	s_mkfs_time;		/* When the filesystem was created */
> +	__le32	s_jnl_blocks[17]; 	/* Backup of the journal inode */
>  	/* 64bit support valid if EXT3_FEATURE_COMPAT_64BIT */
> -	__le32	s_blocks_count_hi;	/* Blocks count */
> -/*100*/	__le32	s_r_blocks_count_hi;	/* Reserved blocks count */
> +/*150*/	__le32	s_blocks_count_hi;	/* Blocks count */
> +	__le32	s_r_blocks_count_hi;	/* Reserved blocks count */
>  	__le32	s_free_blocks_count_hi;	/* Free blocks count */
> -	__u32	s_reserved[187];	/* Padding to the end of the block */
> +	__u32	s_reserved[169];	/* Padding to the end of the block */
>  };

Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.