Skip to content

Commit

Permalink
Merge pull request #50 from windayski/fixtypo
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
k8s-ci-robot authored Sep 8, 2020
2 parents 7c0b32d + 93962ff commit 2768ba0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/os/disk/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (APIImplementor) PartitionsExist(diskID string) (bool, error) {
return false, fmt.Errorf("error checking presence of partitions on disk %s: %v, %v", diskID, out, err)
}
if len(out) > 0 {
// disk has paritions in it
// disk has partitions in it
return true, nil
}
return false, nil
Expand Down
2 changes: 1 addition & 1 deletion internal/os/smb/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (APIImplementor) IsSmbMapped(remotePath string) (bool, error) {
return true, nil
}

// NewSmbLink - creates a direcotry symbolic link to the remote share.
// NewSmbLink - creates a directory symbolic link to the remote share.
// The os.Symlink was having issue for cases where the destination was an SMB share - the container
// runtime would complain stating "Access Denied". Because of this, we had to perform
// this operation with powershell commandlet creating an directory softlink.
Expand Down
2 changes: 1 addition & 1 deletion internal/os/volume/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (VolAPIImplementor) MountVolume(volumeID, path string) error {
return nil
}

// DismountVolume - unmounts the volume path by removing the patition access path
// DismountVolume - unmounts the volume path by removing the partition access path
func (VolAPIImplementor) DismountVolume(volumeID, path string) error {
cmd := fmt.Sprintf("Get-Volume -UniqueId \"%s\" | Get-Partition | Remove-PartitionAccessPath -AccessPath %s", volumeID, path)
out, err := runExec(cmd)
Expand Down
4 changes: 2 additions & 2 deletions internal/server/disk/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ func (s *Server) PartitionDisk(context context.Context, request *internal.Partit
}

klog.V(4).Infof("Checking if disk %s is partitioned", diskID)
paritioned, err := s.hostAPI.PartitionsExist(diskID)
partitioned, err := s.hostAPI.PartitionsExist(diskID)
if err != nil {
klog.Errorf("failed check PartitionsExist %v", err)
return response, err
}
if !paritioned {
if !partitioned {
klog.V(4).Infof("Creating partition on disk %s", diskID)
err = s.hostAPI.CreatePartition(diskID)
if err != nil {
Expand Down

0 comments on commit 2768ba0

Please sign in to comment.