Skip to content

Commit 93962ff

Browse files
committed
fix typos
1 parent 9eff164 commit 93962ff

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
@@ -108,7 +108,7 @@ func (APIImplementor) PartitionsExist(diskID string) (bool, error) {
108108
return false, fmt.Errorf("error checking presence of partitions on disk %s: %v, %v", diskID, out, err)
109109
}
110110
if len(out) > 0 {
111-
// disk has paritions in it
111+
// disk has partitions in it
112112
return true, nil
113113
}
114114
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
@@ -67,7 +67,7 @@ func (VolAPIImplementor) MountVolume(volumeID, path string) error {
6767
return nil
6868
}
6969

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

internal/server/disk/server.go

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

7474
klog.V(4).Infof("Checking if disk %s is partitioned", diskID)
75-
paritioned, err := s.hostAPI.PartitionsExist(diskID)
75+
partitioned, err := s.hostAPI.PartitionsExist(diskID)
7676
if err != nil {
7777
klog.Errorf("failed check PartitionsExist %v", err)
7878
return response, err
7979
}
80-
if !paritioned {
80+
if !partitioned {
8181
klog.V(4).Infof("Creating partition on disk %s", diskID)
8282
err = s.hostAPI.CreatePartition(diskID)
8383
if err != nil {

0 commit comments

Comments
 (0)