mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 06:20:11 +01:00
chore(go-lint): fix golint warning (#133)
Fixes several go lint cases reported by go report. Signed-off-by: wiwen <shenggxhz@gmail.com>
This commit is contained in:
parent
639ead416e
commit
f5ae3ff476
25 changed files with 78 additions and 51 deletions
|
|
@ -49,6 +49,7 @@ const (
|
|||
VOLTYPE_ZVOL = "ZVOL"
|
||||
)
|
||||
|
||||
// PropertyChanged return whether volume property is changed
|
||||
func PropertyChanged(oldVol *apis.ZFSVolume, newVol *apis.ZFSVolume) bool {
|
||||
if oldVol.Spec.VolumeType == VOLTYPE_DATASET &&
|
||||
newVol.Spec.VolumeType == VOLTYPE_DATASET &&
|
||||
|
|
@ -363,7 +364,7 @@ func CreateClone(vol *apis.ZFSVolume) error {
|
|||
}
|
||||
|
||||
if vol.Spec.FsType == "xfs" {
|
||||
return xfs_generate_uuid(volume)
|
||||
return xfsGenerateUuid(volume)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
@ -597,6 +598,7 @@ func GetVolumeDevPath(vol *apis.ZFSVolume) (string, error) {
|
|||
return dev, nil
|
||||
}
|
||||
|
||||
// ResizeZFSVolume resize volume
|
||||
func ResizeZFSVolume(vol *apis.ZFSVolume, mountpath string) error {
|
||||
|
||||
volume := vol.Spec.PoolName + "/" + vol.Name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue