When I create ext4 filesystem, there are many "features", which I can enable and disable - like has_journal, extent, huge_file and so on. Is there any way to know, which options were used while creating ext4 filesystem (after it been created, I mean)?
I have existed ext4 partition (created by somebody), but even don't know, did it use journal or extents.
You can use tune2fs to list out:
I suppose you could use the
dumpe2fs
utility, to get a dump of ext2/etx3/ext4 filesystme informations.For instance, something like this might do :
ANd the beginning of the output looks like this, on my computer :
You can use
file -s $DEVICE
which outputs on my system:A simple way to get only what you need is using debugfs to query 'features' used in filesystem
If you want ot know what the options means, they should should be mentioned in the ext4 documentation that would be included with the kernel source. You can find the documentation online here. This should be true of all filesystems, and a typical location if you have the source on the server would be
/usr/src/linux-source-2.6.27/Documentation/filesystems