Skip to content

Commit 4e7fd98

Browse files
authored
Merge pull request kubernetes#81471 from ethan-daocloud/patch-11
cleanup: fix typos in rbd_util.go
2 parents 22dc60e + c718ba6 commit 4e7fd98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/volume/rbd/rbd_util.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ func rbdErrors(runErr, resultErr error) error {
295295
// 'rbd' utility builds a comma-separated list of monitor addresses from '-m' /
296296
// '--mon_host` parameter (comma, semi-colon, or white-space delimited monitor
297297
// addresses) and send it to kernel rbd/libceph modules, which can accept
298-
// comma-seprated list of monitor addresses (e.g. ip1[:port1][,ip2[:port2]...])
298+
// comma-separated list of monitor addresses (e.g. ip1[:port1][,ip2[:port2]...])
299299
// in their first version in linux (see
300300
// https://github.com/torvalds/linux/blob/602adf400201636e95c3fed9f31fba54a3d7e844/net/ceph/ceph_common.c#L239).
301301
// Also, libceph module chooses monitor randomly, so we can simply pass all
@@ -378,7 +378,7 @@ func (util *RBDUtil) AttachDisk(b rbdMounter) (string, error) {
378378
}
379379
}
380380

381-
// Evalute whether this device was mapped with rbd.
381+
// Evaluate whether this device was mapped with rbd.
382382
devicePath, mapped := waitForPath(b.Pool, b.Image, 1 /*maxRetries*/, false /*useNbdDriver*/)
383383

384384
// If rbd-nbd tools are found, we will fallback to it should the default krbd driver fail.
@@ -491,7 +491,7 @@ func (util *RBDUtil) DetachDisk(plugin *rbdPlugin, deviceMountPath string, devic
491491
klog.V(3).Infof("rbd: successfully unmap device %s", device)
492492

493493
// Currently, we don't persist rbd info on the disk, but for backward
494-
// compatbility, we need to clean it if found.
494+
// compatibility, we need to clean it if found.
495495
rbdFile := filepath.Join(deviceMountPath, "rbd.json")
496496
exists, err := utilpath.Exists(utilpath.CheckFollowSymlink, rbdFile)
497497
if err != nil {

0 commit comments

Comments
 (0)