mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-23 14:50:24 +00:00
Reorder kernel version checking logic
This commit is contained in:
parent
ed477e1ba1
commit
4ba07092e8
@ -70,7 +70,7 @@ func loadAvailableMounters() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if majorVers >= 4 && minorVers >= 17 {
|
||||
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