Re: [AVFS] avfs on Linux 2.6

[email protected] Thu, 30 Jun 2005 08:54:02 -0300
Newsgroups gmane.comp.file-systems.avfs.user
Message-ID <20050630115402.GA14393@malaquias>
On Wed, Jun 29, 2005 at 09:24:11PM +0200, Ralf Hoffmann wrote:
> Hi,
> 
> On 2005-06-29 13:10, [email protected] wrote:
> > I would like to experiment with the avfscoda with linux kernel 2.6.
> > Could you then update the patch to avfs version 0.9.5?
> 
> I just tested the patch and it applies to avfs 0.9.5 without problems
> except for one hunk. This hunk only adds a debug output so it's nothing
> to worry about at the moment.

Two hunks have failed when applying the patch to
avfs-0.9.5. One concerns debuging, as you noted.
The other rejected hunk is attached. It seems to
already be in the code. But I am not sure. Please,
take a look at it.

> [...]
> To make a long story short, you can try the patch pointed out by Miklos
> Szeredi but don't expect that it will compile.

I have got the error (which seems to be related to the
failed hunk):

[...]
if gcc -DHAVE_CONFIG_H -I. -I. -I../include   -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I../include -DCODAINCLUDE=\"/usr/src/linux-2.6.12-gentoo-r2/include/linux/coda.h\" -Wall -g  -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -g -MT child.o -MD -MP -MF ".deps/child.Tpo" \
  -c -o child.o `test -f 'child.c' || echo './'`child.c; \
then mv -f ".deps/child.Tpo" ".deps/child.Po"; \
else rm -f ".deps/child.Tpo"; exit 1; \
fi
child.c: In function `process_request':
child.c:438: error: structure has no member named `Volume'
child.c:439: error: structure has no member named `Vnode'
child.c:440: error: structure has no member named `Unique'
child.c:454: warning: cast to pointer from integer of different size
make[1]: *** [child.o] Error 1
make[1]: Leaving directory `/var/tmp/avfs-0.9.5/avfscoda'
make: *** [all-recursive] Error 1


Is this the same error you have got?

> [...]
> If we can use avfs over fuse I don't see any need for the
> avfscoda anymore.

And can we use avfs over fuse?

Regards,

Romildo
dispatch.c.rej (text/plain, 350 B)
***************
*** 1523,1528 ****
                  break;
  
              default:                
              }
  
              release_fids(op->req);
--- 1545,1551 ----
                  break;
  
              default:                
+                 logerr("Unknown opcode!!!!\n");
              }
  
              release_fids(op->req);