[gnome-multi-writer] trivial: Ignore SD cards
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-multi-writer] trivial: Ignore SD cards
- Date: Sat, 31 Jan 2015 16:41:23 +0000 (UTC)
commit 5340ac840e84c88ba833d06f9b1949041821ac52
Author: Richard Hughes <richard hughsie com>
Date: Sat Jan 31 09:46:40 2015 +0000
trivial: Ignore SD cards
src/gmw-main.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gmw-main.c b/src/gmw-main.c
index 5afe712..36bdc24 100644
--- a/src/gmw-main.c
+++ b/src/gmw-main.c
@@ -1626,6 +1626,12 @@ gmw_udisks_object_add (GmwPrivate *priv, GDBusObject *dbus_object)
return FALSE;
}
+ /* ignore SD cards */
+ if (g_str_has_prefix (block_path, "/dev/mmcblk")) {
+ g_debug ("%s is not a USB device", block_path);
+ return FALSE;
+ }
+
/* ignore small or large devices */
device_size = udisks_block_get_size (udisks_block) / (1000 * 1000);
if (device_size < 1000) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]