Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import hooking
- domxml = hooking.read_domxml()
- disks = domxml.getElementsByTagName('disk')
- for disk in disks:
- if disk.getAttribute('type') == 'file' and disk.getAttribute('device') == 'disk':
- driver = disk.getElementsByTagName('driver')[0]
- driver.setAttribute('io','native')
- hooking.write_domxml(domxml)
Advertisement
Add Comment
Please, Sign In to add comment