The summary sums it all, now here are the goodies. Attached is a patch to make it compile under 2.6.28, I didn't test, however, under 2.6.27/26. If anyone would like to test so we can include #if, that would be appreciated.
Created attachment 180659 [details, diff] cowloop-3.0-2.6.28.patch Makes cowloop compiles under 2.6.28 after all the other patches.
Created attachment 180660 [details] cowloop-3.0-r4.ebuild This is the updated ebuild to include the patch plus changed arch to ~x86.
I assume you've tested the functionality and it work ok? Thanks for the patch - rarely see ones like this. I'll add it soon.
I tested creating a cowdev, writing to it, deleting cowdev, examining the content of the cowfile, merging the cowfile, remounting it, everything is okay in the file. Then I tried rmmod'ing the module, seems like everything cleaned up correctly. What is not tested is compatibility with 2.6.27 and 2.6.26, I guess there are probably 1 or 2 #IFs to add, but it may also work out-of-the-box.
all changes were 2.6.28 and not backwards compatible. http://www.linuxhq.com/kernel/v2.6/28/fs/block_dev.c I've done the #if magic and its hopefully right. I'll submit it upstream with credits to you. thanks