-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add udisks2 support #13897
Add udisks2 support #13897
Conversation
class CUDisks2Drive | ||
{ | ||
public: | ||
std::string m_object; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@wsnipex time to drop udisks1? |
@edu-tsen and before I forget it: Thank you very much! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't have time to test it yet, but it looks good.
thanks for your contribution
} | ||
else | ||
{ | ||
CLog::Log(LOGDEBUG, "UDisks2: Refuse to mount %s", toString()); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
It is long overdue, udisk1 has been dropped in Debian Stretch already, for example |
yes, udisks1 can go, but it doesn't have to be part of this PR. |
looks good to me |
Pleash squash all commits to one "Implement Udisks2" support. @pkerling I would shove it in after that - as it adds new functionality without touching existing code I'd say we can fix the minors after that, seems you are busy at the moment for review. |
Bro what type of code it is
On May 16, 2018 11:00 AM, "Peter Frühberger" ***@***.***> wrote:
@fritsch commented on this pull request.
________________________________
In xbmc/platform/linux/storage/UDisks2Provider.h:
> + * You should have received a copy of the GNU General Public License
+ * along with XBMC; see the file COPYING. If not, see
+ * <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#include <string>
+#include <vector>
+
+#include "storage/IStorageProvider.h"
+#include "DBusUtil.h"
+
+class CUDisks2Drive
+{
+public:
+ std::string m_object;
I'd made them private and rather the other Udiskclasses that directly use
it friend classes to not provide direct access to everyone.
…
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Squashed and force-pushed |
thank you |
Seems I'm late to the party :-) I'd actually started doing this myself a year ago and mostly forgot about it cough I'd have added some stylistic minors but overall it looks OK, it's merged now anyway and if it works - perfect. I'll certainly give it a try some time next week since there wasn't much reaction here concerning practical tests. Thanks for the work! |
Because it works 😄 (XBian, Debian Stretch, umounting mounted volumes) |
Great, but I can't really know that without anyone saying anything ^^ |
Works fine for me too 👍 |
Description
Adds UDisks2Provider for handling mounts/umounts of removable devices.
See also Ticket #17560
Motivation and Context
Re-enable mounting and unmounting of removable media for non-root users.
Needed setup:
org.freedesktop.udisks2.*
<handlemounting>true</handlemounting>
toadvancedsettings.xml
if automount is wantedPS: Old udisks support and automount feature seems to be undocumented in wiki.
How Has This Been Tested?
Tested on Ubuntu 18.04
Types of change
Checklist: