mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 18:43:34 +00:00
util: Rename KernelVersion to GetKernelVersion
Renames KernelVersion to GetKernelVersion for more readibility. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
12c3be9974
commit
567b2ab280
@ -141,9 +141,9 @@ func ValidateDriverName(driverName string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// KernelVersion returns the version of the running Unix (like) system from the
|
||||
// GetKernelVersion returns the version of the running Unix (like) system from the
|
||||
// 'utsname' structs 'release' component.
|
||||
func KernelVersion() (string, error) {
|
||||
func GetKernelVersion() (string, error) {
|
||||
utsname := unix.Utsname{}
|
||||
err := unix.Uname(&utsname)
|
||||
if err != nil {
|
||||
|
@ -144,8 +144,8 @@ func TestRoundOffVolSize(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestKernelVersion(t *testing.T) {
|
||||
version, err := KernelVersion()
|
||||
func TestGetKernelVersion(t *testing.T) {
|
||||
version, err := GetKernelVersion()
|
||||
if err != nil {
|
||||
t.Errorf("failed to get kernel version: %s", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user