Skip to content
Commit 496068a8 authored by Martin Pitt's avatar Martin Pitt Committed by Zbigniew Jędrzejewski-Szmek
Browse files

core: don't change removed devices to state "tentative"

Commit 628c89cc introduced the "tentative" device state, which caused
devices to go from "plugged" to "tentative" on a remove uevent. This
breaks the cleanup of stale mounts (see commit 3b48ce4e), as that only
applies to "dead" devices.

The "tentative" state only really makes sense on adding a device when
we don't know where it was coming from (i. e. not from udev). But when
we get a device removal from udev we definitively know that it's gone,
so change the device state back to "dead" as before 628c89cc.
parent 84a122a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment