mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Fix incorrect removal of symlinks after LV deactivation fails.
This commit is contained in:
parent
acb04c003e
commit
687603a144
@ -1,5 +1,6 @@
|
||||
Version 2.02.63 -
|
||||
================================
|
||||
Fix incorrect removal of symlinks after LV deactivation fails.
|
||||
Fix is_partitioned_dev not to attempt to reopen device.
|
||||
Fix another thread race in clvmd.
|
||||
Refactor management of vg->pvs list.
|
||||
|
@ -1,6 +1,7 @@
|
||||
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.
|
||||
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);
|
||||
|
||||
fs_del_lv(lv);
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
|
@ -1047,9 +1047,14 @@ int dm_tree_deactivate_children(struct dm_tree_node *dnode,
|
||||
|
||||
/* Refresh open_count */
|
||||
if (!_info_by_dev(dinfo->major, dinfo->minor, 1, &info) ||
|
||||
!info.exists || info.open_count)
|
||||
!info.exists)
|
||||
continue;
|
||||
|
||||
if (info.open_count) {
|
||||
r = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!_deactivate_node(name, info.major, info.minor,
|
||||
&child->dtree->cookie, child->udev_flags)) {
|
||||
log_error("Unable to deactivate %s (%" PRIu32
|
||||
|
Loading…
Reference in New Issue
Block a user