[yast-commit] r49818 - /trunk/storage/storage/src/inst_custom_part.ycp
Author: aschnell Date: Thu Aug 7 14:57:49 2008 New Revision: 49818 URL: http://svn.opensuse.org/viewcvs/yast?rev=49818&view=rev Log: - removed obsolete code Modified: trunk/storage/storage/src/inst_custom_part.ycp Modified: trunk/storage/storage/src/inst_custom_part.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/inst_custom_part.ycp?rev=49818&r1=49817&r2=49818&view=diff ============================================================================== --- trunk/storage/storage/src/inst_custom_part.ycp (original) +++ trunk/storage/storage/src/inst_custom_part.ycp Thu Aug 7 14:57:49 2008 @@ -2160,82 +2160,6 @@ } } - boolean ask_reread = true; - - ///////////////////////////////////////////////////////////// - // Delete partition table and disk label - ///////////////////////////////////////////////////////////// - - if( Arch::s390 () && ret==`dasdfmt ) - { - string id = (string)UI::QueryWidget(`id(`table), `CurrentItem); - map disk = tg[id]:$[]; - - y2milestone( "dasdfmt disk:%1", id ); - - if( haskey( tg, id ) && search( id, "/dev/dasd")==0 ) - { - if( !disk["dasdfmt"]:false) - { - // popup text %1 is replaced by a dasd name e.g. /dev/dasda - boolean yn = Popup::YesNo(sformat( -_("Running dasdfmt deletes all data on the disk. -Really execute dasdfmt on disk %1? -"),id)); - y2milestone( "yn=%1", yn ); - if( yn ) - { - Storage::InitializeDisk( id, true ); - } - } - else - { - Popup::Message( _("The disk is no longer marked for dasdfmt. - -Partitions currently present on this disk are again -displayed. -") ); - Storage::InitializeDisk( id, false ); - } - } - else - { - // popup text - Popup::Error( _("No DASD disk selected. -Select the DASD disk on which dasdfmt should be executed.")); - } - } - - if( ret==`iscsi ) - { - boolean changed = - !Storage::EqualBackupStates( "custom_part", "", true ); - if( changed ) - { - // popup text - if( Popup::YesNo(_("Calling iSCSI configuration cancels all current changes. -Really do this?"))) - changed = false; - } - - if( !changed ) - { - if( !Mode::normal() || Package::InstallAll( ["yast2-iscsi-client"] )) - { - WFM::call( "iscsi-client" ); - UI::OpenDialog( `opt(`decorated), - `VBox( - `VSpacing(1), - `HBox(`HSpacing(1), - `Label(_("Rereading disk information...")), - `HSpacing(1)), - `VSpacing(1))); - Storage::ReReadTargetMap(); - UI::CloseDialog(); - } - } - } - ///////////////////////////////////////////////////////////// // End of Actions, Now check the returncode ///////////////////////////////////////////////////////////// -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org