[lvm-devel] [PATCH] Disable long living process flag in lvm2app.

Milan Broz mbroz at redhat.com
Mon Mar 15 19:17:05 UTC 2010


This option should be configurable, but for now
do not set it at all.

(lvm2app is used in udisks probers and there
cac cause several nasty races when trying to update
lvmcache during rescan.)
---
 liblvm/lvm_base.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/liblvm/lvm_base.c b/liblvm/lvm_base.c
index ac94692..da07e81 100644
--- a/liblvm/lvm_base.c
+++ b/liblvm/lvm_base.c
@@ -32,7 +32,7 @@ lvm_t lvm_init(const char *system_dir)
 
 	/* create context */
 	/* FIXME: split create_toolcontext */
-	cmd = create_toolcontext(1, system_dir);
+	cmd = create_toolcontext(0, system_dir);
 	if (!cmd)
 		return NULL;
 
-- 
1.7.0




More information about the lvm-devel mailing list