Hmmm, food for thought. Yes, I do want Wary to be able to be built with this kernel. Perhaps I should set the default for any ext4 partition to be mounted read-only. Perhaps a popup warning not to use ext4.
The latest kernel that is planned for long-term support by Greg is 2.6.32.x. So, I think that I'll release two Wary's, built with 18.104.22.168 and 2.6.32.x, and attempt to compile all the analog drivers on the latter -- that will be "interesting".
I wonder though, if Greg is just being cautious about his advice on ext4. Perhaps all the ext4 patches to 2.6.27.x have made it usable -- as Greg commented, it would be a good idea to contact the ext4 developers, in particular anyone involved in patching the 2.6.27.x kernel -- I look in the changelog, find any contact details.
Comments:Posted on 9 Jun 2010, 8:43 by BarryK
Hmmm, looking back through the changelog, there have been lots of ext4 patches. Maybe Greg is just being ultra cautious. Anyway, I have followed his advice and sent emails to ext4 developer guys who have contributed patches to 2.6.27.x. It will be interesting to read their opinions.
Posted on 9 Jun 2010, 13:48 by Iguleder
Barry, if all ext4 fixes got ultimately backported to the stable 2.6.27.x tree, it should be just fine, theoretically. It should be as stable as 22.214.171.124 with ext4.
Anyway, even if it isn't ... maybe it's possible to transplant the ext4 of 2.6.34 on 2.6.27.x ... I think I'll try to do that, just for fun.
Posted on 9 Jun 2010, 14:48 by Iguleder
Barry, I was able to backport the ext4 code from 126.96.36.199 to 188.8.131.52.
The squashfs patches you used don't work for me, so I applied them manually, I went over all files. The line numbers are incorrect or something.
What I did is very simple, took about half an hour.
1) I extracted the vanilla 184.108.40.206 and the vanilla 220.127.116.11.
2) I downloaded the standlone aufs2-27 through git.
3) I applied aufs2-base.patch, aufs2-kbuild.patch and aufs2-standalone.patch.
4) I copied over Documentation, fs, design and include from the Aufs2 git directory.
5) I applied the ext4 rename patch.
6) I deleted fs/ext4 and put the fs/ext4 of 18.104.22.168 instead. I think I didn't notice any extra files.
7) I copied over the 22.214.171.124 fs/squashfs.
8) I applied the squashfs patches manually, just searched for the line to put stuff after, put them and saved.
9) I applied printk.c.patch.
I'm compiling the kernel with Aufs2, ext4 and Squashfs 4. Needs testing, though. bzImage is ready, clean compile, need the modules now. So far I see ext4 compilation failed, there's a big difference between 2.6.27.x and 126.96.36.199 in this area. Aufs2 and Squashfs compilation passed.
I'll try to mess with ext4 a little. Maybe there is a way to backport that shiny new ext4 after all.
I think I'll try to build a Quirky/Puppy with this thing, I just don't really know how to put this thing in Woof.
Posted on 9 Jun 2010, 15:19 by BarryK
Re ext4 backport
Heh heh, I understand your keen-ness!
When I went through the changelog, there were lots of ext4 patches, going right back. Even 188.8.131.52 has some -- so I would say that this kernel is being actively used with ext4 filesystems and is perfectly usable. I expect feedback from the ext4 developers on that soon.
Note that the current release version of Woof is a bit broken when building with that kernel. I had to fix a few things, for example although it is an old kernel it has Squashfs4 which breaks some scripts. Another one: needs an older version of module-init-tools.
I will upload a fixed Woof soon.
Posted on 9 Jun 2010, 15:26 by Iguleder
The ext4 patch is broken
The ext4 rename patch is broken. Noticed this just now. It patches all files except one file, fs/ext4/super.c.
I tried the patch the kernel devs used to rename at the time, it doesn't work too. It failed in everything except 2 lines lol
By the way, I made patches with my 184.108.40.206 Squashfs and the git Aufs, do you want me to upload them? I think the Squashfs patch could be pretty goddamn useful ... who knows, should be better than the older SFS4.
Posted on 9 Jun 2010, 15:38 by BarryK
Feedback from ext4 developers
Ok, it is not good news.
Aneesh, who has been contributing ext4 patches right up to 220.127.116.11, has this to say:
I also wouldn't recommend 2.6.27.x. Ted (ext4 maintainer) also expressed a similar concern.
Theodore, who is one of the main kernel developer guys and who has contributed many ext4 patches, says this:
There are a large number of ext4 bug fixes which have not been backported to 2.6.27.x, simply because it's been Too Hard. For lightweight use, you'll probably be OK -- there are people who are using 2.6.27.x with ext4 and I haven't heard screaming about lost data --- but I do have known test cases that will cause ext4 in 2.6.27.x to result in file system corruption and/or kernel panics.
Posted on 9 Jun 2010, 16:34 by Iguleder
There's a different approach, too. If 18.104.22.168 doesn't like ext4 ... you can take 22.214.171.124 and a newer ext4 module.
There's a very high chance it won't work ... but what if you compile 126.96.36.199 with everything, including the renamed ext4dev and replace ext4.ko with a kernel module from a newer kernel? If you read what the help for "Module versioning support" says, there *is* a chance that this will work. It says "sometimes", and that's more than enough for me. If it shows any error about different kernel versions, I think it wont' be too hard to patch the kernel to remove that ... just as your printk patch does.
The kernel headers are totally different and even the compilation asks for some stuff that exist only in other parts of the kernel ... but if it's a module, all that code should go to the kernel module. Theoretically, I mean.
Let's hope it's possible to get this working practically :D
I think I'll try to compile my 188.8.131.52 with everything and transplant a 184.108.40.206 ext4 module.
Posted on 9 Jun 2010, 20:03 by Iguleder
Found a good patch
First of all, sorry for the annoynce, too excited about Wary and this little kernel project :)
I also tried another patch from the kernel git repo, which didn't work either. Then, I found a working ext4 rename patch from Arch. It doesn't have the errors your patch produced.
It applies cleanly and seems better.
Here are my other patches:
http://iguleder.net.ms/220.127.116.11/squashfs-18.104.22.168-22.214.171.124-backport.patch (squashfs from 126.96.36.199 backported)
http://iguleder.net.ms/188.8.131.52/aufs2-27-git-06092010.patch (aufs2, the .27 branch, has all patches and extra files included)
Posted on 17 Jun 2010, 10:16 by scsijon
kernal min for ext4
not planned to to duplicate what I put elsewhere (sorry barry)
see wikipedia under ext4 and look at kernal versions for explanation
Posted on 4 Oct 2010, 9:55 by technosaurus
squashfs4 in 2.6.27
tracked down another possible squashfs4 patch for the .27 kernel
....aufs2 needed too?
Posted on 4 Oct 2010, 16:23 by BarryK
Official Aufs2 patch for 2.6.27 was available right up until late September, then the author decided to move up, and I think now the minimum supported is 2.6.30. I downloaded the last patch that works on the 2.6.27 kernel, and it will continue to be available from the aufs download site.