Re: Unmounting vs. ejecting



On Tue, 2010-10-12 at 12:23 +0200, Jannis Pohlmann wrote:
> Hey,
> 
> a while ago I ported the Xfce file manager Thunar to GIO. Today I took
> a quick look back at how I implemented unmounting/ejecting and I
> started wondering...
> 
> We have GVolume, GMount and GDrive. A GDrive may contain multiple
> GVolumes, each of them may have a GMount (if they are mounted). GDrives
> can be ejected, GVolumes can be ejected and GMounts can be unmounted as
> well as ejected.
> 
> I realize that ejecting means the media (be it a USB stick with
> multiple volumes or a CD) will be unavailable after the operation has
> finished. Ejecting a volume seems to have the same effect as
> ejecting the drive (at least that's what I experienced with my
> DVD drive). Unmounting a mount means all volumes on the media can still
> be used afterwards.
> 
> Now, in a modern file manager no one wants do think about all these
> options, right? You want to mount and you want to eject, where ejecting
> doesn't necessarily mean the media becomes unavailable. E.g. ejecting a
> volume on a USB stick with multiple volumes should technically only
> unmount that volume, not eject the entire USB stick.

Sorry for the late reply, been on paternity leave.

Yeah, the eject situation is kinda lame. Here is the canonical reference
for the situation:

https://bugzilla.gnome.org/show_bug.cgi?id=598690

I'm not very knowledgable about the details, you better ask davidz as he
did most of this work. I don't think he's on this list though.


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
       alexl redhat com            alexander larsson gmail com 
He's a jaded umbrella-wielding astronaut for the 21st century. She's a 
tortured hypochondriac traffic cop in the witness protection program. They 
fight crime! 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]