mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-12-05 02:06:57 +00:00
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From 385ee507b4188f14c8e2c9bc903d547331a7b710 Mon Sep 17 00:00:00 2001
|
|
From: MilhouseVH <milhouseVH.github@nmacleod.com>
|
|
Date: Thu, 5 Apr 2018 11:42:13 +0100
|
|
Subject: [PATCH] use udevil to mount
|
|
|
|
---
|
|
xbmc/platform/linux/storage/UDevProvider.cpp | 2 +-
|
|
xbmc/platform/posix/PosixMountProvider.cpp | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/xbmc/platform/linux/storage/UDevProvider.cpp
|
|
+++ b/xbmc/platform/linux/storage/UDevProvider.cpp
|
|
@@ -202,7 +202,7 @@ bool CUDevProvider::Eject(const std::str
|
|
{
|
|
// just go ahead and try to umount the disk
|
|
// if it does umount, life is good, if not, no loss.
|
|
- std::string cmd = "umount \"" + mountpath + "\"";
|
|
+ std::string cmd = "udevil umount \"" + mountpath + "\"";
|
|
int status = system(cmd.c_str());
|
|
|
|
if (status == 0)
|
|
--- a/xbmc/platform/posix/PosixMountProvider.cpp
|
|
+++ b/xbmc/platform/posix/PosixMountProvider.cpp
|
|
@@ -124,7 +124,7 @@ bool CPosixMountProvider::Eject(const st
|
|
#if !defined(TARGET_DARWIN_EMBEDDED)
|
|
// just go ahead and try to umount the disk
|
|
// if it does umount, life is good, if not, no loss.
|
|
- std::string cmd = "umount \"" + mountpath + "\"";
|
|
+ std::string cmd = "udevil umount \"" + mountpath + "\"";
|
|
int status = system(cmd.c_str());
|
|
|
|
if (status == 0)
|