blockdev: always compile in -drive aio= parsing
CONFIG_LINUX_AIO is an implementation detail of raw-posix.c. Don't mention CONFIG_LINUX_AIO in blockdev.c. Let block drivers decide what to do with BDRV_O_NATIVE_AIO. They may print an error if it is unsupported. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
		
							parent
							
								
									1501ecc1d8
								
							
						
					
					
						commit
						04d71322c1
					
				@ -411,7 +411,6 @@ static BlockBackend *blockdev_init(const char *file, QDict *bs_opts,
 | 
				
			|||||||
        bdrv_flags |= BDRV_O_NO_FLUSH;
 | 
					        bdrv_flags |= BDRV_O_NO_FLUSH;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef CONFIG_LINUX_AIO
 | 
					 | 
				
			||||||
    if ((buf = qemu_opt_get(opts, "aio")) != NULL) {
 | 
					    if ((buf = qemu_opt_get(opts, "aio")) != NULL) {
 | 
				
			||||||
        if (!strcmp(buf, "native")) {
 | 
					        if (!strcmp(buf, "native")) {
 | 
				
			||||||
            bdrv_flags |= BDRV_O_NATIVE_AIO;
 | 
					            bdrv_flags |= BDRV_O_NATIVE_AIO;
 | 
				
			||||||
@ -422,7 +421,6 @@ static BlockBackend *blockdev_init(const char *file, QDict *bs_opts,
 | 
				
			|||||||
           goto early_err;
 | 
					           goto early_err;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if ((buf = qemu_opt_get(opts, "format")) != NULL) {
 | 
					    if ((buf = qemu_opt_get(opts, "format")) != NULL) {
 | 
				
			||||||
        if (is_help_option(buf)) {
 | 
					        if (is_help_option(buf)) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user