dom0/qvm-usb: enabled -f option to qvm-usb (and cosmetic changes)
This commit is contained in:
		
							parent
							
								
									879cb2ea18
								
							
						
					
					
						commit
						95b93a5082
					
				| @ -23,9 +23,7 @@ | ||||
| from qubes.qubes import QubesVmCollection, QubesException | ||||
| #from qubes.qubesutils import block_list,block_attach,block_detach,block_detach_all,block_check_attached | ||||
| from qubes.qubesutils import usb_list,usb_check_attached | ||||
| #from qubes.qubesutils import kbytes_to_kmg, bytes_to_kmg | ||||
| from optparse import OptionParser | ||||
| #import subprocess | ||||
| import sys | ||||
| import os | ||||
| 
 | ||||
| @ -40,8 +38,8 @@ def main(): | ||||
|     parser.add_option ("-l", "--list", action="store_true", dest="do_list", default=False) | ||||
|     parser.add_option ("-a", "--attach", action="store_true", dest="do_attach", default=False) | ||||
|     parser.add_option ("-d", "--detach", action="store_true", dest="do_detach", default=False) | ||||
| #    parser.add_option ("-f", "--frontend", dest="frontend",  | ||||
| #                        help="Specify device name at destination VM [default: xvdi]") | ||||
|     parser.add_option ("-f", "--frontend", dest="frontend",  | ||||
|                         help="Specify device id at destination VM [default: first unused]") | ||||
| #    parser.add_option ("--no-auto-detach", dest="auto_detach", action="store_false", default=True, | ||||
| #                        help="Fail when device already connected to other VM") | ||||
|     parser.add_option ("--force-root", action="store_true", dest="force_root", default=False, | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Alexandre Bezroutchko
						Alexandre Bezroutchko