Skip to content
Commit 9ad7334d 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.

(cherry picked from commit 496068a8)
parent 9270c8ff
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