Skip to content

Commit

Permalink
virtwrap: add slices field
Browse files Browse the repository at this point in the history
The slices option enable to migrate to a volume with a larger size. See:
  https://issues.redhat.com/browse/RHEL-4607

Signed-off-by: Alice Frosi <[email protected]>
  • Loading branch information
alicefr committed May 30, 2024
1 parent 29c23cf commit 7e15830
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pkg/virt-launcher/virtwrap/api/deepcopy_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions pkg/virt-launcher/virtwrap/api/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,16 @@ type FeatureEnabled struct {

type Shareable struct{}

type Slice struct {
Slice SliceType `xml:"slice,omitempty"`
}

type SliceType struct {
Type string `xml:"type,attr"`
Offset int64 `xml:"offset,attr"`
Size int64 `xml:"size,attr"`
}

type FeatureState struct {
State string `xml:"state,attr,omitempty"`
}
Expand Down Expand Up @@ -688,6 +698,7 @@ type DiskSource struct {
Name string `xml:"name,attr,omitempty"`
Host *DiskSourceHost `xml:"host,omitempty"`
Reservations *Reservations `xml:"reservations,omitempty"`
Slices []Slice `xml:"slices,omitempty"`
}

type DiskTarget struct {
Expand Down

0 comments on commit 7e15830

Please sign in to comment.