mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 18:43:34 +00:00
cleanup: fix spellcheck errors
fixed spellcheck errors caught in
CI.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 304462c7cc
)
This commit is contained in:
@ -68,9 +68,9 @@ func (ns *NodeServer) getMountState(path string) (mountState, error) {
|
||||
return msNotMounted, nil
|
||||
}
|
||||
|
||||
func findMountinfo(mountpoint string, mis []mountutil.MountInfo) int {
|
||||
for i := range mis {
|
||||
if mis[i].MountPoint == mountpoint {
|
||||
func findMountinfo(mountpoint string, minfo []mountutil.MountInfo) int {
|
||||
for i := range minfo {
|
||||
if minfo[i].MountPoint == mountpoint {
|
||||
return i
|
||||
}
|
||||
}
|
||||
@ -80,9 +80,9 @@ func findMountinfo(mountpoint string, mis []mountutil.MountInfo) int {
|
||||
|
||||
// Ensures that given mountpoint is of specified fstype.
|
||||
// Returns true if fstype matches, or if no such mountpoint exists.
|
||||
func validateFsType(mountpoint, fsType string, mis []mountutil.MountInfo) bool {
|
||||
if idx := findMountinfo(mountpoint, mis); idx > 0 {
|
||||
mi := mis[idx]
|
||||
func validateFsType(mountpoint, fsType string, minfo []mountutil.MountInfo) bool {
|
||||
if idx := findMountinfo(mountpoint, minfo); idx > 0 {
|
||||
mi := minfo[idx]
|
||||
|
||||
if mi.FsType != fsType {
|
||||
return false
|
||||
|
@ -165,7 +165,7 @@ func (r *Driver) Run(conf *util.Config) {
|
||||
r.cs.SetMetadata = conf.SetMetadata
|
||||
}
|
||||
|
||||
// configre CSI-Addons server and components
|
||||
// configure CSI-Addons server and components
|
||||
err = r.setupCSIAddonsServer(conf)
|
||||
if err != nil {
|
||||
log.FatalLogMsg(err.Error())
|
||||
|
@ -337,7 +337,7 @@ func InitializeNode(ctx context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// FscryptUnlock unlocks possilby creating fresh fscrypt metadata
|
||||
// FscryptUnlock unlocks possibly creating fresh fscrypt metadata
|
||||
// iff a volume is encrypted. Otherwise return immediately Calling
|
||||
// this function requires that InitializeFscrypt ran once on this node.
|
||||
func Unlock(
|
||||
|
Reference in New Issue
Block a user