summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-08-24Rename BlockDevice interface to Blockgdbus-portDavid Zeuthen21-500/+501
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-24Move docs around a bitDavid Zeuthen8-17/+17
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-24Update to latest gdbus-codegen(1) toolDavid Zeuthen1-0/+33
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-17Fix use of unitialized variables discovered when building with -O2David Zeuthen3-5/+5
Gah Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-16Don't dereference a NULL pointerDavid Zeuthen1-3/+6
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-16Factor block devices into separate typesDavid Zeuthen22-1373/+1686
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-16Factor out drive functionality into three separate typesDavid Zeuthen13-1079/+1531
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-15Refine the libudev hackDavid Zeuthen1-9/+10
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-15Workaround get_usec_since_initialized() not always working in libudevDavid Zeuthen1-0/+14
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-15Use intialization time for sort orderDavid Zeuthen1-11/+3
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-15Add a sorting key for drivesDavid Zeuthen3-0/+24
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-15Fix drive lookup logic for partitionsDavid Zeuthen1-3/+9
Commit 609fcd3515942140c14561e516923af70a6d4128 accidentally broke setting the BlockDevice:Drive for partitions. Fix it. Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-13Associate dm-multipath devices with the correct driveDavid Zeuthen3-22/+74
http://people.freedesktop.org/~david/palimpsest-multipath.png Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-13Fix drive lookup logicDavid Zeuthen1-1/+1
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-13Don't leak fd while enumerating directoriesDavid Zeuthen1-0/+2
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-12Add work-around to identify firewire devices without serial/wwn as drivesDavid Zeuthen1-2/+19
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-12Update docsDavid Zeuthen1-0/+8
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-12Use /dev/mapper/$DM_NAME as fallback, if availableDavid Zeuthen1-7/+19
This ensures that PreferredDeviceFile will be /dev/mapper/sd_card instead of e.g. /dev/dm-3 if DM_NAME is "sd_card". Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-12Support /etc/crypttab for unlocking and locking LUKS devicesDavid Zeuthen3-7/+105
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-12Allow mounting/unmounting fstab devices without the 'user' or 'users' optionDavid Zeuthen13-80/+240
... by introducing a new org.freedesktop.udisks2.filesystem-nonuser-fstab polkit action. http://people.freedesktop.org/~david/palimpsest-nonuser-fstab-devices.png Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-12Revert "Use -T for eject(1) on optical drives"David Zeuthen2-29/+2
This causes failures on my optical drive that can't close its tray. We can probably do this by adding a Drive:CloseTray() method as well as a Drive:TrayIsOpen property... This reverts commit 51255b864c09390a96f49ed14a70916eb75b6456.
2011-08-11Use -T for eject(1) on optical drivesDavid Zeuthen2-2/+29
This enables the "eject" button in palimpsest to close the tray if it's opened already. Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-11Preserve mode_t of /etc/fstab and /etc/crypttab when updatingDavid Zeuthen1-14/+126
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-11Also consider the device file in addition to symlinksDavid Zeuthen1-10/+24
Otherwise things like /dev/sr0 in the /etc/{fstab,crypttab} files won't work. Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-11Add support for /etc/crypttabDavid Zeuthen16-58/+1573
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-10Also unmount filesystems when devices mounted via /etc/fstab disappearsDavid Zeuthen3-11/+75
But only if mounted via udisks. Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-09Add missing filesDavid Zeuthen4-0/+748
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-09Add facilities for adding/removing a block device to /etc/fstabDavid Zeuthen13-1/+687
http://people.freedesktop.org/~david/palimpsest-fstab-1.png http://people.freedesktop.org/~david/palimpsest-fstab-2.png Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-07Export SMART data for drives using the ATA protocolDavid Zeuthen11-23/+647
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-05Remove non-existant file from POTFILES.inDavid Zeuthen1-1/+0
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-04Add an Eject() method to the Drive interfaceDavid Zeuthen4-5/+161
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-04Add udisks_client_settle() and use it in udisksctl(1) to show device filesDavid Zeuthen4-7/+44
... instead of object paths. Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-04Add a @long_string option to udisks_util_get_part_type_for_display()David Zeuthen2-97/+117
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-04Add work arounds for missing udev properties for virtio-blk devicesDavid Zeuthen1-9/+42
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-01Allow locking LUKS devices that were manually unlockedDavid Zeuthen2-48/+51
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-01Allow unmounting stuff not mentioned in the mounted-fs fileDavid Zeuthen1-81/+67
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-01If a device is referenced in fstab, invoke mount/umount as the calling userDavid Zeuthen12-46/+352
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-01Add files missed in previous commitDavid Zeuthen2-0/+261
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-01Move docs around a bitDavid Zeuthen1-10/+10
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-01Move Linux swapspace implementation into separate typeDavid Zeuthen6-131/+22
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-07-26Fix ignore check for loop devicesDavid Zeuthen1-1/+1
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-07-26Fix up loop device authorizationsDavid Zeuthen3-39/+94
In particular, don't require authorization to remove a loop device you've set up yourself. Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-07-26Clean up loop devicesDavid Zeuthen2-5/+266
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-07-23Track loop devices set up in /run/udisks2/loopDavid Zeuthen8-30/+593
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-07-23Improve udisks_daemon_wait_for_object_sync() implementationDavid Zeuthen1-4/+74
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-07-22Add udisks_daemon_util_setup_by_user() and use it when mountingDavid Zeuthen4-1/+58
This way you won't be asked for polkit auth if you want to mount a device that you have just unlocked. Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-07-22Add a way to setup and delete loop devicesDavid Zeuthen14-55/+1024
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-07-20Add Manager D-Bus interface and a Linux implementationDavid Zeuthen11-6/+406
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-07-20udisksctl: Don't ask for passphrase when lockingDavid Zeuthen1-1/+2
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-07-19Fix polkit description for filesystem-unmount-othersDavid Zeuthen1-1/+1
Signed-off-by: David Zeuthen <davidz@redhat.com>