linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to: determine if it's ext3 or ext2 mounted as ext4?
@ 2011-01-10 12:13 Michael Tokarev
  2011-01-10 15:24 ` Ted Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Tokarev @ 2011-01-10 12:13 UTC (permalink / raw)
  To: linux-fsdevel

Hello.

I'm performing conversion from ext3 to ext4 currently,
on several nodes.  The current plan is to remount them
as ext4 first, next use tune2fs to update list of
filesystem features, next to remount them again in order
to actually turn the features on.

The question is: what's the way to determine if the
actual features used corresponds to ext3 or ext4?  Or,
in other words, if the last step in the above sequence
has been completed or not?

The filesystem superblock at this time will show ext4
already (since ext4-specific features are turned on),
but actual features used will be ext3.

Is there a way to determine if a remount is still needed?

Besides, when I first use tune2fs (on a ext3-mounted fs)
and next remount it, the filesystem wants an fsck pass,
which finds checksum errors on all newly written files,
and these errors can't be corrected automatically at boot
if -y fsck flag is NOT used (default on Debian).  So I
had to remount them first and convert second.

Thanks!

/mjt

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to: determine if it's ext3 or ext2 mounted as ext4?
  2011-01-10 12:13 How to: determine if it's ext3 or ext2 mounted as ext4? Michael Tokarev
@ 2011-01-10 15:24 ` Ted Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Ted Ts'o @ 2011-01-10 15:24 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: linux-fsdevel

On Mon, Jan 10, 2011 at 03:13:40PM +0300, Michael Tokarev wrote:
> I'm performing conversion from ext3 to ext4 currently,
> on several nodes.  The current plan is to remount them
> as ext4 first, next use tune2fs to update list of
> filesystem features, next to remount them again in order
> to actually turn the features on.
> 
> The question is: what's the way to determine if the
> actual features used corresponds to ext3 or ext4?  Or,
> in other words, if the last step in the above sequence
> has been completed or not?

Actually, there are very few ext2/3/4 features that need to be enabled
at mount time.  The journal (and journal-related mount options) is
perhaps the main one.  But I can't think of any of the new file system
features which are unique to ext4 that require a remount.

For example, if you mount an ext3 file system using ext4, and then set
the extent feature flag using tune2fs, future files which you create
should be created using extents (which you can verify using lsattr).

> Besides, when I first use tune2fs (on a ext3-mounted fs)
> and next remount it, the filesystem wants an fsck pass,
> which finds checksum errors on all newly written files,
> and these errors can't be corrected automatically at boot
> if -y fsck flag is NOT used (default on Debian).

That's the uninit_bg feature, which also happens to include the group
descriptor checksums.  It's not checksum errors on "newly written
files"; it's caused by the fact that the version of tune2fs you are
using can't update the checksums when updating the feature which says,
"checksums are present".  If you upgrade to e2fsprogs 1.41.14, tune2fs
no longer requires an fsck run after setting the uninit_bg feature.

   	  	      	       	     	     	 - Ted

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-10 15:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-10 12:13 How to: determine if it's ext3 or ext2 mounted as ext4? Michael Tokarev
2011-01-10 15:24 ` Ted Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).