Closed lingrottin closed 2 years ago
Hi, sorry for the delay, I'm not getting email notifications from github for some reason. As for your problem, it's possible that I made a mistake with the version number check. I'll take a look and get back to you.
The version checks were correct, the problem is that your rhel kernel has picked up this change from 5.15, so I added a separate check for rhel. When you can let me know if this works for you, it looks correct but I don't have any rhel vms to test it on.
Right, redhat backports patches from the mainstream but RHEL version never changes (except RHEL 8->9) so version judge fails on RHEL. FACEPALM.
I pulled down the newest source, checked out the development branch and tried to compile it on my RHEL server. It was compiled successfully without modifying the code then. The kernel is still on 5.14.0, so obviously the patch is correct. Thanks for your work!
When I was trying to compile this, it reports that there was an error in
super.c
.Compilation log
However I looked into
super.c
then and found a piece of code which detects kernel version:I tried deleting the whole part and use
bdi_dev = nxi->nx_bdev->bd_disk->bdi;
(i.e. the one for Linux 5.15+) only and it compiled successfully. That's pretty wired since I'm on Red Hat Enterprise Linux 9 and my kernel version is 5.14.0.My kernel info (
uname -a
)Is there any way to work it out? Thank you for your work!