From patchwork Tue Oct 24 15:07:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Roskin X-Patchwork-Id: 829927 X-Patchwork-Delegate: david.oberhollenzer@sigma-star.at Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="FoTq3Igb"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="p8W5KoUT"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yLxV53fkFz9t2c for ; Wed, 25 Oct 2017 02:08:13 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=r9L27JZIGaGFg9xx2S6BFkYAw0WOM5IVL7ltBBUqMb0=; b=FoT q3Igb1LNZ6upgoShgrAxpxDKVvWa5Qr4TkInzs5Ot0jwRL+d7l53C2AxJN++8YLT1Y0v8+C04BwI0 xleRyRsYW5SQyX4gkpDtO+4vPbSSmrrmizchTWYa9iz+tPlqFtXs+zoHDDB4UcQxty0AEIlc6LXky 1rQ8upASgs5DOGhMN0FDm6e493Q5xqTfNiXYSJC+Hyki9VWO96xM8bLr91o7IOC2r2kG9Ry/zlQ2Z ZDtze2UYrvWIN9kO1FU/gNZ+shggb+wE2MsvObE5E/QaO3Oq8HrLYhUr46RxvZ+/OdNjPmrEHvuds pFD+QizwMHbfosjJ4oVv1eaq5YQw8vg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e70oB-0003Kz-W0; Tue, 24 Oct 2017 15:08:00 +0000 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e70o9-0003IK-9z for linux-mtd@lists.infradead.org; Tue, 24 Oct 2017 15:07:58 +0000 Received: by mail-pg0-x243.google.com with SMTP id y5so6933087pgq.7 for ; Tue, 24 Oct 2017 08:07:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=5SFq2PTK7IPuFpJ3rFn3psQixAo3M1FjPlmjYGaa1vs=; b=p8W5KoUTUZqmhmCtp98RKz+Wi/YBpc3tTszqEYCMkZeAafmHnw6YiO33L4ba3h+k98 TqUuViT08UtdqOZQBaphqdPrApYr7utmvG6Hwqh7UWtmQ8OjmxMElCNpSag0Rn6dutK+ ipoEXnY2A9hzg/MWzI/2qfu/OzDT2vkh3zxBBKf7SdnbExYI+Z1orHnIR9g8xo7Gx+dC brVIda/y/krcnEiSaZX1wKBbOwbvIOUfWcako9F0CzR/u3zTA/jFQJ6ELUdm8VrC+aWR swRU36Ocp+MCkTd6nIHxmfYcGw2UTrmAmA+4JTDB4VG4wOByeYf3i15BCoGf5HL38E4M vPJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5SFq2PTK7IPuFpJ3rFn3psQixAo3M1FjPlmjYGaa1vs=; b=qp4c2eMPV41fpWt/MlV75iNc/eo8Xh8sTK9sveuzVhwd2+1UL7fGuRa5Pa5jMRVo6K uRS6PoFO2FCTR9Z8yo+lKjpBltrof4Yu+yT9NcOr2HjseMmNe8aRG98UGzPgroS89pOn s3Ku0Yc88ieccusJmqNPxDNCwuqoUchql70FquBMho10xxkgeVYNug6dkd7TlzVqF2Gf 7Fe3nOZ6hXEGK1XhO6S78C2yoUeOu+zh8OwmeFM1Rq1IW2nkm+s4hwGIt7B8tjNos0a9 Q9lb8W07V+ieajf7Fo1i4xXKy2/EmRDRav9gWnmU1OvbH2ldqzuOjFD/JgJ+CFM5s6e0 /tcA== X-Gm-Message-State: AMCzsaUIBXOCNdXkJo2FM36XgBSxYo2Brb6DF33SBdrXVyCCMdZuL6Cm XJ4Ezi2PWNFrMI9q0D6RKEqNCCKG X-Google-Smtp-Source: ABhQp+T+zStSkgJodX5U3Dbs7rzuX0G9thboHd45u+x+QYsuJgVsvrsifsSlpNWOuizLJ7Qcr84grg== X-Received: by 10.98.32.206 with SMTP id m75mr17179092pfj.231.1508857655770; Tue, 24 Oct 2017 08:07:35 -0700 (PDT) Received: from roskinp-7510.office.thespaceshipcompany.com ([74.100.234.187]) by smtp.gmail.com with ESMTPSA id f11sm1271589pfd.82.2017.10.24.08.07.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Oct 2017 08:07:34 -0700 (PDT) From: Pavel Roskin To: linux-mtd@lists.infradead.org Subject: [PATCH] mkfs.ubifs: ignore EOPNOTSUPP when listing extended attributes Date: Tue, 24 Oct 2017 08:07:30 -0700 Message-Id: <20171024150730.5787-1-plroskin@gmail.com> X-Mailer: git-send-email 2.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171024_080757_426268_D992DF40 X-CRM114-Status: UNSURE ( 9.89 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:400e:c05:0:0:0:243 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (plroskin[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Oberhollenzer MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Systems that don't support extended attributes should still be able to create ubifs images. Signed-off-by: Pavel Roskin --- ubifs-utils/mkfs.ubifs/mkfs.ubifs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c index d432dfe..c916f48 100644 --- a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c +++ b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c @@ -1128,7 +1128,7 @@ static int inode_add_xattr(struct ubifs_ino_node *host_ino, len = llistxattr(path_name, NULL, 0); if (len < 0) { - if (errno == ENOENT) + if (errno == ENOENT || errno == EOPNOTSUPP) return 0; sys_err_msg("llistxattr failed on %s", path_name);