Skip to content

Commit 2cf6663

Browse files
authored
Merge pull request #1103 from askervin/5CD_export_linuxblockiodevice
specs-go: export LinuxBlockIODevice
2 parents b5677b8 + 84251a4 commit 2cf6663

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

specs-go/config.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ type LinuxInterfacePriority struct {
252252
Priority uint32 `json:"priority"`
253253
}
254254

255-
// linuxBlockIODevice holds major:minor format supported in blkio cgroup
256-
type linuxBlockIODevice struct {
255+
// LinuxBlockIODevice holds major:minor format supported in blkio cgroup
256+
type LinuxBlockIODevice struct {
257257
// Major is the device's major number.
258258
Major int64 `json:"major"`
259259
// Minor is the device's minor number.
@@ -262,7 +262,7 @@ type linuxBlockIODevice struct {
262262

263263
// LinuxWeightDevice struct holds a `major:minor weight` pair for weightDevice
264264
type LinuxWeightDevice struct {
265-
linuxBlockIODevice
265+
LinuxBlockIODevice
266266
// Weight is the bandwidth rate for the device.
267267
Weight *uint16 `json:"weight,omitempty"`
268268
// LeafWeight is the bandwidth rate for the device while competing with the cgroup's child cgroups, CFQ scheduler only
@@ -271,7 +271,7 @@ type LinuxWeightDevice struct {
271271

272272
// LinuxThrottleDevice struct holds a `major:minor rate_per_second` pair
273273
type LinuxThrottleDevice struct {
274-
linuxBlockIODevice
274+
LinuxBlockIODevice
275275
// Rate is the IO rate limit per cgroup per device
276276
Rate uint64 `json:"rate"`
277277
}

0 commit comments

Comments
 (0)