1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Add traceback for failpath

This commit is contained in:
Zdenek Kabelac 2012-03-01 22:55:21 +00:00
parent 475c751076
commit 79e4194e59

View File

@ -729,7 +729,7 @@ static int get_initial_state(struct dm_hash_table *excl_uuid)
if (dm_asprintf(&lvs_cmd, "%s lvs --config 'log{command_names=0 prefix=\"\"}' " if (dm_asprintf(&lvs_cmd, "%s lvs --config 'log{command_names=0 prefix=\"\"}' "
"--nolocking --noheadings -o vg_uuid,lv_uuid,lv_attr,vg_attr", "--nolocking --noheadings -o vg_uuid,lv_uuid,lv_attr,vg_attr",
lvm_binary) < 0) lvm_binary) < 0)
return 0; return_0;
/* FIXME: Maybe link and use liblvm2cmd directly instead of fork */ /* FIXME: Maybe link and use liblvm2cmd directly instead of fork */
if (!(lvs = popen(lvs_cmd, "r"))) { if (!(lvs = popen(lvs_cmd, "r"))) {