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

Add ommitted unlock_vg() call when sigint_caught() during vg processing.

Specific test case:
1. pvcreate /dev/loop1; vgcreate vg1 /dev/loop1; lvcreate -L 64M -n lv1 vg1
2. vgremove vg1 (will prompt user)
3. CTRL-C
Code will exit with:
Do you really want to remove volume group "vg2" containing 2 logical volumes? [y/n]:
  Volume group "vg2" not removed
  Command failed with status code 5.
  Internal error: Volume Group vg2 was not unlocked
  Device '/dev/loop1' has been left open.

After change:
Do you really want to remove volume group "vg2" containing 2 logical volumes? [y/n]:
  Volume group "vg2" not removed
  Command failed with status code 5.
This commit is contained in:
Dave Wysochanski 2008-06-10 15:25:38 +00:00
parent d9c8469363
commit a3678fa186
2 changed files with 1 additions and 3 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.38 -
=================================
Add omitted unlock_vg() call when sigint_caught() during vg processing.
Fix wrong free_count on imported vg from pool device
Fix segfault when calling pvcreate on the pool device
Fix segfault after _free_vginfo by remembering to remove vginfo from list.

View File

@ -514,9 +514,6 @@ static int _process_one_vg(struct cmd_context *cmd, const char *vg_name,
ret_max = ret;
}
if (sigint_caught())
return ret_max;
unlock_vg(cmd, vg_name);
return ret_max;