Merge pull request #17462 from LK4D4/fix_device_tool
Fix docker-device-tool Upstream-commit: 965706245b702c08d23ce7da2e91440ccec74726 Component: engine
This commit is contained in:
@@ -73,7 +73,7 @@ func main() {
|
||||
args := flag.Args()
|
||||
|
||||
home := path.Join(*root, "devicemapper")
|
||||
devices, err := devmapper.NewDeviceSet(home, false, nil)
|
||||
devices, err := devmapper.NewDeviceSet(home, false, nil, nil, nil)
|
||||
if err != nil {
|
||||
fmt.Println("Can't initialize device mapper: ", err)
|
||||
os.Exit(1)
|
||||
@@ -105,9 +105,9 @@ func main() {
|
||||
fmt.Println("Can't get device info: ", err)
|
||||
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("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("Mapped Sectors: %d\n", status.MappedSectors)
|
||||
fmt.Printf("Highest Mapped Sector: %d\n", status.HighestMappedSector)
|
||||
|
||||
Reference in New Issue
Block a user