mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Fix docker-device-tool
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
		
							parent
							
								
									54d42f4a10
								
							
						
					
					
						commit
						584bdaf5d9
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -73,7 +73,7 @@ func main() {
 | 
				
			||||||
	args := flag.Args()
 | 
						args := flag.Args()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	home := path.Join(*root, "devicemapper")
 | 
						home := path.Join(*root, "devicemapper")
 | 
				
			||||||
	devices, err := devmapper.NewDeviceSet(home, false, nil)
 | 
						devices, err := devmapper.NewDeviceSet(home, false, nil, nil, nil)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		fmt.Println("Can't initialize device mapper: ", err)
 | 
							fmt.Println("Can't initialize device mapper: ", err)
 | 
				
			||||||
		os.Exit(1)
 | 
							os.Exit(1)
 | 
				
			||||||
| 
						 | 
					@ -105,9 +105,9 @@ func main() {
 | 
				
			||||||
			fmt.Println("Can't get device info: ", err)
 | 
								fmt.Println("Can't get device info: ", err)
 | 
				
			||||||
			os.Exit(1)
 | 
								os.Exit(1)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		fmt.Printf("Id: %d\n", status.DeviceId)
 | 
							fmt.Printf("Id: %d\n", status.DeviceID)
 | 
				
			||||||
		fmt.Printf("Size: %d\n", status.Size)
 | 
							fmt.Printf("Size: %d\n", status.Size)
 | 
				
			||||||
		fmt.Printf("Transaction Id: %d\n", status.TransactionId)
 | 
							fmt.Printf("Transaction Id: %d\n", status.TransactionID)
 | 
				
			||||||
		fmt.Printf("Size in Sectors: %d\n", status.SizeInSectors)
 | 
							fmt.Printf("Size in Sectors: %d\n", status.SizeInSectors)
 | 
				
			||||||
		fmt.Printf("Mapped Sectors: %d\n", status.MappedSectors)
 | 
							fmt.Printf("Mapped Sectors: %d\n", status.MappedSectors)
 | 
				
			||||||
		fmt.Printf("Highest Mapped Sector: %d\n", status.HighestMappedSector)
 | 
							fmt.Printf("Highest Mapped Sector: %d\n", status.HighestMappedSector)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue