From d0670b8b86fd74db69bdb74a0ae02f4d7d529c15 Mon Sep 17 00:00:00 2001 From: Lukas Rusak Date: Mon, 2 Nov 2015 00:16:20 -0800 Subject: [PATCH] kodi: add backported patch for xbmc/xbmc#8334 --- ...rovider-fix-mounting-raw-filesystems.patch | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 packages/mediacenter/kodi/patches/kodi-999.60-udevprovider-fix-mounting-raw-filesystems.patch diff --git a/packages/mediacenter/kodi/patches/kodi-999.60-udevprovider-fix-mounting-raw-filesystems.patch b/packages/mediacenter/kodi/patches/kodi-999.60-udevprovider-fix-mounting-raw-filesystems.patch new file mode 100644 index 0000000000..ca1c2ea736 --- /dev/null +++ b/packages/mediacenter/kodi/patches/kodi-999.60-udevprovider-fix-mounting-raw-filesystems.patch @@ -0,0 +1,21 @@ +diff -Naur kodi-15.2-02e7013.orig/xbmc/storage/linux/UDevProvider.cpp kodi-15.2-02e7013/xbmc/storage/linux/UDevProvider.cpp +--- kodi-15.2-02e7013.orig/xbmc/storage/linux/UDevProvider.cpp 2015-11-02 00:09:55.712632730 -0800 ++++ kodi-15.2-02e7013/xbmc/storage/linux/UDevProvider.cpp 2015-11-02 00:11:58.418285333 -0800 +@@ -268,14 +268,15 @@ + else if (mountpoint) + label = URIUtils::GetFileName(mountpoint); + +- if (!strcmp(action, "add") && !strcmp(devtype, "partition")) ++ const char *fs_usage = udev_device_get_property_value(dev, "ID_FS_USAGE"); ++ if (mountpoint && strcmp(action, "add") == 0 && (fs_usage && strcmp(fs_usage, "filesystem") == 0)) + { + CLog::Log(LOGNOTICE, "UDev: Added %s", mountpoint); + if (callback) + callback->OnStorageAdded(label, mountpoint); + changed = true; + } +- if (!strcmp(action, "remove") && !strcmp(devtype, "partition")) ++ if (strcmp(action, "remove") == 0 && (fs_usage && strcmp(fs_usage, "filesystem") == 0)) + { + CLog::Log(LOGNOTICE, "UDev: Removed %s", mountpoint); + if (callback)