cleanup: resolve godot linter

This commit resolves godot linter issue
which says "Comment should end in a period (godot)".

Updates: #1586

Signed-off-by: Yati Padia <ypadia@redhat.com>
This commit is contained in:
Yati Padia
2021-07-08 20:29:34 +05:30
committed by mergify[bot]
parent 855f9080d1
commit 4a649fe17f
21 changed files with 44 additions and 44 deletions

View File

@ -25,10 +25,10 @@ import (
)
const (
// volIDVersion is the version number of volume ID encoding scheme
// volIDVersion is the version number of volume ID encoding scheme.
volIDVersion uint16 = 1
// RADOS namespace to store CSI specific objects and keys
// RADOS namespace to store CSI specific objects and keys.
radosNamespace = "csi"
)
@ -43,15 +43,15 @@ type Driver struct {
var (
// CSIInstanceID is the instance ID that is unique to an instance of CSI, used when sharing
// ceph clusters across CSI instances, to differentiate omap names per CSI instance
// ceph clusters across CSI instances, to differentiate omap names per CSI instance.
CSIInstanceID = "default"
// volJournal is used to maintain RADOS based journals for CO generated
// VolumeName to backing CephFS subvolumes
// VolumeName to backing CephFS subvolumes.
volJournal *journal.Config
// snapJournal is used to maintain RADOS based journals for CO generated
// SnapshotName to backing CephFS subvolumes
// SnapshotName to backing CephFS subvolumes.
snapJournal *journal.Config
)

View File

@ -27,13 +27,13 @@ const (
)
var (
// ErrCloneInProgress is returned when snapshot clone state is `in progress`
// ErrCloneInProgress is returned when snapshot clone state is `in progress`.
ErrCloneInProgress = errors.New("clone from snapshot is already in progress")
// ErrClonePending is returned when snapshot clone state is `pending`
// ErrClonePending is returned when snapshot clone state is `pending`.
ErrClonePending = errors.New("clone from snapshot is pending")
// ErrInvalidClone is returned when the clone state is invalid
// ErrInvalidClone is returned when the clone state is invalid.
ErrInvalidClone = errors.New("invalid clone state")
// ErrCloneFailed is returned when the clone state is failed.
@ -46,7 +46,7 @@ var (
// statically provisioned.
ErrNonStaticVolume = errors.New("volume not static")
// ErrSnapProtectionExist is returned when the snapshot is already protected
// ErrSnapProtectionExist is returned when the snapshot is already protected.
ErrSnapProtectionExist = errors.New("snapshot protection already exists")
// ErrSnapNotFound is returned when snap name passed is not found in the list
@ -56,7 +56,7 @@ var (
// ErrVolumeNotFound is returned when a subvolume is not found in CephFS.
ErrVolumeNotFound = errors.New("volume not found")
// ErrInvalidCommand is returned when a command is not known to the cluster
// ErrInvalidCommand is returned when a command is not known to the cluster.
ErrInvalidCommand = errors.New("invalid command")
// ErrVolumeHasSnapshots is returned when a subvolume has snapshots.

View File

@ -39,7 +39,7 @@ const (
var (
availableMounters []string
// maps a mountpoint to PID of its FUSE daemon
// maps a mountpoint to PID of its FUSE daemon.
fusePidMap = make(map[string]int)
fusePidMapMtx sync.Mutex