Skip to content

Commit

Permalink
q-dev: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrbartman committed Jun 12, 2024
1 parent 9dec436 commit 00256e4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion qubes/ext/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,8 @@ def pre_attachment_internal(
'This device can be attached only read-only')

if not vm.is_running():
print("Not attach, not running", file=sys.stderr)
print(f"Can not attach device, qube {vm.name} is not running."
, file=sys.stderr)
return

if not isinstance(device, BlockDevice):
Expand Down
2 changes: 1 addition & 1 deletion qubes/tests/vm/qubesvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,7 @@ def test_600_libvirt_xml_hvm_pcidev_s0ix(self):
# even with meminfo-writer enabled, should have memory==maxmem
vm.features['service.meminfo-writer'] = True
assignment = qubes.device_protocol.DeviceAssignment(
vm, # this is violation of API, but for PCI the argument
vm, # this is a violation of API, but for PCI the argument
# is unused
'00_00.0',
devclass='pci',
Expand Down
4 changes: 2 additions & 2 deletions qubes/vm/qubesvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1629,9 +1629,9 @@ def is_memory_balancing_possible(self):
- have PCI devices
- balloon driver not present
We don't have reliable way to detect the second point, but good
We don't have a reliable way to detect the second point, but good
heuristic is HVM virt_mode (PV and PVH require OS support, and it does
include balloon driver) and lack of qrexec/meminfo-writer service
include the balloon driver) and lack of qrexec/meminfo-writer service
support (no qubes tools installed).
"""
if list(self.devices['pci'].get_assigned_devices()):
Expand Down

0 comments on commit 00256e4

Please sign in to comment.