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,6 +984,7 @@ static int _deactivate_node(const char *name, uint32_t major, uint32_t minor,
|
||||
r = dm_task_run(dmt);
|
||||
|
||||
/* FIXME Until kernel returns actual name so dm-ioctl.c can handle it */
|
||||
if (!(udev_flags & DM_UDEV_DISABLE_LIBRARY_FALLBACK))
|
||||
rm_dev_node(name, dmt->cookie_set &&
|
||||
!(udev_flags & DM_UDEV_DISABLE_DM_RULES_FLAG));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user