Skip to content

Commit 2768ba0

Browse files
authored
Merge pull request #50 from windayski/fixtypo
fix typos
2 parents 7c0b32d + 93962ff commit 2768ba0

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

internal/os/disk/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (APIImplementor) PartitionsExist(diskID string) (bool, error) {
123123
return false, fmt.Errorf("error checking presence of partitions on disk %s: %v, %v", diskID, out, err)
124124
}
125125
if len(out) > 0 {
126-
// disk has paritions in it
126+
// disk has partitions in it
127127
return true, nil
128128
}
129129
return false, nil

internal/os/smb/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (APIImplementor) IsSmbMapped(remotePath string) (bool, error) {
3030
return true, nil
3131
}
3232

33-
// NewSmbLink - creates a direcotry symbolic link to the remote share.
33+
// NewSmbLink - creates a directory symbolic link to the remote share.
3434
// The os.Symlink was having issue for cases where the destination was an SMB share - the container
3535
// runtime would complain stating "Access Denied". Because of this, we had to perform
3636
// this operation with powershell commandlet creating an directory softlink.

internal/os/volume/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (VolAPIImplementor) MountVolume(volumeID, path string) error {
7070
return nil
7171
}
7272

73-
// DismountVolume - unmounts the volume path by removing the patition access path
73+
// DismountVolume - unmounts the volume path by removing the partition access path
7474
func (VolAPIImplementor) DismountVolume(volumeID, path string) error {
7575
cmd := fmt.Sprintf("Get-Volume -UniqueId \"%s\" | Get-Partition | Remove-PartitionAccessPath -AccessPath %s", volumeID, path)
7676
out, err := runExec(cmd)

internal/server/disk/server.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ func (s *Server) PartitionDisk(context context.Context, request *internal.Partit
7575
}
7676

7777
klog.V(4).Infof("Checking if disk %s is partitioned", diskID)
78-
paritioned, err := s.hostAPI.PartitionsExist(diskID)
78+
partitioned, err := s.hostAPI.PartitionsExist(diskID)
7979
if err != nil {
8080
klog.Errorf("failed check PartitionsExist %v", err)
8181
return response, err
8282
}
83-
if !paritioned {
83+
if !partitioned {
8484
klog.V(4).Infof("Creating partition on disk %s", diskID)
8585
err = s.hostAPI.CreatePartition(diskID)
8686
if err != nil {

0 commit comments

Comments
 (0)