From patchwork Thu Feb 28 15:25:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Shilovsky X-Patchwork-Id: 2199091 Return-Path: X-Original-To: patchwork-cifs-client@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 559E4DFE86 for ; Thu, 28 Feb 2013 15:24:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933339Ab3B1PYa (ORCPT ); Thu, 28 Feb 2013 10:24:30 -0500 Received: from mail-lb0-f172.google.com ([209.85.217.172]:51965 "EHLO mail-lb0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757377Ab3B1PW4 (ORCPT ); Thu, 28 Feb 2013 10:22:56 -0500 Received: by mail-lb0-f172.google.com with SMTP id n8so1486024lbj.31 for ; Thu, 28 Feb 2013 07:22:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=Czv4fD9eIk02I+d4ZzpSWCc94tQbQK3VSFjoKFLWWyY=; b=T6OeqsUDEAkdoh3YshFCVYS6L4BmRNPujBO/fomYORlUCNxwxkI6mYLJdWV51FoTbd ji9vfMA8LywBSS2VOG9MCEmLOj/PGQoQlUZhC92v8Bezej/wAmdpoM/YbO1/nNLuDxsV pwiPlBhOuH0eXNdUQy4NL8iFugPLiWUORiXU65RzxuecH5lZMC8W/kSlYX779QI76pgi a/PdUyXK2Lr4U+K34P3K1KBoWJp17zR2KeWVmiMYBGxFMzzEfYsDXfdqQqo1k4EcbAX1 PYimjWpA5XcYj9v4ex/8HE6l0glGah4ZJuThT0kLXYki35KKh9tqWeGBjy/MW5zdChpU M0cg== X-Received: by 10.152.113.164 with SMTP id iz4mr5910256lab.50.1362064974377; Thu, 28 Feb 2013 07:22:54 -0800 (PST) Received: from workstation.localdomain ([79.126.96.201]) by mx.google.com with ESMTPS id f4sm3055511lbo.4.2013.02.28.07.22.52 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Feb 2013 07:22:53 -0800 (PST) From: Pavel Shilovsky To: linux-kernel@vger.kernel.org Cc: linux-cifs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, wine-devel@winehq.org Subject: [PATCH v3 5/7] CIFS: Translate SHARING_VIOLATION to -ETXTBSY error code for SMB2 Date: Thu, 28 Feb 2013 19:25:31 +0400 Message-Id: <1362065133-9490-6-git-send-email-piastry@etersoft.ru> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1362065133-9490-1-git-send-email-piastry@etersoft.ru> References: <1362065133-9490-1-git-send-email-piastry@etersoft.ru> Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org to make it match CIFS and VFS variants. Signed-off-by: Pavel Shilovsky --- fs/cifs/smb2maperror.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/smb2maperror.c b/fs/cifs/smb2maperror.c index 494c912..11e589e 100644 --- a/fs/cifs/smb2maperror.c +++ b/fs/cifs/smb2maperror.c @@ -356,7 +356,7 @@ static const struct status_to_posix_error smb2_error_map_table[] = { {STATUS_PORT_CONNECTION_REFUSED, -ECONNREFUSED, "STATUS_PORT_CONNECTION_REFUSED"}, {STATUS_INVALID_PORT_HANDLE, -EIO, "STATUS_INVALID_PORT_HANDLE"}, - {STATUS_SHARING_VIOLATION, -EBUSY, "STATUS_SHARING_VIOLATION"}, + {STATUS_SHARING_VIOLATION, -ETXTBSY, "STATUS_SHARING_VIOLATION"}, {STATUS_QUOTA_EXCEEDED, -EDQUOT, "STATUS_QUOTA_EXCEEDED"}, {STATUS_INVALID_PAGE_PROTECTION, -EIO, "STATUS_INVALID_PAGE_PROTECTION"},