From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf van der Spek Subject: Re: Return value of generic xattr operations Date: Sun, 26 Dec 2010 22:15:35 +0100 Message-ID: References: <4D1748D4.5050700@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Linux FS Devel , Linux Kernel To: Marco Stornelli Return-path: In-Reply-To: <4D1748D4.5050700@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Sun, Dec 26, 2010 at 2:53 PM, Marco Stornelli wrote: > Hi, > > is it right that generic_setxattr & co. return -EOPNOTSUPP if there is a > namespace error? I mean, if the user try to set .foo > attribute, the return value should be -EINVAL, isn't it? Operation not Why? There are multiple errors and only one can be returned. > supported means that extended attributes are not enabled or not > implemented by the fs. The man pages are not much clear about this > point. What do you think? Olaf