Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752734Ab0L0Ils (ORCPT ); Mon, 27 Dec 2010 03:41:48 -0500 Received: from mail-wy0-f174.google.com ([74.125.82.174]:58347 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752430Ab0L0Ilp (ORCPT ); Mon, 27 Dec 2010 03:41:45 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=DuK3Rr0OnLiJe4UIl5XcLJj70+p5zw7L2K+GggceWPNOVzoQtxQ8cBJ4XG4lugcEr4 CuEF1kjOXraWBU9qh18ARaru1btCdE+n/MWNCE6bFvE4D+VQIG0LjlZIGV9/k6ata91T e1hQ8mKJi+Pv4pbNHg3AmJcMhsrbTFXKTPXp8= Message-ID: <4D18506B.8070400@gmail.com> Date: Mon, 27 Dec 2010 09:38:03 +0100 From: Marco Stornelli User-Agent: Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.1.16) Gecko/20101125 SUSE/3.0.11 Thunderbird/3.0.11 MIME-Version: 1.0 To: Olaf van der Spek CC: Linux FS Devel , Linux Kernel Subject: Re: Return value of generic xattr operations References: <4D1748D4.5050700@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1027 Lines: 25 Il 26/12/2010 22:15, Olaf van der Spek ha scritto: > 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. > Ok, but at least it should be return the most important. Man page said: "If extended attributes are not supported by the file system, or are disabled, errno is set to ENOTSUP.", but in this case this kind of error is not really matching with this sentence, because the extended attribute are supported by fs and they are enabled. Marco -- 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/