mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
core/device: use DEVICE_FOUND_MASK
This commit is contained in:
parent
1363eeca94
commit
08300bb035
@ -885,7 +885,7 @@ static void device_remove_old_on_move(Manager *m, sd_device *dev) {
|
||||
if (!syspath_old)
|
||||
return (void) log_oom();
|
||||
|
||||
device_update_found_by_sysfs(m, syspath_old, 0, DEVICE_FOUND_UDEV|DEVICE_FOUND_MOUNT|DEVICE_FOUND_SWAP);
|
||||
device_update_found_by_sysfs(m, syspath_old, 0, DEVICE_FOUND_MASK);
|
||||
}
|
||||
|
||||
static int device_dispatch_io(sd_device_monitor *monitor, sd_device *dev, void *userdata) {
|
||||
@ -924,7 +924,7 @@ static int device_dispatch_io(sd_device_monitor *monitor, sd_device *dev, void *
|
||||
|
||||
/* If we get notified that a device was removed by udev, then it's completely gone, hence
|
||||
* unset all found bits */
|
||||
device_update_found_by_sysfs(m, sysfs, 0, DEVICE_FOUND_UDEV|DEVICE_FOUND_MOUNT|DEVICE_FOUND_SWAP);
|
||||
device_update_found_by_sysfs(m, sysfs, 0, DEVICE_FOUND_MASK);
|
||||
|
||||
} else if (device_is_ready(dev)) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user