Coda File System

Re: 64-bit issues

From: Michael Tautschnig <michael.tautschnig_at_zt-consulting.com>
Date: Mon, 2 Aug 2004 05:00:44 +0200 (CEST)
>
> So simply replace the long and u_long values in coda_vattr in the
> kernel's coda.h with int32_t and u_int32_t and rebuild the kernel
> module.
>
Thanks, that did the job to let venus start without errors - but the
ioctls still fail - I found at least one point were problems must occur:
32bit-userland:
in kerndep/pioctl.c: line 428
int size = ((com >> 16) & PIOCPARM_MASK) + sizeof(char *) + sizeof(int);

64bit-kernel:
in fs/coda/upcall.c: line 564
iocsize = ((cmd >> 16) & PIOCPARM_MASK) - sizeof(char *) - sizeof(int);

size should probably be == iocsize !?

Is there a solution for such a conflict?

Regards,
Michael
Received on 2004-08-01 23:15:56