Revision 5c3d5dfd
b/lib/hypervisor/hv_kvm.py | ||
---|---|---|
1547 | 1547 |
@type text: string |
1548 | 1548 |
@param text: output of kvm --help |
1549 | 1549 |
@return: (version, v_maj, v_min, v_rev) |
1550 |
@raise L{errors.HypervisorError}: when the KVM version cannot be retrieved
|
|
1550 |
@raise errors.HypervisorError: when the KVM version cannot be retrieved
|
|
1551 | 1551 |
|
1552 | 1552 |
""" |
1553 | 1553 |
match = cls._VERSION_RE.search(text.splitlines()[0]) |
... | ... | |
1568 | 1568 |
"""Return the installed KVM version. |
1569 | 1569 |
|
1570 | 1570 |
@return: (version, v_maj, v_min, v_rev) |
1571 |
@raise L{errors.HypervisorError}: when the KVM version cannot be retrieved
|
|
1571 |
@raise errors.HypervisorError: when the KVM version cannot be retrieved
|
|
1572 | 1572 |
|
1573 | 1573 |
""" |
1574 | 1574 |
result = utils.RunCmd([constants.KVM_PATH, "--help"]) |
b/tools/lvmstrap | ||
---|---|---|
1 | 1 |
#!/usr/bin/python |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2006, 2007, 2011 Google Inc. |
|
4 |
# Copyright (C) 2006, 2007, 2011, 2012 Google Inc.
|
|
5 | 5 |
# |
6 | 6 |
# This program is free software; you can redistribute it and/or modify |
7 | 7 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
336 | 336 |
|
337 | 337 |
@param name: the device name, e.g. 'sda' |
338 | 338 |
@param devnum: the device number, e.g. 0x803 (2051 in decimal) for sda3 |
339 |
@raises L{SysconfigError}: in case of failure of the check
|
|
339 |
@raises SysconfigError: in case of failure of the check
|
|
340 | 340 |
|
341 | 341 |
""" |
342 | 342 |
path = "/dev/%s" % name |
Also available in: Unified diff