mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-27 16:50:23 +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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if majorVers >= 4 && minorVers >= 17 {
|
if majorVers > 4 || (majorVers >= 4 && minorVers >= 17) {
|
||||||
klog.Infof("loaded mounter: %s", volumeMounterKernel)
|
klog.Infof("loaded mounter: %s", volumeMounterKernel)
|
||||||
availableMounters = append(availableMounters, volumeMounterKernel)
|
availableMounters = append(availableMounters, volumeMounterKernel)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user