Re: How to differentiate ext4 from ext2/3 in code?

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

 



On Wed, Jun 12, 2013 at 07:00:57AM +0200, Felipe Monteiro de Carvalho wrote:
> Hello,
> 
> Thanks a lot, it was a really good answer =) Just to complement I see that
> some software out there uses EXT4_FEATURE_INCOMPAT_EXTENTS in the incompat
> list. It seams that this flag is usually (always?) set in ext4 but never
> (?) present in ext3
> 
> example:
> http://lists.alioth.debian.org/pipermail/parted-devel/2009-January/002488.html

It is true that the extents feature is supported by the ext4 file
system driver, and there exists no versions of the file system drivers
in the Linux kernel which supports the extents feature.

You can certainly construct file systems which have, say, the flex_bg
feature enabled has the same characteristics as the extents feature in
terms of support coverage by ext3 and ext4 implementations in the
Linux kernel, however.

It looks from the patch you've cited that parted is using some
hueristics for the purposes of displaying "ext2" vs "ext3" vs "ext4"
to the user.  That's fine from the perspective of simplifying the user
interface, but it can end up confusing the user for some unusual file
system configurations.

Regards,

					- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux