xfs
[Top] [All Lists]

Re: XFS ACL problem on PPC

To: Juer Lee <juerlee@xxxxxxxxxxx>
Subject: Re: XFS ACL problem on PPC
From: Timothy Shimmin <tes@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 10 Jul 2001 11:36:53 +1000
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <200107091635.f69GZaS01889@jen.americas.sgi.com>; from lord@sgi.com on Mon, Jul 09, 2001 at 11:35:36AM -0500
References: <juerlee@ireland.com> <200107091635.f69GZaS01889@jen.americas.sgi.com>
Sender: owner-linux-xfs@xxxxxxxxxxx
Hi Juer,

On Mon, Jul 09, 2001 at 11:35:36AM -0500, Steve Lord wrote:
> > 
> > Does anybody know whether the XFS really supports ACL on PPC :) maybe 
> > it is a foolish question -- since SGI announce that they support PPC 
> > and ACL -- but they don't tell us about that when using them at the 
> > same time.
> 
> SGI has never said anything about support and PPC to my knowledge, people
> have run XFS on the PPC architecture. Having said that, I am pretty sure
> that the system call numbers for extended attribute and acl support are
> only in the kernels for ia32 and ia64. 
Yep.
We did this as we have no way of testing with PPC.
We have mentioned before that if someone can make the changes
and test them successfully on PPC, then we'll update the code.

> For other platforms you would
> need to add the system calls to the kernel, and make sure that the
> user space commands use the correct system call numbers for your
> architecture.
Yep.
And that's where the, 
"libacl: acl_set system call not defined for this architecture"
message is coming from.

One needs to update with acl sys call numbers: 
In userspace:
   cmd/acl/libacl/acl.c
In kernelspace:
   linux/include/asm-ppc/unistd.h
   linux/arch/ppc/kernel/misc.S

Check out the examples of:
   linux/include/asm-i386/unistd.h
   linux/arch/i386/kernel/entry.S
Note that we have left a gap in the syscall numbering
to try to avoid collisions with future syscalls which
are being added.

--Tim

> 
> > I downloaded all the patch for XFS, and compiled successfully almost 
> > without any problems.
> > The ACL utility is version 1.0.4, I downloaded the source code of it, 
> > compiled it successfully again. But after I read the source code 
> > of .../libacl/acl.c, I found that seemed not supporting PPC.
> > So I have to try to find some version of ACL utility for PPC, this 
> > time I went to http://people.spoiled.org/tgr/unix/xfs/ppc/2.4.2/rpms, 
> > I downloaded acl-1.0.1-0.ppc.rpm and acl-devel-1.0.1-0.ppc.rpm, 
> > installed them on my PPC using LinuxPPC2000. I run 'chacl' again, I 
> > got the error message "libacl: acl_set system call not defined for 
> > this architecture" again, my god, I can not bear it now. I think it 
> > should be my PowerPC's problem...
> > Who can help me?
> > Thank you in advance.
> > 
> > 
> > Juer

<Prev in Thread] Current Thread [Next in Thread>