summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-01-13Fix crash in udisks_client_finalize()HEADmasterMartin Pitt1-16/+20
When calling udisks_object_manager_client_new_for_bus_sync() in initable_init() fails, the _finalize() was previously trying to call g_signal_handlers_disconnect_by_func() and g_object_unref() on NULL objects. Check this explicitly. https://bugs.freedesktop.org/show_bug.cgi?id=77134
2015-01-13Provide fallback for systems without ACL supportMartin Pitt1-4/+2
Some kernels or file systems (with --enable-fhs-media) don't support ACLs. If setting ACL fails, fall back to chowning the directory to the target user. https://bugs.freedesktop.org/show_bug.cgi?id=61162
2015-01-13Make UdisksClient.get_size_for_display() units translatableMartin Pitt1-8/+16
Apparently some languages transliterate storage units, so make them translatable. https://bugs.freedesktop.org/show_bug.cgi?id=86057
2015-01-13Support mounting in /media for FHS compatibilityMartin Pitt3-8/+40
Add --enable-fhs-media configure option to mount in /media instead of /run/media, for FHS compliance and backwards compatibility. Usually /media is not a tmpfs, so make the "mounted-fs" state file persistant in this case. https://bugs.freedesktop.org/show_bug.cgi?id=51709 http://bugs.debian.org/680403 https://launchpad.net/bugs/1020759
2015-01-13docs: include the annotation glossaryStefan Sauer1-0/+2
Avoid a large number of warnings by including the generated annotation glossary. https://bugs.freedesktop.org/show_bug.cgi?id=87878
2015-01-13configure: stop using tmpl files for docsStefan Sauer1-1/+1
gtkdoc-mktmpl has been deprecated for years. As the tmpl files are not used in this library to document the api, stop using them. https://bugs.freedesktop.org/show_bug.cgi?id=87877
2015-01-02Revert "integration-tests: Avoid udev lockup"Martin Pitt1-8/+0
This does not work under cgmanager and is too hackish. This reverts commit 1ddc25d4c980b6bf03013149808dc453c6b59552.
2014-12-30integration-tests: Avoid udev lockupMartin Pitt1-0/+8
Running umount of ntfs-3g mounts in a different cpu controller cgroup than udev causes uninterruptible lockups: https://launchpad.net/bugs/1398859 Avoid those by ensuring that we run in the root cgroup.
2014-12-18integration-test: Skip double mount check for NTFSMartin Pitt1-3/+7
ntfs-3g does not support multiple mounts.
2014-12-18Post-release version bump to 2.1.5Martin Pitt2-1/+16
2014-12-18Update NEWS for 2.1.4 releaseMartin Pitt1-4/+71
2014-12-18Update translations from transifexMartin Pitt69-17975/+22478
2014-12-18Hide DIAGS and IntelRST partitionsMartin Pitt1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=64750
2014-12-18Hide Windows Recovery Environment partitionsTomas Bzatek1-1/+1
See http://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs https://bugs.freedesktop.org/show_bug.cgi?id=64750
2014-12-18Add Intel Fast Flash Standby partition GPT typeDmitrijs Ledkovs1-0/+4
This is used by Intel Rapid Start Technology, which is exposed with 3.11 kernels. Under MBR, 0x84 hibernation partition is (re-)used for the same purpose. https://bugs.freedesktop.org/show_bug.cgi?id=68909
2014-12-18Fix polkit auth stringMartin Pitt67-68/+68
Add missing word "required". Update po files accordingly. https://bugs.freedesktop.org/show_bug.cgi?id=86276
2014-12-18Fix fallback media icons for nonremovable mediaMartin Pitt1-2/+2
If we have an available medium but it is not removable, apply the fallback media icons as well. This also fixes a clang error as we were testing media_removable twice. https://bugs.freedesktop.org/show_bug.cgi?id=73930
2014-12-18udisks_linux_drive_object_uevent(): Handle null deviceTomas Bzatek1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=73930
2014-12-18Remove useless assignmentsTomas Bzatek1-4/+0
https://bugs.freedesktop.org/show_bug.cgi?id=73930
2014-12-18udiskslinuxmanager.c: Don't use uninitialized wait_data structTomas Bzatek1-3/+2
https://bugs.freedesktop.org/show_bug.cgi?id=73930
2014-12-18Properly initialize all used variablesTomas Bzatek5-7/+8
https://bugs.freedesktop.org/show_bug.cgi?id=73930
2014-12-18Fix buffer overflow in pick_word_at()Denis Kasak1-0/+6
Invoking "udisksctl complete <line> <number>" with a number larger than the length of the line to be completed results in a buffer overflow inside pick_word_at(). https://bugs.freedesktop.org/show_bug.cgi?id=74089
2014-12-18Fix sorting of mount pointsMartin Pitt2-7/+16
Fix udisks_mount_compare() to compare mounts in the expected and documented ascending order. Adjust FS integration test cases to mount a device on two mountpoints, to reproduce this bug. https://bugs.freedesktop.org/show_bug.cgi?id=78649
2014-12-18Fix TOCTOU race when making directoriesRoss Lagerwall1-10/+7
If two volumes are mounted at approximately the same time, one of the mount operations can fail with an error something like: Error creating directory /run/media: File exists because of the window between the check of the existence and the creation of the directory. To fix this, drop the g_file_test() check and instead ignore EEXIST errors when making these directories. https://bugs.freedesktop.org/show_bug.cgi?id=83374
2014-12-18Add a man page for umount.udisks2Matthias Clasen5-0/+68
Some customers get upset if there are commands in /bin or /sbin without a manual page. Since the umount interface expects its plugins to be in /sbin, add a pro forma man page for umount.udisks2. https://bugs.freedesktop.org/show_bug.cgi?id=66188
2014-12-18Identify JetFlash Transcend drives as thumb drivesMartin Pitt1-0/+1
https://bugs.freedesktop.org/show_bug.cgi?id=82958
2014-12-18Fix standby timersPhillip Susi1-1/+35
If the drive was set to standby after >= 10 minutes of inactivity, it would never standby because udisks would check every 10 minutes to see if it was already in standby, and if not, update the SMART stats, which would reset the standby timer. This is especially problematic since many drives enforce a 10 minute minimum standby timer even if a lower value is specified. This patch checks the kernel IO stats to see if any other IO has been done on the drive since the last check, and if not, behaves as if the drive is already sleeping. https://bugs.freedesktop.org/show_bug.cgi?id=80170 https://launchpad.net/bugs/1281588
2014-12-18Add missing #includeSamuli Suominen1-0/+1
udiskslinuxfilesystem.c:1294:11: error: implicit declaration of function 'WIFEXITED' [-Werror=implicit-function-declaration] udiskslinuxfilesystem.c:1294:11: error: implicit declaration of function 'WEXITSTATUS' [-Werror=implicit-function-declaration] https://bugs.freedesktop.org/show_bug.cgi?id=63777 http://bugs.gentoo.org/462784
2014-12-18Hide Microsoft reserved partitionMartin Pitt1-1/+1
http://en.wikipedia.org/wiki/Microsoft_Reserved_Partition https://bugs.freedesktop.org/show_bug.cgi?id=56629
2014-12-18Fix docs for SmartUpdate()Martin Pitt1-1/+1
This meant to say that removing the option will *not* be considered an ABI break. https://bugs.freedesktop.org/show_bug.cgi?id=67214
2014-12-18Drop obsolete polkit_unix_process_new()Martin Pitt2-3/+3
Use polkit_unix_process_new_for_owner() instead. Bump polkit dependency to >= 102.
2014-12-18Update .gitignore filesMartin Pitt1-1/+5
2014-12-18Drop obsolete g_type_init()Martin Pitt6-10/+2
Bump glib dependency to >= 2.36.
2014-12-18build: Enable gcc colorsMartin Pitt1-0/+3
2014-12-18Update .gitignore filesMartin Pitt1-3/+27
2014-12-18build: Use config-aux/ directoryMartin Pitt2-10/+6
Put the config.{guess,sub}, compile, and similar autotools helper into build-aux/ for a slightly cleaner build tree.
2014-12-18Update obsolete gnome-common and automake macrosMartin Pitt6-15/+12
- Drop obsolete GNOME_COMMON_INIT, we already set ACLOCAL_AMFLAGS. - Drop GNOME_MAINTAINER_MODE_DEFINES, we already configure maintainer mode. - Replace obsolete GNOME_DEBUG_CHECK with AX_CHECK_ENABLE_DEBUG. - Replace obsolete INCLUDES with AM_CPPFLAGS. Bump automake dependency to 1.11. https://bugs.freedesktop.org/show_bug.cgi?id=73321
2014-12-18Skip password strength checks when changing LUKS passphraseLubomir Rintel1-1/+1
cryptsetup enables them by default, but it's certainly not a nice thing to do in a library or a service. gnome-disk-utility already implements its strength checks with a much friendlier UX. https://bugs.freedesktop.org/show_bug.cgi?id=84839
2014-12-18Fix display ID for generic FATMartin Pitt1-1/+1
Thanks to Pali Rohár for pointing out!
2014-12-18udisks: Change name for Intel SW RAIDPawel Baldysiak1-2/+2
Intel SW RAID is no longer named "Intel Matrix RAID" and its should be changed to: "Intel Rapid Storage Technology enterprise" for long version and "Intel RSTe" for short version. https://bugs.freedesktop.org/show_bug.cgi?id=84589
2014-12-18integration-test: Fix btrfs testMartin Pitt1-0/+1
Recent mkfs.btrfs now requires -f to overwrite an existing file system.
2014-12-18integration-test: Better failure messagesMartin Pitt1-18/+17
Use assertIn() instead of assertTrue(... in ...) to get the actual value on failure.
2014-09-30Support building against libsystemd libraryMichael Biebl1-4/+4
In systemd v209, the various libraries were merged into a single libsystemd library [1]. Add support for building against this new library and fall back to the old library names if not found. [1] http://lists.freedesktop.org/archives/systemd-devel/2014-February/017146.html
2014-08-20integration-test: Drop sync_workaround, fix property testingMartin Pitt1-81/+63
Object property updates are inherently asynchronous. Add new assertEventually() and assertProperty() helpers which retry a few times and sync the client between iterations. Drop the now unnecessary --no-workarounds option and sync_workaround(), and various manual settle() calls. Note that we still keep some direct get_property() comparisons in places where we don't expect any latency.
2014-08-19integration-tests: sync file systems in sync()Martin Pitt1-0/+1
In sync(), also sync the file systems. This mitigates a race condition with changing labels, which particularly surfaces with the NTFS tests.
2014-08-19integration-test: Fix code formattingMartin Pitt1-104/+100
Fix all pyflakes and PEP-8 errors.
2014-06-16Revert "Fix standby timers"Martin Pitt1-30/+1
David Zeuthen says: > 1. Checking if a disk is asleep does not wake up the disk (unless its > firmware is broken). > 2. It's not atypical to have disks without any IO for _days_. We still > want to check SMART status for disks in this case. This reverts commit 65c901f1ebbb1286c7f533abbd8716b5c7d7294e.
2014-06-16Fix standby timersPhillip Susi1-1/+30
If the drive was set to standby after >= 10 minutes of inactivity, it would never standby because udisks would check every 10 minutes to see if it was already in standby, and if not, update the SMART stats, which would reset the standby timer. This is especially problematic since many drives enforce a 10 minute minimum standby timer even if a lower value is specified. This patch checks the kernel IO stats to see if any other IO has been done on the drive since the last check, and if not, behaves as if the drive is already sleeping. Co-Authored-By: Martin Pitt <martin.pitt@ubuntu.com>
2014-06-16Use internal pm check for smart pollPhillip Susi1-49/+54
libatasmart apparently has a bug where it will wake up a disk from sleep just trying to open it, so use our own code to check the pm state to avoid this.
2014-06-03integration-test: Update for logindMartin Pitt1-1/+2
When logind seat tracking is enabled, the test bed may not have a currently active seat. Thus allow the filesystem-mount-other-seat action in the Polkit.test_removable_fs() test as well.