mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Fix incorrect removal of symlinks after LV deactivation fails.
This commit is contained in:
parent
36bc6c3d19
commit
f55021f487
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.63 -
|
Version 2.02.63 -
|
||||||
================================
|
================================
|
||||||
|
Fix incorrect removal of symlinks after LV deactivation fails.
|
||||||
Fix is_partitioned_dev not to attempt to reopen device.
|
Fix is_partitioned_dev not to attempt to reopen device.
|
||||||
Fix another thread race in clvmd.
|
Fix another thread race in clvmd.
|
||||||
Refactor management of vg->pvs list.
|
Refactor management of vg->pvs list.
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
Version 1.02.46 -
|
Version 1.02.46 -
|
||||||
================================
|
================================
|
||||||
Wipe memory buffers for dm-ioctl parameters before releaseing.
|
Change dm_tree_deactivate_children to fail if device is open.
|
||||||
|
Wipe memory buffers for dm-ioctl parameters before releasing.
|
||||||
Strictly require libudev if udev_sync is used.
|
Strictly require libudev if udev_sync is used.
|
||||||
Add support for ioctl's DM_UEVENT_GENERATED_FLAG.
|
Add support for ioctl's DM_UEVENT_GENERATED_FLAG.
|
||||||
|
|
||||||
|
@ -1523,8 +1523,6 @@ int dev_manager_deactivate(struct dev_manager *dm, struct logical_volume *lv)
|
|||||||
|
|
||||||
r = _tree_action(dm, lv, DEACTIVATE);
|
r = _tree_action(dm, lv, DEACTIVATE);
|
||||||
|
|
||||||
fs_del_lv(lv);
|
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1047,9 +1047,14 @@ int dm_tree_deactivate_children(struct dm_tree_node *dnode,
|
|||||||
|
|
||||||
/* Refresh open_count */
|
/* Refresh open_count */
|
||||||
if (!_info_by_dev(dinfo->major, dinfo->minor, 1, &info) ||
|
if (!_info_by_dev(dinfo->major, dinfo->minor, 1, &info) ||
|
||||||
!info.exists || info.open_count)
|
!info.exists)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (info.open_count) {
|
||||||
|
r = 0;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (!_deactivate_node(name, info.major, info.minor,
|
if (!_deactivate_node(name, info.major, info.minor,
|
||||||
&child->dtree->cookie, child->udev_flags)) {
|
&child->dtree->cookie, child->udev_flags)) {
|
||||||
log_error("Unable to deactivate %s (%" PRIu32
|
log_error("Unable to deactivate %s (%" PRIu32
|
||||||
|
Loading…
Reference in New Issue
Block a user