ACC SHELL

Path : /usr/share/YaST2/include/partitioning/
File Upload :
Current File : //usr/share/YaST2/include/partitioning/lvm_lib.ycp

/**
 * File:
 *   lvm_lib.ycp
 *
 * Module:
 *   LVM
 *
 * Summary:
 *  main lib for defines, which are not lv or pv specific
 *
 * Authors:
 *   mike <mike@suse.de>
 *
 * $Id: lvm_lib.ycp 56445 2009-03-27 13:28:59Z aschnell $
 *
 */

{
textdomain "storage";


//////////////////////////////////////////////////////////////////////
// get a list of all volume groups in the targetMap
    
list<string> get_vgs( map<string,map> targetMap )
{
    list<string> lvm_vg = [];
	
    foreach( string dev, map devmap, targetMap, {
	if ( devmap["type"]:`CT_UNKNOWN==`CT_LVM )
	    {
	    // add a found volume group
	    lvm_vg = add( lvm_vg, substring(dev, 5) ); 
	    }
	});
    return( lvm_vg );
};

}		 

ACC SHELL 2018