Bug 885133
Summary: | no notification when unmounting external HDDs and data are still not synced | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Kamil Páral <kparal> | ||||||||
Component: | nautilus | Assignee: | Tomáš Bžatek <tbzatek> | ||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
Severity: | unspecified | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | 18 | CC: | alexl, artkun, awilliam, bnocera, ccecchi, davidz, mclasen, mishu, robatino, samuel-rhbugs, tbzatek, tsmetana | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | AcceptedBlocker | ||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2012-12-15 03:14:34 UTC | Type: | Bug | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Bug Depends On: | |||||||||||
Bug Blocks: | 752661 | ||||||||||
Attachments: |
|
Description
Kamil Páral
2012-12-07 14:59:11 UTC
Discussed at 2012-12-10 blocker review meeting: http://meetbot.fedoraproject.org/fedora-bugzappers/2012-12-10/f18final-blocker-review-3.2012-12-10-17.13.log.txt . Accepted as a blocker per criterion "All known bugs that can cause corruption of user data must be fixed or documented at Common F18 bugs". Desktop team, please advise us ASAP of your position on this - is it something you're happy to fix along the lines used for flash drives, or do we need to have a big debate about this again? :) Thanks. (In reply to comment #0) > I'm very sorry I discovered this so late in the cycle. Nice Christmas present! > With regards to the removable media bit (RMB): > * I have tested 5 different brands of flash drives, all have RMB set (and > therefore are safe to use). > * I have tested 3 different brands of external HDDs (Western Digital, > Seagate and Transcend), none of them has RMB set (and therefore are unsafe > to use). In bug 819492 comment 72 - 74 we also have some further mediated > confirmation from other people. > * I have tested an internal SATA drive connected to a PC using a SATA<->USB > converter. It doesn't have RMB set (and therefore is unsafe to use). I believe it's all about removable media detection and classification. Could you please attach outputs of `gvfs-mount -li` and `udisks --dump` for both types of devices? (can be connected simultaneously) That would show us more. Created attachment 661459 [details]
gvfs-mount -li
Here we go. /dev/sdb is the flash drive, /dev/sdc is the external HDD
Created attachment 661460 [details]
udisks --dump
(In reply to comment #4) > Created attachment 661460 [details] > udisks --dump No, that's from udisks 1.x (which ideally wouldn't even be installed but some dependent projects are too slow to port to 2.x unfortunately). These days GNOME uses udisks 2.x (RPM: udisks2) so that's what you should be trying to debug. This page http://www.freedesktop.org/wiki/Software/udisks shows you what stuff information to gather (output of 'udisksctl dump', basically). As for the problem at hand, please check if "umount /dev/sdc" does what you expect, e.g. block until all data is written to disk (if it doesn't the problem isn't a gvfs or udisks problem.) I just tested this. I get the notification if I unmount from gnome-shell (from the message tray), but I don't get it with Nautilus. Reporter: please see if you get the expected behavior when unmounting from gnome-shell. So I think GVfs is fine and this is a problem with Nautilus (or maybe the GtkMountOperation proxying to the shell). Either way, you want Cosimo involved. Adding him as Cc. Created attachment 661504 [details]
udisksctl dump
(In reply to comment #6) > As for the problem at hand, please check if "umount /dev/sdc" does what you > expect, e.g. block until all data is written to disk (if it doesn't the > problem isn't a gvfs or udisks problem.) umount waits until the data is synced. But the unmount icon disappears from Nautilus immediately after running the command. (In reply to comment #7) > I just tested this. I get the notification if I unmount from gnome-shell > (from the message tray), but I don't get it with Nautilus. Reporter: please > see if you get the expected behavior when unmounting from gnome-shell. > > So I think GVfs is fine and this is a problem with Nautilus (or maybe the > GtkMountOperation proxying to the shell). Either way, you want Cosimo > involved. Adding him as Cc. Yes you are right. Unmounting from gnome-shell message tray triggers the warning "still writing data". Reassigning to Nautilus. (In reply to comment #9) > Unmounting from gnome-shell message tray triggers the > warning "still writing data". Reassigning to Nautilus. OK, so, basically, from the gnome-shell you get the same behavior no matter if it's a HDD or a USB stick, right? (e.g. the value of 'removable' in sysfs doesn't matter) (In reply to comment #10) Yes, gnome-shell systray warns me always regardless of media type (flash drive or external HDD) or RMB. Nautilus warns me just for flash drives (RMB=1). (In reply to comment #11) > (In reply to comment #10) > Yes, gnome-shell systray warns me always regardless of media type (flash > drive or external HDD) or RMB. Nautilus warns me just for flash drives > (RMB=1). OK. The difference in behavior probably has to do with timing of the uevents, e.g. the underlying GMount is removed while the operation is pending if RMB=1, and after otherwise. Either way, looks like it's possible to fix Nautilus so it works the same way as the Shell. This is indeed a Nautilus bug; I fixed it upstream now [1]. A Fedora package update including the patch is now building. [1] http://git.gnome.org/browse/nautilus/commit/?id=463e8d1b1922474e4cf591a3029ea813804bd3e7 nautilus-3.6.3-3.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/nautilus-3.6.3-3.fc18 Package nautilus-3.6.3-3.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing nautilus-3.6.3-3.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-20187/nautilus-3.6.3-3.fc18 then log in and leave karma (feedback). Great job, Cosimo, it is fixed. Cosimo, I have created bug 886435 to cover this issue also in Fedora 17. Could you please push the patch also the our current stable release? It is affected as well and people will continue to use it for a long time. Thanks a lot. Is anything can be done to have the same notification in Cinnamon? In F17 we don't have any kind of notification at all, no matter if we are using Nautilus or Cinnamon applet to eject the drive. Same thing in F18, which is very confusing especially for new users. Sorry for my English. nautilus-3.6.3-3.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report. |