Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752748Ab0LZVPi (ORCPT ); Sun, 26 Dec 2010 16:15:38 -0500 Received: from mail-fx0-f46.google.com ([209.85.161.46]:60416 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752541Ab0LZVPh (ORCPT ); Sun, 26 Dec 2010 16:15:37 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=R/Be8+KfEgPlVMxJTn5dfpRX48ohgK1Ai9Hn7GatUeQk9AWK45nawy7D981oaTMjKV EoONDReMdtToNrBJ1qNm4jCgbPM9HmFQvalsDCHP7AQUAzxu2h3KvVwy0ZSZp5kAhr5j 9rAeng8bWZdu90yuZatdVRDCH7aE+YoET1XnQ= MIME-Version: 1.0 In-Reply-To: <4D1748D4.5050700@gmail.com> References: <4D1748D4.5050700@gmail.com> Date: Sun, 26 Dec 2010 22:15:35 +0100 Message-ID: Subject: Re: Return value of generic xattr operations From: Olaf van der Spek To: Marco Stornelli Cc: Linux FS Devel , Linux Kernel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 790 Lines: 21 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/