summaryrefslogtreecommitdiffstats
path: root/daemons/clvmd/lvm-functions.c
diff options
context:
space:
mode:
authorChristine Caulfield <ccaulfie@redhat.com>2008-04-08 13:03:13 +0000
committerChristine Caulfield <ccaulfie@redhat.com>2008-04-08 13:03:13 +0000
commite8d3d71e23e34c01467947ca57a5da5573f10e8b (patch)
tree8d2417ab10a28ce67ae4452cc101437fba361c51 /daemons/clvmd/lvm-functions.c
parent6eb44b50913ae83449fef735dd9f356de2cb710a (diff)
downloadlvm2-e8d3d71e23e34c01467947ca57a5da5573f10e8b.tar.gz
lvm2-e8d3d71e23e34c01467947ca57a5da5573f10e8b.tar.xz
lvm2-e8d3d71e23e34c01467947ca57a5da5573f10e8b.zip
Add config file overrides to clvmd when it reads the LVs list so that
config items 'command_names' and 'prefix' don't prevent it working.
Diffstat (limited to 'daemons/clvmd/lvm-functions.c')
-rw-r--r--daemons/clvmd/lvm-functions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemons/clvmd/lvm-functions.c b/daemons/clvmd/lvm-functions.c
index 387a9803..3cfce8e3 100644
--- a/daemons/clvmd/lvm-functions.c
+++ b/daemons/clvmd/lvm-functions.c
@@ -470,7 +470,7 @@ static void drop_vg_locks()
char line[255];
FILE *vgs =
popen
- ("lvm pvs --nolocking --noheadings -o vg_name", "r");
+ ("lvm pvs --config 'log{command_names=0 prefix=\"\"}' --nolocking --noheadings -o vg_name", "r");
sync_unlock("P_orphans", LCK_EXCL);
@@ -511,7 +511,7 @@ static void *get_initial_state()
char line[255];
FILE *lvs =
popen
- ("lvm lvs --nolocking --noheadings -o vg_uuid,lv_uuid,lv_attr,vg_attr",
+ ("lvm lvs --config 'log{command_names=0 prefix=\"\"}' --nolocking --noheadings -o vg_uuid,lv_uuid,lv_attr,vg_attr",
"r");
if (!lvs)