mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Add check for library fallback in _deactivate_node.
This fn calls rm_dev_node directly - an exceptional case. It needs to check the DM_UDEV_DISABLE_LIBRARY_FALLBACK flag directly (it's called in dm_task_run normally where it's checked already).
This commit is contained in:
parent
b1db4dd13e
commit
901e7257d1
@ -984,8 +984,9 @@ static int _deactivate_node(const char *name, uint32_t major, uint32_t minor,
|
|||||||
r = dm_task_run(dmt);
|
r = dm_task_run(dmt);
|
||||||
|
|
||||||
/* FIXME Until kernel returns actual name so dm-ioctl.c can handle it */
|
/* FIXME Until kernel returns actual name so dm-ioctl.c can handle it */
|
||||||
rm_dev_node(name, dmt->cookie_set &&
|
if (!(udev_flags & DM_UDEV_DISABLE_LIBRARY_FALLBACK))
|
||||||
!(udev_flags & DM_UDEV_DISABLE_DM_RULES_FLAG));
|
rm_dev_node(name, dmt->cookie_set &&
|
||||||
|
!(udev_flags & DM_UDEV_DISABLE_DM_RULES_FLAG));
|
||||||
|
|
||||||
/* FIXME Remove node from tree or mark invalid? */
|
/* FIXME Remove node from tree or mark invalid? */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user