Age | Commit message (Collapse) | Author | Files | Lines |
|
Avoid a large number of warnings by including the generated annotation
glossary.
https://bugs.freedesktop.org/show_bug.cgi?id=87878
|
|
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
|
|
- 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
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
This is useful in e.g. backup scripts.
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Add new variables 'drive.removable.bus' and 'drive.removable.media'.
It allows restricting or granting access to removable media based on
its type by polkit authorization rules. It makes possible to grant
access to USB devices, while restrict access to Optical drives.
Signed-off-by: Martin Pitt <martinpitt@gnome.org>
|
|
Otherwise, Disks can't populate the partition table combobox correctly
for GPT because "Generic", "Apple" and "Other" subtypes all have the
same partition type (ZFS) but with different descriptions ("ZFS",
"Apple ZFS", "Solaris /usr").
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
We're starting a new minor series.
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
A lot of haters been complaining about /run/media/$USER and there are
a couple of setups where it's awkward to use /etc/fstab entries and
just easier to write a short udev rule.
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
It's more accurate and - hopefully - less confusing this way
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
The latter is the only user so it's not useful to split it in two.
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
This is actually very very hard to reliably figure out (it requires
intimate knowledge of the RAID superblocks on all currently-present
member devices), so don't pretend we know.
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
This allows GUI apps to show more detailed information, see e.g.
http://people.freedesktop.org/~david/udisks-job-with-rate-and-bytes-info.png
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
This can be used for devices that should be never powered off.
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
It's sometimes useful to cause a UDisksClient::changed signal to be
emitted in the rate-limited fashion we already support. Add
functionality to do this.
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
http://people.freedesktop.org/~david/gnome-disks-write-cache-setting.png
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
This is used in e.g. the GNOME desktop environemtn where both normal
and symbolic icons are now used.
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
This is used to hot-add a device to a RAID array.
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
And also add a function UDisksClient.get_all_blocks_for_mdraid() so
GUIs can at least convey to the user that there's a problem.
GNOME Disks makes use of this to show both the underlying device files
http://people.freedesktop.org/~david/gnome-disks-mdraid-split-brain.png
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
... and allow user to stop (via MDRaid.Stop()) and manipulate those
(via Filesystem.Mount(), Block.Format() etc). This is similar to what
we do for e.g. loop devices. The result is that the user is no longer
interrupted by password dialogs as e.g. pointed out in my Google+ post
here
https://plus.google.com/110773474140772402317/posts/TPHVtY7myks
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
This persistent and unique id is useful for a bunch of things, for
example Disks' benchmark dialog can use it as the filename for saving
benchmarking data for a block device (Disks is currently deriving the
filename from looking at symlinks).
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Provide getter methods instead. This breaks library ABI (see
gnome-disk-utility for the required changes) but that's fine since
we're on an unstable branch.
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Right now we only support devices connected via USB but in the future
we can add support for other interconnects.
Also, since this operation may affect multiple drives, we also
introduce a Drive:SiblingId property so applications can do the right
thing.
http://people.freedesktop.org/~david/gnome-disks-power-off-drive-1.png
http://people.freedesktop.org/~david/gnome-disks-power-off-drive-2.png
http://people.freedesktop.org/~david/gnome-disks-power-off-drive-3.png
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
If this option is set to TRUE, we'll set the _natural_ partition type
for the requested filesystem, if one is available. For example, if
formatting a GPT partition with a FAT filesystem, the Microsoft Basic
Data partition type will be chosen; similar, if formatting a DOS
partition with a Ext4 filesystem then partition type 0x83 is chosen.
This feature was requested here
https://bugzilla.gnome.org/show_bug.cgi?id=685871
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
This is essentially a GUdevDevice but with extra information such as
the probed ATA IDENTIFY data and, in the future, anything else we
might need.
The big idea here is that we want to depend _less_ on udev for
peripheral things that doesn't make sense to store in the udev
database, such as the properties in [1]. The win here is
a. We can simplify ata_id somewhat - it still needs to extract serial
numbers, WWNs etc. (because those are needed for symlinks in the
/dev/disk/by-* hierarchy) but it does not need to extract and
print what is in e.g. [1].
b. If we need information in udisks from e.g. the ATA IDENTIFY data
we don't need to add it to ata_id (or scsi_id or whatever), then
wait for a systemd release and then instruct distributors to
properly handle the dependency - instead, we can just access the
IDENTIFY data ourselves. Much simpler and less error prone.
Since probing is synchronous, we create a thread for this and whenever
there's an uevent we push a new request onto a work queue. The probing
thread will handle incoming requests sequentially (in the future we
could have a pool of worker threads and run things in parallel) and
pop the results back to the main thread, also sequentially.
The only probing we have right now is for IDENTIFY DEVICE and IDENTIFY
PACKET DEVICE for ATA disks. We can add more in the future.
Note that this patch doesn't actually achieve b. yet - upcoming
patches will move from reading udev properties (such as looking at the
value of ID_ATA_FEATURE_SET_PM) to extracting this from the IDENTIFY
data itself.
[1] :
# udevadm info -q all -n /dev/sda|grep ID_ATA_
E: ID_ATA_DOWNLOAD_MICROCODE=1
E: ID_ATA_FEATURE_SET_HPA=1
E: ID_ATA_FEATURE_SET_HPA_ENABLED=1
E: ID_ATA_FEATURE_SET_PM=1
E: ID_ATA_FEATURE_SET_PM_ENABLED=1
E: ID_ATA_FEATURE_SET_SECURITY=1
E: ID_ATA_FEATURE_SET_SECURITY_ENABLED=0
E: ID_ATA_FEATURE_SET_SECURITY_ENHANCED_ERASE_UNIT_MIN=2
E: ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN=2
E: ID_ATA_FEATURE_SET_SECURITY_FROZEN=1
E: ID_ATA_FEATURE_SET_SMART=1
E: ID_ATA_FEATURE_SET_SMART_ENABLED=1
E: ID_ATA_ROTATION_RATE_RPM=0
E: ID_ATA_SATA=1
E: ID_ATA_SATA_SIGNAL_RATE_GEN1=1
E: ID_ATA_SATA_SIGNAL_RATE_GEN2=1
E: ID_ATA_WRITE_CACHE=1
E: ID_ATA_WRITE_CACHE_ENABLED=1
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
This is to be consistent with array creation.
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Otherwise we can't tell people that it's deprecated.
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|
|
In the future we shall update it only in minor releases .0,
e.g. 2.0.0, 2.2.0, 2.4.0 and so on.
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
|