xfs
[Top] [All Lists]

Re: getfacl reports unknown error 524 on xfs partition

To: Ethan Benson <erbenson@xxxxxxxxxx>
Subject: Re: getfacl reports unknown error 524 on xfs partition
From: Eric Sandeen <sandeen@xxxxxxx>
Date: Fri, 10 May 2002 08:26:11 -0500 (CDT)
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <20020510012102.K11075@xxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
Ah, thanks Ethan!  Should have read your reply before I sent mine.  :)

Nathan made this change about 4 weeks ago to fs/xfs/linux/xfs_linux.h,
I think it should address this problem?

> ENOTSUP was defined to be ENOTSUPP.  this is a problem because some glibc
> versions and some architectures do not grok this code (errno.h in the kernel
> only defines this within __KERNEL__).  we now define it as EOPNOTSUPP which
> will work everywhere and is the same thing we use for extended attributes
> not available elsewhere in the kernel (ENOTSUP is the ACL not enabled code).

Thanks,

-Eric

On Fri, 10 May 2002, Ethan Benson wrote:

> the problem is you compiled XFS without ACL support, in this case XFS
> returns the wrong errno so perror reports `Unknown error (524)'
> instead of Operation not supported.  
> 
> glibc only knows about EOPNOTSUPP, ENOTSUP and ENOTSUPP are protected
> by __KERNEL__  so xfs needs to change its return values when it does
> not have ACL support.  i sent details of this problem to Nathan
> several weeks ago but he never followed up.

-- 
Eric Sandeen      XFS for Linux     http://oss.sgi.com/projects/xfs
sandeen@xxxxxxx   SGI, Inc.


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