]> code.ossystems Code Review - openembedded-core.git/commitdiff
image_types.bbclass: set 'filetype' ext4 feature
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
Wed, 26 Jun 2013 12:10:25 +0000 (14:10 +0200)
committerSaul Wold <sgw@linux.intel.com>
Thu, 27 Jun 2013 16:55:57 +0000 (09:55 -0700)
Generating filesystems with this flag allows more efficient directory
traversals because getdents() returns the filetype in 'd_type' which
allows to avoid an extra lstat() call.

Creating ext4 filesystems with 'mkfs.ext4' sets this flag by default
too.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/image_types.bbclass

index 9a52e727ae12f2d2e7b446a72acab670d44323a0..0e5a9a86001149d3a98034464e6a671f085687cb 100644 (file)
@@ -155,7 +155,7 @@ IMAGE_CMD_ext3 () {
 
 oe_mkext4fs () {
        genext2fs -b $ROOTFS_SIZE -d ${IMAGE_ROOTFS} ${EXTRA_IMAGECMD} $1
-       tune2fs -O extents,uninit_bg,dir_index,has_journal $1
+       tune2fs -O extents,uninit_bg,dir_index,has_journal,filetype $1
        e2fsck -yfDC0 $1 || chk=$?
        case $chk in
        0|1|2)