mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-24 14:00:19 +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