home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
boot
/
i386
/
root
/
usr
/
share
/
YaST2
/
include
/
storage
/
routines.ycp
Wrap
Text File
|
2006-11-29
|
603b
|
31 lines
/**
*
*/
{
global define string GetDeviceName( string disk, any partition )
``{
string ret = disk;
if( is( partition, integer ) )
{
if( find( disk, "/dev/cciss/" )==0 ||
find( disk, "/dev/ida/" )==0 ||
find( disk, "/dev/ataraid/" )==0 ||
find( disk, "/dev/etherd/" )==0 ||
find( disk, "/dev/rd/" )==0 )
{
ret = ret + "p";
}
ret = ret + sformat( "%1", partition );
}
else if( size( (string)partition )>0 )
{
ret = ret + "/" + (string)partition;
}
return( ret );
}
}