Bugzilla – Bug 113605
disk usage on windows partition is 0 during installation
Last modified: 2005-10-04 14:52:32 UTC
During installation, YaST incorrectly displays zero disk usage for windows partitions. The partition size was displayed correctly. It's a pretty disturbing feeling...
Please provide YaST2 log of installation, see: http://www.opensuse.org/index.php/Bug_Reporting_FAQ#YaST
Created attachment 48049 [details] YaST2 logs
yast2-storage does not provide any information about disk usage. AFAIK this data is determined in module SpaceCalculation.ycp, Jiri could you have a look.
Hmm, it seems to me that "used" is always initialized as 0 during installation (see SpaceCalculation::get_partition_info () function). So I guess that this bug has been there for several releases. Arvin, do you remember how it was supposed to work?
No, I can't remember. But after a short look I see that in EvaluateFreeSpace the .run.df agent is used. Without actually doing an installation I can't say more.
Mayb this is caused because YaST2 mount ntfs partitions readonly. No idea what .run.df does in this case. I would think it would be best to simply remove such partitions from the display during package installation. Since they are mounted readonly one cannot install anything on them anyway.
The problem is somewhere else: There are two ways to determine the space on the disks. One is EvaluateFreeSpace, and the other one is get_partition_info. The later is used only during fresh installation, and supposes all partitions will be formatted (which is of course wrong).
Fixed for 10.1.