Commit c99a3cc0 authored by Manuel Franceschini's avatar Manuel Franceschini
Browse files

Fixes small spell mistakes and comments

parent 81010134
......@@ -646,10 +646,12 @@ def CreateBlockDevice(disk, size, owner, on_primary, info):
"""Creates a block device for an instance.
Args:
bdev: a ganeti.objects.Disk object
size: the size of the physical underlying devices
do_open: if the device should be `Assemble()`-d and
`Open()`-ed after creation
disk: a ganeti.objects.Disk object
size: the size of the physical underlying device
owner: a string with the name of the instance
on_primary: a boolean indicating if it will be created on the primary
node or not
info: string
Returns:
the new unique_id of the device (this can sometime be
......@@ -1539,7 +1541,7 @@ class HooksRunner(object):
class DevCacheManager(object):
"""Simple class for managing a chache of block device information.
"""Simple class for managing a cache of block device information.
"""
_DEV_PREFIX = "/dev/"
......
......@@ -395,12 +395,11 @@ class LogicalVolume(BlockDev):
self._lv_name = new_name
self.dev_path = "/dev/%s/%s" % (self._vg_name, self._lv_name)
def Attach(self):
"""Attach to an existing LV.
This method will try to see if an existing and active LV exists
which matches the our name. If so, its major/minor will be
which matches our name. If so, its major/minor will be
recorded.
"""
......
......@@ -3756,7 +3756,7 @@ class LUReplaceDisks(LogicalUnit):
# ok, we created the new LVs, so now we know we have the needed
# storage; as such, we proceed on the target node to rename
# old_lv to _old, and new_lv to old_lv; note that we rename LVs
# using the assumption than logical_id == physical_id (which in
# using the assumption that logical_id == physical_id (which in
# turn is the unique_id on that node)
# FIXME(iustin): use a better name for the replaced LVs
......
......@@ -104,8 +104,7 @@ class Processor(object):
"""Execute an opcode.
Args:
- cfg: the configuration in which we execute this opcode
- opcode: the opcode to be executed
op: the opcode to be executed
"""
if not isinstance(op, opcodes.OpCode):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment