mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-22 21:10:22 +00:00
Reorder kernel version checking logic
This commit is contained in:
parent
197c8fcfcc
commit
0639e00705
@ -70,7 +70,7 @@ func loadAvailableMounters() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if (majorVers >= 4 && minorVers >= 17) || majorVers >= 5 {
|
||||
if majorVers > 4 || (majorVers >= 4 && minorVers >= 17) {
|
||||
klog.Infof("loaded mounter: %s", volumeMounterKernel)
|
||||
availableMounters = append(availableMounters, volumeMounterKernel)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user