Allow interaction when unmounting mounts
authorDavid Zeuthen <davidz@redhat.com>
Mon, 6 Jul 2009 01:59:38 +0000 (21:59 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 6 Jul 2009 01:59:38 +0000 (21:59 -0400)
commit99a1c47343d09ab0485c2377e5c8c53e847d84dd
tree93dba99fbd34d3780945eec38207273fd529d3dc
parentc85ff0c75004736d5c8798e3b47a47e0fc67ac70
Allow interaction when unmounting mounts

For details, see bug 587482. The new api:

 - Provide new _with_operation() variants of all unmount and eject methods

 - Add GMountOperation::show-processes signal
   - this can be used to show processes blocking an unmount operation

 - Deprecate all unmount and eject methods

 - Add g_drive_can_start_degraded() method
   - this is to avoid auto-starting degraded drives

 - Make g_drive_stop() resp. g_file_stop_mountable() take a GMountOperation
   - these ops were recently added and not yet public API so it's fine
     to change how they work

 - Provide a way to poll mountable files, e.g. g_file_poll_mountable()

 - Add some missing file attributes for mountable files
  - G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE
    - needed for the GDU Nautilus extensions to format a volume
  - G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED:
    - mimics g_drive_can_start_degraded()
  - G_FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL:
    - mimics g_drive_can_poll_for_media()
  - G_FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC
    - mimics g_drive_is_media_check_automatic()
16 files changed:
docs/reference/gio/Makefile.am
docs/reference/gio/gio-docs.xml
docs/reference/gio/gio-sections.txt
gio/gdrive.c
gio/gdrive.h
gio/gfile.c
gio/gfile.h
gio/gfileinfo.h
gio/gio-marshal.list
gio/gio.symbols
gio/gmount.c
gio/gmount.h
gio/gmountoperation.c
gio/gmountoperation.h
gio/gvolume.c
gio/gvolume.h