mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-12 08:58:17 +03:00
swap type is a disk for KVM
git-svn-id: http://svn.opennebula.org/one/trunk@262 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
parent
c3ac0bdadf
commit
e134e0dfe2
@ -270,13 +270,22 @@ int LibVirtDriver::deployment_description(
|
||||
|
||||
if ( ro == "YES" )
|
||||
{
|
||||
readonly = true;
|
||||
readonly = true;
|
||||
}
|
||||
}
|
||||
|
||||
if ( type.empty() )
|
||||
{
|
||||
type = "disk";
|
||||
type = "disk";
|
||||
}
|
||||
else
|
||||
{
|
||||
string type_=type;
|
||||
transform(type_.begin(),type_.end(),type_.begin(),(int(*)(int))toupper);
|
||||
if ( type_ == "SWAP" )
|
||||
{
|
||||
type="disk";
|
||||
}
|
||||
}
|
||||
|
||||
file << "\t\t<disk type='file' device='" << type << "'>" << endl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user