Thank you, Andy.
I've been struggling with it for the last 8 hours and no luck so far.
I really don't know what's wrong. I'm not a linux kernel developer and I'm most likely failing because of something stupid.
I know this must not the right place to ask for help on such matters, but if you guys could shed some light here, I'd really appreciate that.
Well, if you're up to it, here's the situation:
Looks like the module compilation worked (no errors or warnings occurred when I followed the instructions at the centos wiki), but I'm unable to load the new module to my running kernel.
I even copied the compiled and patched module to /lib/modules/2.6.32-279.19.1.el6.x86_64/kernel/drivers/block/ (overwrote the original) and /lib/modules/2.6.32-279.19.1.el6.x86_64/extra and rebooted the instance...
Also, dmesg does not complain about a thing...
# modinfo /lib/modules/2.6.32-279.19.1.el6.x86_64/kernel/drivers/block/xen-blkfront.ko
filename: /lib/modules/2.6.32-279.19.1.el6.x86_64/kernel/drivers/block/xen-blkfront.ko
alias: xenblk
alias: xen:vbd
alias: block-major-202-*
license: GPL
description: Xen virtual block device frontend
srcversion: B00B4183E470515A96DA320
depends:
vermagic: 2.6.32-279.19.1.el6.x86_64 SMP mod_unload modversions
parm: sda_is_xvda:sdX in guest config translates to xvdX, not xvd(X+4) (bool)
# uname -r
2.6.32-279.19.1.el6.x86_64
I also tried to remove the module and insert the patched one with insmod, but modprobe and rmmod are unable to unload it. They say it's in use.
# lsmod |grep blkfront
xen_blkfront 15495 1
I don't know what this "1" stands for, but if I were to guess, I'd say it's something unremovable...
Please let me know if you need any other information.
Thanks,