From d10f72eff53fb209b9351527ff1c75543938d72d Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Sun, 29 Jul 2012 10:30:00 +0000 Subject: [PATCH] get rid of duiplicate device icons with eeze+eeze-scanner+mount etc. as i see both dev/sdX and dev/sdX1 as devices. delete the parent ones if child partitions exist. SVN revision: 74543 --- src/bin/e_fm/e_fm_main_eeze.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/bin/e_fm/e_fm_main_eeze.c b/src/bin/e_fm/e_fm_main_eeze.c index 9eef25e03..08d56e17c 100644 --- a/src/bin/e_fm/e_fm_main_eeze.c +++ b/src/bin/e_fm/e_fm_main_eeze.c @@ -392,6 +392,16 @@ _e_fm_main_eeze_volume_add(const char *syspath, v->partition_label = eeze_disk_udev_get_property(v->disk, "ID_FS_LABEL"); } + /* if we have dev/sda ANd dev/sda1 - ia a parent vol - del the parent vol + * since we actually have real child partition volumes to mount */ + if ((v->partition != 0) && (v->parent)) + { + E_Volume *v2 = e_volume_find(v->parent); + + if ((v2) && (v2->partition == 0)) + _e_fm_main_eeze_volume_del(v2->udi); + } + { E_Storage *s; s = e_storage_find(v->parent);