Author: fehr Date: Tue Mar 13 15:16:00 2012 New Revision: 67617 URL: http://svn.opensuse.org/viewcvs/yast?rev=67617&view=rev Log: warn about slowness when resizing mounted fs by more than 50Gig (bnc#749946) Modified: trunk/storage/package/yast2-storage.changes trunk/storage/storage/src/include/ep-dialogs.ycp Modified: trunk/storage/package/yast2-storage.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/package/yast2-storage.changes?rev=67617&r1=67616&r2=67617&view=diff ============================================================================== --- trunk/storage/package/yast2-storage.changes (original) +++ trunk/storage/package/yast2-storage.changes Tue Mar 13 15:16:00 2012 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Mar 13 15:15:28 CET 2012 - fehr@suse.de + +- warn about slowness when resizing mounted fs by more than 50Gig + (bnc#749946) + +------------------------------------------------------------------- Mon Mar 05 11:30:46 CET 2012 - aschnell@suse.de - allow equal-sign "=" in passwords (bnc#750306) Modified: trunk/storage/storage/src/include/ep-dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-dialogs.ycp?rev=67617&r1=67616&r2=67617&view=diff ============================================================================== --- trunk/storage/storage/src/include/ep-dialogs.ycp (original) +++ trunk/storage/storage/src/include/ep-dialogs.ycp Tue Mar 13 15:16:00 2012 @@ -771,6 +771,7 @@ UI::ChangeWidget(`id(`custom_size_input), `Value, Storage::KByteToHumanString(size_k)); symbol widget = nil; + boolean asked_big_resize = false; integer old_size_k = size_k; @@ -849,6 +850,24 @@ continue; } + if (!data["format"]:false && size(mountpoint)>0 && + !asked_big_resize && size_k-old_size_k >= 1024*1024*50 ) + { + asked_big_resize = true; + string txt = sformat( +_("You are extending a mounted filesystem by %1 Gigabyte. +This may be quite slow and can take hours. You might possibly want +to consider umounting the filesystem, which will increase speed of +resize task a lot."), (size_k-old_size_k)/(1024*1024) ); + boolean answ = Popup::YesNo( txt ); + y2milestone("ResizeDlg big_resize_while_mounted ret:%1", answ ); + if( answ ) + { + widget = `again; + continue; + } + } + switch (data["type"]:`unknown) { case `primary: -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org