Version 2.02.169 -
=====================================
+ Fix displayed lv name when splitting snapshot (2.02.146).
Warn about command not making metadata backup just once per command.
Enable usage of cached volume as thin volume's external origin.
Support cache volume activation with -real layer.
return_0;
if (lv_is_pvmove(cow) || lv_is_mirror_type(cow) || lv_is_raid_type(cow) || lv_is_thin_type(cow)) {
- log_error("LV %s type is unsupported with --splitsnapshot.", cow_name);
+ log_error("LV %s type is unsupported with --splitsnapshot.", display_lvname(cow));
return 0;
}
lv_is_visible(cow) &&
lv_is_active(cow)) {
if (yes_no_prompt("Do you really want to split off active "
- "logical volume %s? [y/n]: ", cow_name) == 'n') {
- log_error("Logical volume %s not split.", cow_name);
+ "logical volume %s? [y/n]: ", display_lvname(cow)) == 'n') {
+ log_error("Logical volume %s not split.", display_lvname(cow));
return 0;
}
}
if (!archive(vg))
return_0;
- log_verbose("Splitting snapshot %s from its origin.", cow_name);
+ log_verbose("Splitting snapshot %s from its origin.", display_lvname(cow));
if (!vg_remove_snapshot(cow))
return_0;
backup(vg);
- log_print_unless_silent("Logical Volume %s split from its origin.", cow_name);
+ log_print_unless_silent("Logical Volume %s split from its origin.", display_lvname(cow));
return 1;
}