Hide Forgot
Description of problem: when I attach 32 GB micro sdhc card via usb reader I can see its free space in properties in cake diagram but there is a sign Free space: unknown just above it.. it kind of weird .. it should be taken from the same info, shouldn't it? Version-Release number of selected component (if applicable): nautilus-2.28.4-18.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1.open micro sdhc formatted in android device 2.mount it via usb card reade 3.go into properties Actual results: in basic tab you should see both free space values identically Expected results: you can see total, used, free but also sign that free is unknown just above diagram Additional info:
Created attachment 551045 [details] screenshot
Yeah, this looks really stupid. Does `df` work as expected? And what about `gvfs-info -f <mount_point>`?
gvfs-info -f /media/F1BA-345D/ attributes: filesystem::size: 7962914816 filesystem::free: 4456239104 filesystem::type: msdos df -h Filesystem Size Used Avail Use% Mounted on /dev/sdb1 7.5G 3.3G 4.2G 45% /media/F1BA-345D this is my usb flash so I assume all removable media are affected
haha this is really funny .. when nautilus window is opened.. it shows correct Free space in both areas.. so insert flash, wait for automatic mount and nautilus opening, go into prefs via usb icon and now everything is fine.. close the window and the free space changes to unknown immediately.. what a magic!! :-)
Created attachment 567078 [details] The Patch (In reply to comment #4) > haha this is really funny .. when nautilus window is opened.. it shows correct > Free space in both areas.. so insert flash, wait for automatic mount and > nautilus opening, go into prefs via usb icon and now everything is fine.. close > the window and the free space changes to unknown immediately.. what a magic!! > :-) Yes, that was the problem. Nautilus shares instances of NautilusDirectory objects but there was not one until you opened a window. So we created a new instance on every free space display request but before it had chance to display the result, the object got unref'ed.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause: A short-lived internal object Consequence: Free space was not displayed in the volume Properties dialog Fix: A reference to other internal object has been placed in Result: Free space is now displayed properly
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0914.html