Add "unmount" option to DriveEject
authorMartin Pitt <martin.pitt@ubuntu.com>
Sun, 3 Apr 2011 22:07:03 +0000 (00:07 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Sun, 19 Jun 2011 18:10:44 +0000 (20:10 +0200)
commit1c7d933431e49ff6840a388eb23134633155a442
treed14e2dc4250f6a89b701dce128eba441908ec653
parent75b6187f77ca95ce435dd78f2ecb244af55e7faf
Add "unmount" option to DriveEject

DriveEject currently fails if there are mounted file systems on the drive. Add
an option "unmount" which will unmount any mounted file system on the drive to
be ejected first. The "eject" command conveniently already does this, so the
only thing we need to do here is to skip the "is mounted" check in
device_local_is_busy().
data/org.freedesktop.UDisks.Device.xml
src/device.c