QemuOpts: make the drive id actually show up in "info block".
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
This commit is contained in:
		
							parent
							
								
									6d378185c6
								
							
						
					
					
						commit
						e23d9c4de1
					
				
							
								
								
									
										2
									
								
								vl.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								vl.c
									
									
									
									
									
								
							@ -2213,7 +2213,7 @@ DriveInfo *drive_init(QemuOpts *opts, void *opaque,
 | 
				
			|||||||
    /* init */
 | 
					    /* init */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    dinfo = qemu_mallocz(sizeof(*dinfo));
 | 
					    dinfo = qemu_mallocz(sizeof(*dinfo));
 | 
				
			||||||
    if ((buf = qemu_opt_get(opts, "id")) != NULL) {
 | 
					    if ((buf = qemu_opts_id(opts)) != NULL) {
 | 
				
			||||||
        dinfo->id = qemu_strdup(buf);
 | 
					        dinfo->id = qemu_strdup(buf);
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
        /* no id supplied -> create one */
 | 
					        /* no id supplied -> create one */
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user