Skip to contentSkip to conversation

lvm2: enable option o_direct

PATCH New Wenlin Kang 1 participant 1 message Sep 28, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta-oe/recipes-support/lvm2/lvm2.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-oe/recipes-support/lvm2/lvm2.inc +2 -1
index d66daf8..74b7211 100644
@@ -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 \
Signature · 1 line
2.7.4