From patchwork Wed Nov 19 13:42:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Sterba X-Patchwork-Id: 5337391 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CF5BDC11AC for ; Wed, 19 Nov 2014 13:42:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 21A6A2010E for ; Wed, 19 Nov 2014 13:42:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E5F4E201BB for ; Wed, 19 Nov 2014 13:42:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755615AbaKSNmD (ORCPT ); Wed, 19 Nov 2014 08:42:03 -0500 Received: from cantor2.suse.de ([195.135.220.15]:56157 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755585AbaKSNmC (ORCPT ); Wed, 19 Nov 2014 08:42:02 -0500 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 088D9AC32 for ; Wed, 19 Nov 2014 13:42:01 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 75B3FDA939; Wed, 19 Nov 2014 14:42:01 +0100 (CET) From: David Sterba To: linux-btrfs@vger.kernel.org Cc: David Sterba Subject: [PATCH] btrfs-progs: use system attr instead of attr library Date: Wed, 19 Nov 2014 14:42:00 +0100 Message-Id: <1416404520-30045-1-git-send-email-dsterba@suse.cz> X-Mailer: git-send-email 2.1.3 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We use the attr version provided by system in other places already, now we can remove dependency on the separate attr library. Signed-off-by: David Sterba --- props.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/props.c b/props.c index 9fd612f97026..c7c67529fd79 100644 --- a/props.c +++ b/props.c @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include @@ -29,6 +29,12 @@ #define XATTR_BTRFS_PREFIX "btrfs." #define XATTR_BTRFS_PREFIX_LEN (sizeof(XATTR_BTRFS_PREFIX) - 1) +/* + * Defined as synonyms in attr/xattr.h + */ +#ifndef ENOATTR +#define ENOATTR ENODATA +#endif static int prop_read_only(enum prop_object_type type, const char *object,