xfs
[Top] [All Lists]

Re: extended attributes interface

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: Re: extended attributes interface
From: Nathan Scott <nathans@xxxxxxx>
Date: Thu, 31 Jan 2002 10:17:23 +1100
Cc: a.gruenbacher@xxxxxxxxxxxx, linux-xfs@xxxxxxxxxxx
In-reply-to: <20020130.144647.21928212.davem@xxxxxxxxxx>; from davem@xxxxxxxxxx on Wed, Jan 30, 2002 at 02:46:47PM -0800
References: <20020130.144647.21928212.davem@xxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
On Wed, Jan 30, 2002 at 02:46:47PM -0800, David S. Miller wrote:
> 
> All the values that go through these syscalls seem to be
> opaque and filesystem specific.  Therefore can I ask the filesystems
> that use these things use fixed sized types such as "u32" "u16" et al.
> instead of things such as "long" or "int"?

Yes, agreed.  The main consumer of this interface currently
is Andreas' POSIX ACL code, and IIRC he does use fixed size
types for his ACL attributes.  The man pages do refer to this
issue, I will flesh out the wording to be a bit more explicit
in this regard.

thanks.

> The reason I ask is, unless strict sized types are used it is going
> to be a real pain in the ass to translate the types passed to these
> system calls in mixed 32-bit/64-bit environments.  This is thus going
> to be a mess on sparc64, ppc64, mips64, ia64, and probably others I
> have forgotten :-)
> 
> If strict sized types are used for the attributes, then no
> translations will need to occur at all.
> 

-- 
Nathan


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