Skip to content

Commit b9ec009

Browse files
committed
add 'vsize' field in OverlayBDBSConfigUpper
Signed-off-by: Yifan Yuan <[email protected]>
1 parent 61cfa5c commit b9ec009

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/snapshot/storage.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ func (o *snapshotter) constructOverlayBDSpec(ctx context.Context, key string, wr
656656
configJSON.Upper = sn.OverlayBDBSConfigUpper{
657657
Index: o.overlaybdWritableIndexPath(id),
658658
Data: o.overlaybdWritableDataPath(id),
659+
Vsize: vsizeGB,
659660
}
660661
}
661662

pkg/types/types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,5 @@ type OverlayBDBSConfigUpper struct {
4242
Data string `json:"data,omitempty"`
4343
Target string `json:"target,omitempty"`
4444
GzipIndex string `json:"gzipIndex,omitempty"`
45+
Vsize int `json:"vsize,omitempty"`
4546
}

0 commit comments

Comments
 (0)