From patchwork Tue Aug 30 03:51:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiaoguang Wang X-Patchwork-Id: 9304793 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7A14A607F0 for ; Tue, 30 Aug 2016 03:55:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6965128AB1 for ; Tue, 30 Aug 2016 03:55:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5DBC828AB5; Tue, 30 Aug 2016 03:55:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C34428AB1 for ; Tue, 30 Aug 2016 03:55:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932427AbcH3DzZ (ORCPT ); Mon, 29 Aug 2016 23:55:25 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:30484 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S932295AbcH3DzY (ORCPT ); Mon, 29 Aug 2016 23:55:24 -0400 X-IronPort-AV: E=Sophos;i="5.20,367,1444665600"; d="scan'208";a="815603" Received: from unknown (HELO cn.fujitsu.com) ([10.167.250.3]) by song.cn.fujitsu.com with ESMTP; 30 Aug 2016 11:55:16 +0800 Received: from localhost.localdomain (unknown [10.167.226.107]) by cn.fujitsu.com (Postfix) with ESMTP id 6AAA34056401; Tue, 30 Aug 2016 11:55:16 +0800 (CST) From: Wang Xiaoguang To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH] generic/159: record error value correctly Date: Tue, 30 Aug 2016 11:51:14 +0800 Message-Id: <20160830035114.13876-1-wangxg.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.9.0 MIME-Version: 1.0 X-yoursite-MailScanner-ID: 6AAA34056401.AFCC7 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: wangxg.fnst@cn.fujitsu.com Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This case failed in btrfs, it's because when trying to open an immutable file, vfs returns EPERM, not EACCESS, fix this. Signed-off-by: Wang Xiaoguang --- tests/generic/159.out | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/generic/159.out b/tests/generic/159.out index 92fe33a..3e5e47f 100755 --- a/tests/generic/159.out +++ b/tests/generic/159.out @@ -2,4 +2,4 @@ QA output created by 159 Format and mount Create the original files Try reflink on immutable files -TEST_DIR/test-159/file2: Permission denied +TEST_DIR/test-159/file2: Operation not permitted