force unmount/eject on udisks2 filesystem removal, also remove undocumented fixme from seb

T432, T398
This commit is contained in:
Mike Blumenkrantz 2013-12-12 10:42:21 -05:00
parent 07347198c6
commit ec484b1317
1 changed files with 6 additions and 2 deletions

View File

@ -560,10 +560,14 @@ _e_fm_main_udisks2_cb_dev_del(void *data __UNUSED__, const Eldbus_Message *msg)
} }
if (vol) if (vol)
{ {
/* TODO: Fix here: T432, T398, T380 */
v = _volume_find_by_dbus_path(path); 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) if (v->optype == E_VOLUME_OP_TYPE_EJECT)
_e_fm_main_udisks2_cb_vol_ejected(v); _e_fm_main_udisks2_cb_vol_ejected(v);
_volume_del(v); _volume_del(v);