Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mars <paul.mars@canonical.com>
  • Loading branch information
upils committed Jul 16, 2024
1 parent 7a6546d commit 4f6540b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/statemachine/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ func TestFailedPopulatePreparePartitions(t *testing.T) {
osMkdir = os.Mkdir
}

// TestEmptyPartPopulatePreparePartitions performs a successful run a gadget.yaml that has,
// TestEmptyPartPopulatePreparePartitions performs a successful run with a gadget.yaml that has,
// besides regular partitions, one empty partition and makes sure that a partition image file
// has been created for it (LP: #1947863)
func TestEmptyPartPopulatePreparePartitions(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions internal/statemachine/state_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func (stateMachine *StateMachine) warnUsageOfSystemLabel(volumeName string, stru
}
}

// handleSystemSeed checks if the struture is a system-seed one and fixes the Label if needed
// handleSystemSeed checks if the structure is a system-seed one and fixes the Label if needed
func (stateMachine *StateMachine) handleSystemSeed(volume *gadget.Volume, structure *gadget.VolumeStructure, structIndex int) {
if structure.Role != gadget.SystemSeed {
return
Expand Down Expand Up @@ -548,10 +548,10 @@ func (stateMachine *StateMachine) writeMetadata(metadataFile string) error {
}

// handleContentSizes ensures that the sizes of the partitions are large enough and stores
// safe values in the stateMachine struct for use during make_image
// safe values in the stateMachine struct for use during make_disk
func (stateMachine *StateMachine) handleContentSizes(farthestOffset quantity.Offset, volumeName string) {
// store volume sizes in the stateMachine Struct. These will be used during
// the make_image step
// the make_disk step
calculated := quantity.Size((farthestOffset/quantity.OffsetMiB + 17) * quantity.OffsetMiB)
volumeSize, found := stateMachine.ImageSizes[volumeName]
if !found {
Expand Down

0 comments on commit 4f6540b

Please sign in to comment.