After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 648413 - sorting by size doesn't work for remote folders
sorting by size doesn't work for remote folders
Status: RESOLVED FIXED
Product: baobab
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Baobab Maintainers
Baobab Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-04-21 18:46 UTC by Oliver Gerlich
Modified: 2013-07-20 16:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix sorting for remote folders (711 bytes, patch)
2011-04-21 18:46 UTC, Oliver Gerlich
none Details | Review

Description Oliver Gerlich 2011-04-21 18:46:30 UTC
Created attachment 186446 [details] [review]
fix sorting for remote folders

When scanning a remote folder, clicking on the "Size" column header doesn't give meaningful sort order.

This happens with Baobab from latest Git as well as with Baobab 2.31.1 on Ubuntu 10.10.

To reproduce:
- start baobab
- go to Analyzer -> Scan Remote Folder...
- select Type: SSH, Server: localhost, Folder: /etc/X11; click Scan
- wait for scan to finish
- observe that result list is sorted by size, and is incorrectly sorted
- click on the "Size" column header and observe that entries are not sorted correctly
- click on "Usage" column header and observe that entries are sorted correctly

It appears that for remote folders, "allocated size" is set to 0 for each folder, yet sorting is still done by allocated size. Attached is a patch which fixes this.
Comment 1 Stefano Facchini 2013-07-20 16:26:21 UTC
This should be fixed by commit bef030edf73985564b01658b94682663d00c7601