From 3e4a0e219e00ac9361d9e300b3ff3e861bfde426 Mon Sep 17 00:00:00 2001 From: Wenlin Kang Date: Tue, 27 Sep 2016 17:45:02 +0800 Subject: lvm2: enable option o_direct During some lvm operations, e.g, create many volumes, we notice a quite big degradation in performance with o_direct disabled, if enabled the performance get much better, so, here we should enable this option. Signed-off-by: Wenlin Kang Signed-off-by: Martin Jansa --- meta-oe/recipes-support/lvm2/lvm2.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta-oe/recipes-support') diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc index d66daf8c29..74b72118f5 100644 --- a/meta-oe/recipes-support/lvm2/lvm2.inc +++ b/meta-oe/recipes-support/lvm2/lvm2.inc @@ -20,16 +20,17 @@ inherit autotools-brokensep pkgconfig systemd PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \ thin-provisioning-tools \ + odirect \ " PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline" PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux" PACKAGECONFIG[thin-provisioning-tools] = "--with-thin=internal,--with-thin=none,,thin-provisioning-tools" +PACKAGECONFIG[odirect] = "--enable-o_direct,--disable-o_direct" # Unset user/group to unbreak install. EXTRA_OECONF = "--with-user= \ --with-group= \ - --disable-o_direct \ --enable-realtime \ --enable-applib \ --enable-cmdlib \ -- cgit 1.2.3-korg