mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-17 18:33:32 +09:00
Feature #1617: Minor edits, typos
This commit is contained in:
1 parent
94f90035fc
commit
2a5f302b35
5 files changed
+9
-9
No files matched your search
+3
-3
@@ -40,7 +40,7 @@ public:
|
||||
};
|
||||
|
||||
/**
|
||||
* Return the string representation of an DatastoreType
|
||||
* Return the string representation of a DatastoreType
|
||||
* @param ob the type
|
||||
* @return the string
|
||||
*/
|
||||
@@ -56,9 +56,9 @@ public:
|
||||
};
|
||||
|
||||
/**
|
||||
* Return the string representation of an DatastoreType
|
||||
* Return the string representation of a DatastoreType
|
||||
* @param str_type string representing the DatastoreTypr
|
||||
* @return the ImageType (defaults to IMAGE_DS)
|
||||
* @return the DatastoreType (defaults to IMAGE_DS)
|
||||
*/
|
||||
static DatastoreType str_to_type(string& str_type);
|
||||
|
||||
|
||||
+3
-3
@@ -38,9 +38,9 @@ public:
|
||||
OS = 0, /** < Base OS image */
|
||||
CDROM = 1, /** < An ISO9660 image */
|
||||
DATABLOCK = 2, /** < User persistent data device */
|
||||
KERNEL = 3, /** < Context, kernels and initrd files */
|
||||
RAMDISK = 4, /** < Context, kernels and initrd files */
|
||||
CONTEXT = 5 /** < Context, kernels and initrd files */
|
||||
KERNEL = 3, /** < Kernel files */
|
||||
RAMDISK = 4, /** < Initrd files */
|
||||
CONTEXT = 5 /** < Context files */
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -212,7 +212,7 @@ error_types_missmatch_file:
|
||||
|
||||
error_types_missmatch_image:
|
||||
oss << "IMAGES of type KERNEL, RAMDISK and CONTEXT cannot be registered"
|
||||
" in a IMAGE_DS datastore";
|
||||
" in an IMAGE_DS datastore";
|
||||
goto error_common;
|
||||
|
||||
error_duplicated:
|
||||
|
||||
@@ -270,7 +270,7 @@ void ImageClone::request_execute(
|
||||
case Image::CONTEXT:
|
||||
failure_response(ACTION,
|
||||
allocate_error("KERNEL, RAMDISK and CONTEXT files cannot be "
|
||||
"clonned."), att);
|
||||
"cloned."), att);
|
||||
img->unlock();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -652,7 +652,7 @@ void VirtualMachineSaveDisk::request_execute(xmlrpc_c::paramList const& paramLis
|
||||
case Image::RAMDISK:
|
||||
case Image::CONTEXT:
|
||||
failure_response(INTERNAL,
|
||||
request_error("Cannot save_as image of type FILE", ""),
|
||||
request_error("Cannot save_as image of type " + Image::type_to_str(type), ""),
|
||||
att);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user