forked from rook/rook
The daemon only flagged a device change from in-use to empty, never the reverse, so an in-use disk was never recorded as non-empty and a later disk swap produced no ConfigMap update or reconcile. This is needed for OSD replacement to work automatically: without it a destroyed OSD slot is never reprovisioned after the disk is swapped. Compare the empty state in both directions so the swap becomes a real transition that triggers the reconcile. Signed-off-by: Artem Torubarov <artem.torubarov@sap.com>