Hi,
I patched kernel 2.6.21 with linux-2.6.21-u2.diff. I was unable to
compile 2.6.18-rt with unionfs-1.4 whithout editing unionfs.h; all that
was needed was to change one line in unionfs.h; this is the patch (diff
-urN):
======================================================================
--- unionfs-1.4/unionfs.h 2006-11-05 00:56:59.000000000 +0100
+++ unionfs-1.4-gisa/unionfs.h 2007-05-01 17:12:05.000000000 +0200
@@ -121,7 +121,7 @@
/* The semaphore is used to lock the dentry as soon as we get
into a
* unionfs function from the VFS. Our lock ordering is that
children
* go before their parents. */
- struct semaphore udi_sem;
+ struct compat_semaphore udi_sem;
int udi_bstart;
int udi_bend;
int udi_bopaque;
=======================================================================
However, at least from 2.6.20-rt/2.6.20-u1, no patch was needed to
compile. We guessed that the merging proccess of -rt and unionfs into
mainline, was making this necessary no more.
Sadly, while 2.6.18-rt/unionfs-1.4 is able to run our live cd as long as
needed, with 2.6.21.3-rt9/unionfs-2.6.21-u2 it seems to be impossible to
run it for 20 minutes (time to try an install on an old pentium3). We
need 2.6.21 in order to get ieee1394 audio devices working whit -rt; in
such a situation, 2.6.18-rt hangs inmediately. If not, we could wait for
the merging proccess since we think there would be -obviously- fewer issues.
To see what the changes made by -rt are, I think that the patch for
nvidia propietary module on 2.6.20 will explain it better than I could.
It looks that a new one-line-or-so change could do the trick again, but
I have no idea about how to apply it to unionfs code without breaking
something; and I guess that 2.6.21-rt introduced more changes I have no
idea about. You can get the patch for nvidia module on 2.6.20 here:
http://www.nvnews.net/vbulletin/attachment.php?attachmentid=23993&d=1171124108
Next days we will give 2.6.21.5-rt17/unionfs-2.6.21-u2 a try; may be
this is more -rt related?
-rt patches can be downloaded here:
http://people.redhat.com/mingo/realtime-preempt/
There is some documentation about -rt:
http://rt.wiki.kernel.org/index.php/Main_Page
Best regards
Roman
Erez Zadok escribió:
> Roman, if you're using such a relatively recent kernel as 2.6.21, why not
> try our latest Unionfs 2.0 release? It's a lot more stable and
functional
> than 1.x. There is one specific release for 2.6.21, and we also have
newer
> code for 2.6.22-rc.
>
> I'm unfamiliar with the -rt patches. Can you give me some pointers
to where
> I can get them from, and what do they do to the mainline kernel
(i.e., how
> much different is the -rt kernel from a vanilla one?)
>
> Erez.
>
_______________________________________________
unionfs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs