Bugzilla – Bug 399239
YaST's software installation modules should show disk space modification
Last modified: 2008-09-12 12:33:48 UTC
When you install or update a package using zypper, before to actually download and install it, zypper proposes a summary about the overall download size and about how much space will be occuped or freed after the operation. For example: The following packages are going to be upgraded: vlc-0.8.6h-4.1.i686 (Videolan) vlc-mozillaplugin-0.8.6h-4.1.i686 (Videolan) Overall download size: 6.7 M. After the operation, 1.1 M will be freed. On the contrary, sw_single and online_update modules do not show these informations except for the overall installation size of chosen packages during the actual installation of them (sw_single module only). I think it can be nice and useful if informations provided by zypper are also provided by installation modules of YaST inside the package selection window because when you have few free space inside the root partition, if you know how much space an update will occupy or free, then you can decide to update the package or not. Regards, Andrea
Yes, a summary of total bytes being installed *before* any download and actual installation is very useful. It should be possible: besides zypper itself, If I'm not wrong, SMART shows that size.
yes for opensuse 10.3 but is a beautiful even for opensuse 11 and up :-)
Yast displays diska usage in a special widget. Unfortunately it's quite hidden. See https://bugzilla.novell.com/attachment.cgi?id=218181 If you select a package for installation the disk usage should be updated. The problem is that it doesn't work with YUM sources, it work with standard (Yast) installation sources only (that's another bug). Is that enough to display the usage in the table? Or would you prefer something different?
Hi Ladislav, I'm not able to see the attachment, getting the message: "Access Denied You are not authorized to access bug #394544" Only the reporter is supposed to see that attachment?
Created attachment 222067 [details] Screenshot Oh, the bug is internal... I'm copying it here. Move the marked slider up, there is a disk usage table.
I'm still using openSUSE 10.3 and I know that in the bottom left corner of the sw_single module window there is a graphical representation of the current disks usage, but only now that you point out it I've noted that there is a variation on the disk usage (I've tried choosing a lot of packages from oss repo to see the variation). I think that this variation should be made more explicit and immediate to see, for example adding a new row to that table or somewhere else that clearly shows the variation, even if it is only 1M. Alternatively, I think it is enough to add a menu entry or a button (on the left of the Check button, for example) that shows a windows with the current disk usage variation (as happens for the Automatic Packages Changing, for example).
I'm not the reporter, but I maybe would prefer a popup window showing the total rpm size and installed sizes; the popup could open up when, in the combobox, the user choises "installation summary" item. In my opinion the disk usage table is not very visible - being possible to have it closed by the slider down.
Assuming the popup solution, it could also open up when clicking on the "accept" button. That dialog window should give to the user the option to abort the installation and go back to the packet choosing step.
I agree with robertmann about the popup window activated when the user chooses the "installation summary" item. I think this window can contain all informations about the installation: total rpm download size, total installed size, total disk usage variation. Possibly with the first two values divided between repositories (as happens inside the actual installation window of sw_single module for the installed size), if it is simple to obtain. In this case the "go back" button to choose packets is useless. On the contrary, I'm not sure about to open it when clicking on the "accept" button, because it triggers also the "Automatic packages changes" window and personally I do not think that two different popup windows are acceptable.
An evident disk space modification is also useful when removing packages. Now the user should take note of it before marking them for removal.
this is my idea how make the module yast" (i not love the pop-up messages like yast2 update repositories (style sus10.3) see the pic: http://img292.imageshack.us/my.php?image=yast2i2pz2.jpg Bye
It's a pop-up dialog so you get WARNED. And you only get warned once per program run. It only appears again if you significantly free up disk space and then begin to fill it again. As for putting it in the bottom left corner: We had that. In fact, it's still there, but pretty much hidden: Look at the dotted line at the bottom left corner. This is a sub-window resizer. If you move that up, you will see the good old disk usage display. Quite a number of people wanted this invisible by default; they say (I don't agree to that) that this makes this dialog more complex. So it was decided that we remove it. Please discuss this on one of the mailing lists; maybe there are more users in favour of getting it back. This used to be the not-so-intrusive warning before the pop-up. Not only the intrusive part is left. It wasn't my decision, and I don't like it one bit. But I got overruled.
(In reply to comment #13 from Stefan Hundhammer) > This used to be the not-so-intrusive warning before the pop-up. Not only the ^^^ Now > intrusive part is left. > > It wasn't my decision, and I don't like it one bit. But I got overruled.
Hi Stefan, reading your comment, I'm not sure to be been enough clear about what I and the other commentators (robertmann and andrea martin) propose. In particular, we would have a graphical way to know the exact (or at least a quite good approximation of) variation of the disk usage before the actually install/update/remove packages using yast2, in a similar way of the textual information provided by zypper. Not the current absolute disk usage, that is already provided and now hidden by default in openSUSE 11. In particular, the disk usage variation is (in some sense) already shown by yast, but it is so hidden and not evident that after more that two years of openSUSE usage, I discovered it only because Ladislav told me that it is present. As I told in previous comments, I'm still using openSUSE 10.3 so I can not verify what yast2 shows in openSUSE 11. So, our proposal is to integrate informations already provided about the absolute disk usage with a more explicit information about the disk usage variation. The proposed ways to show these informations are: - a popup triggered when Installation Summary is chosen - a popup triggered when Accept button is pushed - a popup activated by a new button - add them somewhere on the interface - a popup activated by a menu item - integrate them inside the already available box in the bottom left corner, even if they are logically different informations A common objection for the first two proposals is that automatic popups are not loved (and personally I agree with this objection) while an objection about the third proposal is that adding another button to the yast2 interface can make it heavier than now. The same objection applies to the forth proposal. On the contrary, I see no possible objections about the fifth and the sixth proposals. In fact: the actual yast2 interface remains unchanged (except for a new menu item, but it is shown only when such menu is opened); if someone does not want to see absolute disk usage and disk usage modification then (s)he does not have them; if someone wants such informations then (s)he has a way to obtain them. The only possible objection to this proposal is that someone can say: "I always want to be warned about disk usage modification!" Possible answers could be: I don't care about your objection, popup are usually not loved; or You have a way to obtain such information. Concluding, our proposal is not in contrast with the community decision to hide by default disk usage box but it can be integrated inside yast2 modules in such a way it can make happy everybody. I hope you can reconsider your decision about to will not fix such proposal after my precisations. Andrea
(In reply to comment #15 from Andrea Turrini) > In particular, the disk usage variation is (in some sense) already shown by > yast, but it is so hidden and not evident that after more that two years of > openSUSE usage, I discovered it only because Ladislav told me that it is > present. Eh - it was always there, clearly visible in the bottom left corner of the package selector (or in the bottom right corner of the pattern selector). It is only hidden since 11.0. > The proposed ways to show these informations are: > - a popup triggered when Installation Summary is chosen This is when a popup would be most inconvenient. Switching to another view should never trigger something unrelated that requires additional actions to get rid of. Just picture the situation: You swtich to the "Installation Summary" filter view, and the first thing you see is a popup with disk usage information. But this is not what you came here to see; you wanted to see the installation summary. So the first thing you have to do is to close that popup dialog. Later, when you might really be interested in that information, you'd have to figure out how to get it (i.e. how to open that popup). Bad idea. > - a popup triggered when Accept button is pushed You do get a disk space warning popup upon "Accept" if you are running out of disk space. But of course that should be the exceptional case; you have been warned before (you get the same disk space warning popup when you do something that makes you run out of disk space). This is just another confirmation. Open another popup by default upon "Accept"? Yet another one? We already have - Dependency problems (if there are any) - Disk space warning (if you run out of disk space) - Automatic changes (packages you got to satisfy dependencies) - Licenses (one popup for each license you need to accept) Even more popups? Most users complain even now about the number of popups at that point. We try to reduce that number, not introduce new ones. > - a popup activated by a new button There is no screen space for any new button. And it's already very complex; we try to reduce complexity here, not add new stuff. > - add them somewhere on the interface "Somewhere"? We'd need a three-dimensional screen for all the things we could add... ;-) > - a popup activated by a menu item A menu item would be the _only_ place to add anything like that. > - integrate them inside the already available box in the bottom left corner, > even if they are logically different informations ...whereupon I could be certain to receive a dozen bug reports that unrelated stuff should not be mixed together... been there, done that... ;-) The only thing I could imagine would be to add another column to that disk usage widget. Naming it would be quite difficult, though; I am pretty sure there would be complaints if we used something that is obvious only to people with a technical university degree (like "Delta"). I am not even sure if we have the data available. > A common objection for the first two proposals is that automatic popups are > not loved (and personally I agree with this objection) They are not only not loved, there is outright hatred for them. If anybody has a patch to do it like suggested above (add another column to the disk usage display), I will gladly apply it. But then, it would not help one bit if that entire disk space display remains hidden.
Hi Stefan >> - a popup activated by a menu item > A menu item would be the _only_ place to add anything like that. So why not apply this solution? We could label it "Disk space variation", or something like it; the "disk usage table widget" would remain unchanged. What do you think? Feel free to reopen this bug ;) ciao rob
I think that the reporter would like to see a display of disk space before and after the proposed installation and I suggest that it is displayed bottom left (where the old % usage used to be) when the installation summary screen is selected. That would present the opportunity to deselect packages if disk space usage is not to your liking. The bottom left is not used in the installation summary window. Where does zypper get its summary information from, it would be good if that could be displayed prior to accepting the installation.
Restoring old resolution
For interested people, see the opensuse mailing list, too: http://lists.opensuse.org/opensuse/2008-06/msg01659.html
Hi submitted a patch to the yast-devel mailing list. It will add a string to the tooltip showed when mouse over the "free" column, in the disk usage widget, for QT GUI. The string is " - Installing xxx MB" or " - Removing -xxx MB", per-mount point. That patch uses the same information handled by the bar and percentage; currently the detailed diskusage (per directory) is only supported for the susetags format (i.e. the install repositories). On the zypp-devel mailing list pointed out that some work on SVN is going to support also diskusage for XML repositories (e.g. the update repo and all buildservice repos are of that type).
Created attachment 239300 [details] Tooltip on the "Free space" column (in the disk usage widget) The patch adds the string " - Installing x MB" or " - Removing x MB" to the tooltip on the "Free space" column (in the disk usage widget) . The disk usage variation will work for the same packages that change the disk usage bar; the zypp-devel mailing list pointed out that the repositories with disk usage attribute are those soddisfying the command: dumpsolv /var/cache/zypp/solv/MYREPO/solv | grep diskusage See also http://lists.opensuse.org/yast-devel/2008-08/msg00059.html