Skip to content

Commit ad94dad

Browse files
committed
correct codespell errors in the imported library
Signed-off-by: Humble Chirammal <[email protected]>
1 parent 5c802c4 commit ad94dad

File tree

6 files changed

+10
-280
lines changed

6 files changed

+10
-280
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

LICENSE

Lines changed: 0 additions & 201 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ issued.
2929

3030
## Intended Usage
3131

32-
Curently the intended usage of this library is simply to provide a golang package to standardize how plugins are implementing
33-
iscsi connect and disconnect. It's not intended to be a "service", although that's a possible next step. It's currenty been
32+
Currently, the intended usage of this library is simply to provide a golang
33+
package to standardize how plugins are implementing
34+
iscsi connect and disconnect. It's not intended to be a "service",
35+
although that's a possible next step. It's currently been
3436
used for plugins where iscsid is installed in containers only, as well as designs where it uses the nodes iscsid. Each of these
3537
approaches has their own pros and cons. Currently, it's up to the plugin author to determine which model suits them best
3638
and to deploy their node plugin appropriately.

example/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ func main() {
4343
SecretsType: "chap"},
4444
// Lun is the lun number the devices uses for exports
4545
Lun: int32(*lun),
46-
// Number of times we check for device path, waiting for CheckInterval seconds inbetween each check (defaults to 10 if omitted)
46+
// Number of times we check for device path, waiting for CheckInterval seconds in between each check (defaults to 10 if omitted)
4747
RetryCount: 11,
48-
// CheckInterval is the time in seconds to wait inbetween device path checks when logging in to a target
48+
// CheckInterval is the time in seconds to wait in between device path checks when logging in to a target
4949
CheckInterval: 1,
5050
}
5151

5252
// Now we can just issue a connection request using our Connector
53-
// A succesful connection will include the device path to access our iscsi volume
53+
// A successful connection will include the device path to access our iscsi volume
5454
path, err := c.Connect()
5555
if err != nil {
5656
log.Printf("Error returned from c.Connect: %s", err.Error())

iscsi/iscsi.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var (
3030
sleep = time.Sleep
3131
)
3232

33-
// iscsiSession contains information avout an iSCSI session
33+
// iscsiSession contains information about an iSCSI session
3434
type iscsiSession struct {
3535
Protocol string
3636
ID int32
@@ -239,7 +239,7 @@ func getMultipathDevice(devices []Device) (*Device, error) {
239239
return multipathDevice, nil
240240
}
241241

242-
// Connect is for backward-compatiblity with c.Connect()
242+
// Connect is for backward-compatibility with c.Connect()
243243
func Connect(c Connector) (string, error) {
244244
return c.Connect()
245245
}
@@ -477,7 +477,7 @@ func GetSCSIDevices(devicePaths []string, strict bool) ([]Device, error) {
477477

478478
deviceInfo, err := lsblk(devicePaths, strict)
479479
if err != nil {
480-
debug.Printf("An error occured while looking info about SCSI devices: %v", err)
480+
debug.Printf("An error occurred while looking info about SCSI devices: %v", err)
481481
return nil, err
482482
}
483483

0 commit comments

Comments
 (0)