Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(842)

Unified Diff: state/machine.go

Issue 12859043: Add an os-disk constraint
Patch Set: Add an os-disk constraint Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « state/constraints.go ('k') | state/state.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: state/machine.go
=== modified file 'state/machine.go'
--- state/machine.go 2013-08-07 18:02:26 +0000
+++ state/machine.go 2013-08-15 14:31:26 +0000
@@ -119,6 +119,7 @@
InstanceId instance.Id `bson:"instanceid"`
Arch *string `bson:"arch,omitempty"`
Mem *uint64 `bson:"mem,omitempty"`
+ RootDisk *uint64 `bson:"rootdisk,omitempty"`
CpuCores *uint64 `bson:"cpucores,omitempty"`
CpuPower *uint64 `bson:"cpupower,omitempty"`
TxnRevno int64 `bson:"txn-revno"`
@@ -133,6 +134,7 @@
}
hc.Arch = instData.Arch
hc.Mem = instData.Mem
+ hc.RootDisk = instData.RootDisk
hc.CpuCores = instData.CpuCores
hc.CpuPower = instData.CpuPower
return hc, nil
@@ -536,6 +538,7 @@
InstanceId: id,
Arch: characteristics.Arch,
Mem: characteristics.Mem,
+ RootDisk: characteristics.RootDisk,
CpuCores: characteristics.CpuCores,
CpuPower: characteristics.CpuPower,
}
« no previous file with comments | « state/constraints.go ('k') | state/state.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b