[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /boot partition changes when it should not



On Wed, 10 Mar 2010 17:30:04 -0500 (EST), thib wrote:
> You can find the ext3_super_block data structure in linux/ext3_fs.h[1], line 
> 444 in current mainline 2.6.
> 
> I noted:
> ...
> 	__le32	s_mtime;		/* Mount time */
> /*30*/	__le32	s_wtime;		/* Write time */
> 	__le16	s_mnt_count;		/* Mount count */
> ...
> 	__le16	s_state;		/* File system state */
> ...
> /*40*/	__le32	s_lastcheck;		/* time of last check */
> ...
> /*88*/	char	s_last_mounted[64];	/* directory where last mounted */
> ...
> 	__le64  s_mmp_block;            /* Block for multi-mount protection */
> ...
> 
> * The mount time is set by cpu_to_le32(get_seconds()) in fs/ext3/super.c 
> l1326, so it stores a timestamp in seconds (sorry Stephen).  cpu_to_le32() 
> just byte swaps to little-endian if necessary, in case you're wondering.

Hmm.  Things are not looking good for my theory, are they?  Oh well.

-- 
  .''`.     Stephen Powell    <zlinuxman@wowway.com>
 : :'  :
 `. `'`
   `-


Reply to: