Replace tabs with spaces.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
Ewan Mellor committed 2007-03-23 11:11:41 +00:00
1 parent 761bc92430
commit 69869aa632
27 files changed
+85 -86

No files matched your search

+7 -7
View File
@@ -101,10 +101,10 @@ class SrvDomain(SrvDir):
def do_dump(self, _, req):
fn = FormFn(self.xd.domain_dump,
[['dom', 'int'],
['file', 'str'],
['live', 'int'],
['crash', 'int']])
[['dom', 'int'],
['file', 'str'],
['live', 'int'],
['crash', 'int']])
return fn(req.args, {'dom': self.dom.domid})
def op_migrate(self, op, req):
@@ -139,9 +139,9 @@ class SrvDomain(SrvDir):
[['dom', 'int'],
['period', 'int'],
['slice', 'int'],
['latency', 'int'],
['extratime', 'int'],
['weight', 'int']])
['latency', 'int'],
['extratime', 'int'],
['weight', 'int']])
val = fn(req.args, {'dom': self.dom.domid})
return val
+7 -7
View File
@@ -74,7 +74,7 @@ class PCIQuirk:
self.pci_quirks_config = pci_quirks_config
except Exception, ex:
raise XendError("Reading config file %s: %s" %
(QUIRK_CONFIG_FILE, str(ex)))
(QUIRK_CONFIG_FILE, str(ex)))
else:
log.info("Config file does not exist: %s" % QUIRK_CONFIG_FILE)
self.pci_quirks_config = ['xend-pci-quirks']
@@ -83,7 +83,7 @@ class PCIQuirk:
for dev in devices:
ids = child_at(child(dev,'pci_ids'),0)
fields = child_at(child(dev,'pci_config_space_fields'),0)
if self.__matchPCIdev( ids ):
if self.__matchPCIdev( ids ):
log.info("Quirks found for PCI device [%s]" % self.devid)
return fields
@@ -93,11 +93,11 @@ class PCIQuirk:
def __sendQuirks(self):
for quirk in self.quirks:
log.debug("Quirk Info: %04x:%02x:%02x.%1x-%s" % (self.domain,
self.bus, self.slot, self.func, quirk))
self.bus, self.slot, self.func, quirk))
try:
f = file(QUIRK_SYSFS_NODE ,"w")
f.write( "%04x:%02x:%02x.%1x-%s" % (self.domain, self.bus,
self.slot, self.func, quirk) )
self.slot, self.func, quirk) )
f.close()
except Exception, e:
raise VmError("pci: failed to open/write/close quirks " +
@@ -118,13 +118,13 @@ class PCIQuirk:
self.pci_perm_dev_config = pci_perm_dev_config
except Exception, ex:
raise XendError("Reading config file %s: %s" %
(PERMISSIVE_CONFIG_FILE,str(ex)))
(PERMISSIVE_CONFIG_FILE,str(ex)))
else:
log.info("Config file does not exist: %s" % PERMISSIVE_CONFIG_FILE)
self.pci_perm_dev_config = ['xend-pci-perm-devs']
devices = child_at(child(pci_perm_dev_config, 'unconstrained_dev_ids'),0)
if self.__matchPCIdev( devices ):
if self.__matchPCIdev( devices ):
log.debug("Permissive mode enabled for PCI device [%s]" %
self.devid)
return True
@@ -133,7 +133,7 @@ class PCIQuirk:
return False
def __sendPermDevs(self):
if self.__devIsUnconstrained( ):
if self.__devIsUnconstrained( ):
log.debug("Unconstrained device: %04x:%02x:%02x.%1x" %
(self.domain, self.bus, self.slot, self.func))
try:
+1 -1
View File
@@ -732,7 +732,7 @@ def getDomains(domain_names, state, full = 0):
'state': state_str,
'cpu_time': dom_metrics['VCPUs_utilisation'],
'start_time': dom_metrics['start_time']})
doms_sxp.append(['domain'] + map2sxp(dom_rec))
doms_dict.append(dom_rec)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.