From mboxrd@z Thu Jan 1 00:00:00 1970 From: DENIEL Philippe Subject: v9fs (9p): syscall setxattr inside kernel 3.14-rc1 returns size of set xattr Date: Tue, 18 Feb 2014 14:55:59 +0100 Message-ID: <5303666F.7000706@cea.fr> Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit To: linux-fsdevel Return-path: Received: from oxalide-out.extra.cea.fr ([132.168.224.8]:36209 "EHLO oxalide-out.extra.cea.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755128AbaBROI0 (ORCPT ); Tue, 18 Feb 2014 09:08:26 -0500 Received: from pisaure.intra.cea.fr (pisaure.intra.cea.fr [132.166.88.21]) by oxalide.extra.cea.fr (8.14.2/8.14.2/CEAnet-Internet-out-2.3) with ESMTP id s1IDu0Oo011007 for ; Tue, 18 Feb 2014 14:56:00 +0100 Received: from pisaure.intra.cea.fr (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 292B6202440 for ; Tue, 18 Feb 2014 14:56:41 +0100 (CET) Received: from muguet1.intra.cea.fr (muguet1.intra.cea.fr [132.166.192.6]) by pisaure.intra.cea.fr (Postfix) with ESMTP id 1672F20227D for ; Tue, 18 Feb 2014 14:56:41 +0100 (CET) Received: from zia.cdc.esteban.ctsi (out.dam.intra.cea.fr [132.165.76.10]) by muguet1.intra.cea.fr (8.13.8/8.13.8/CEAnet-Intranet-out-1.2) with SMTP id s1IDu0cL019890 for ; Tue, 18 Feb 2014 14:56:00 +0100 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Hi, I run v9fs as a client on a F20, in front of my Ganesha server (see http://github.com/nfs-ganesha for details), using 9p.2000L My acl non-regression test showed errors when I installed a recent 3.14-rc1 kernel (I got it from kernel.org) on my F20 box. Investigation showed that the setfacl command line got messy because setxattr() (called from acl_set_modify() in libattr.so) return a non-zero value when successful. Further investigation showed that this behavior seems to come from v9fs_fid_xattr_set() inside fs/9p/xattr.c in the kernel's source. It seems like setxattr syscall does now return the size of the set xattr, and that seems to be the root cause of my problem. I do not believe that this change in setxattr is no bug, but a new feature. So I guess I should patch my libattr and/or glibc to use xattr/acl with kernel 3.14-rc1. Question is : where could I get the right version of libattr source treee (eventually with libacl if needed). Regards Philippe