Patchwork image_types.bbclass: set 'filetype' ext4 feature

login
register
mail settings
Submitter Enrico Scholz
Date June 26, 2013, 12:10 p.m.
Message ID <1372248625-6484-1-git-send-email-enrico.scholz@sigma-chemnitz.de>
Download mbox | patch
Permalink /patch/52371/
State Accepted
Commit 75e077025397f3bde84e60a9da2c0564ade09b39
Headers show

Comments

Enrico Scholz - June 26, 2013, 12:10 p.m.
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>
---
 meta/classes/image_types.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 9146b21..c03d914 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -158,7 +158,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)