+ LOG_DISK_NC("There is no MediaPathKey (no dictionary value)");
+ return {};
+ }
+
+ auto path_key_cstr = CFStringGetCStringPtr((CFStringRef) str, kCFStringEncodingUTF8);
+ if (!path_key_cstr) {
+ LOG_DISK_NC("There is no MediaPathKey (no cstring)");
+ return {};
+ }
+
+ string path(path_key_cstr);
+ LOG_DISK("MediaPathKey is %1", path);
+
+ if (path.find("/IOHDIXController") != string::npos) {
+ /* This is a disk image, so we completely ignore it */
+ LOG_DISK_NC("Ignoring this as it seems to be a disk image");
+ return {};