ACC SHELL
/**
* File:
* lvm_ui_dialogs.ycp
*
* Module:
* configuration of lvm: lib for the user interface
* - contains only dialogs
*
* Summary:
*
* Authors:
* mike <mike@suse.de>
*
*
* $Id: lvm_ui_dialogs.ycp 60237 2010-01-05 16:07:41Z aschnell $
*
*/
{
textdomain "storage";
import "Storage";
import "Popup";
include "partitioning/custom_part_dialogs.ycp";
include "partitioning/custom_part_lib.ycp";
include "partitioning/lvm_lv_lib.ycp";
define boolean HandleRemoveLv( map<string,map> targetMap, string id )
``{
boolean ret = false;
map disk = Storage::GetDisk( targetMap, id );
map Lv = Storage::GetPartition( targetMap, id );
if( size(Lv)==0 || Lv==nil || Lv["type"]:`primary!=`lvm )
{
// Popup text
Popup::Error(_("You can only remove logical volumes."));
}
else
{
// Popup text
string message = sformat( _("Remove the logical volume %1?"), id );
if( Popup::YesNo( message ))
{
ret = Storage::DeleteDevice(id);
}
}
y2milestone( "HandleRemoveLv ret:%1", ret );
return( ret );
}
}
ACC SHELL 2018