force unmount/eject on udisks2 filesystem removal, also remove undocumented fixme from seb
T432, T398
This commit is contained in:
parent
07347198c6
commit
ec484b1317
|
@ -560,10 +560,14 @@ _e_fm_main_udisks2_cb_dev_del(void *data __UNUSED__, const Eldbus_Message *msg)
|
|||
}
|
||||
if (vol)
|
||||
{
|
||||
/* TODO: Fix here: T432, T398, T380 */
|
||||
v = _volume_find_by_dbus_path(path);
|
||||
if (v && (!v->mounted))
|
||||
if (v)
|
||||
{
|
||||
if (v->mounted)
|
||||
{
|
||||
v->optype = E_VOLUME_OP_TYPE_EJECT;
|
||||
_e_fm_main_udisks2_cb_vol_unmounted(v);
|
||||
}
|
||||
if (v->optype == E_VOLUME_OP_TYPE_EJECT)
|
||||
_e_fm_main_udisks2_cb_vol_ejected(v);
|
||||
_volume_del(v);
|
||||
|
|
Loading…
Reference in New Issue