master - cleanup: use supplied cmd pointer
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=ec4ffeb51ca15d5bd79acf77dfe38630328f1db0 Commit: ec4ffeb51ca15d5bd79acf77dfe38630328f1db0 Parent: 30777fa46fb21001f3e5a9ba610d50c57c6dfe27 Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Sep 23 16:49:46 2014 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Wed Sep 24 10:54:48 2014 +0200
cleanup: use supplied cmd pointer
--- lib/activate/activate.c | 3 +-- tools/lvconvert.c | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-)
lib/activate/activate.c +1 -2
@@ -645,7 +645,7 @@ int lv_info(struct cmd_context *cmd, const struct logical_volume *lv, int use_lafs_unlock ();/* For non clustered - wait if there are non-delete ops */ } -if (!dev_manager_info (lv->vg->cmd->mem, lv, +if (!dev_manager_info (cmd->mem, lv, (use_layer) ?lv_layer (lv) :NULL , with_open_count, with_read_ahead, &dminfo, (info) ? &info->read_ahead :NULL ))
@@ -794,7 +794,6 @@ int lv_mirror_percent(struct cmd_context *cmd, const struct logical_volume *lv,log_debug_activation ("Checking mirror percent for LV %s/%s" , lv->vg->name, lv->name); -if (!(dm =dev_manager_create (lv->vg->cmd, lv->vg->name,1 ))) return_0;
tools/lvconvert.c +2 -1
@@ -2135,7 +2135,8 @@ static int _lvconvert_merge_old_snapshot(struct cmd_context *cmd,return 0 ; } -if (lv_info (lv->vg->cmd, lv,0 , &info,1 ,0 ) +/* FIXME: test when snapshot is remotely active */ +if (lv_info (cmd, lv,0 , &info,1 ,0 ) && info.exists && info.live_table && (!lv_snapshot_percent (lv, &snap_percent) || snap_percent ==DM_PERCENT_INVALID )) {