From patchwork Mon Jul 26 14:29:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 114287 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6QEU1WE032587 for ; Mon, 26 Jul 2010 14:30:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754438Ab0GZOaB (ORCPT ); Mon, 26 Jul 2010 10:30:01 -0400 Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.122]:47935 "EHLO cdptpa-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754235Ab0GZOaB (ORCPT ); Mon, 26 Jul 2010 10:30:01 -0400 X-Authority-Analysis: v=1.1 cv=dHSs0xG8jwIKQYJm3xg8/3EbLs6EAEdD2Kdw41XeKVQ= c=1 sm=0 a=cDxKM1s-mk8A:10 a=ld/erqUjW76FpBUqCqkKeA==:17 a=20KFwNOVAAAA:8 a=CyTCXqYYIhqv0QLHYtkA:9 a=HVN91aiUxi1ruCPJ8oMVxYRk0nsA:4 a=jEp0ucaQiEUA:10 a=ld/erqUjW76FpBUqCqkKeA==:117 X-Cloudmark-Score: 0 X-Originating-IP: 71.70.153.3 Received: from [71.70.153.3] ([71.70.153.3:52421] helo=mail.poochiereds.net) by cdptpa-oedge03.mail.rr.com (envelope-from ) (ecelerity 2.2.2.39 r()) with ESMTP id 61/BF-10420-7EB9D4C4; Mon, 26 Jul 2010 14:29:59 +0000 Received: by mail.poochiereds.net (Postfix, from userid 4447) id 1AF4458125; Mon, 26 Jul 2010 10:29:59 -0400 (EDT) From: Jeff Layton To: smfrench@gmail.com Cc: linux-cifs@vger.kernel.org Subject: [PATCH 1/2] cifs: map NT_STATUS_ERROR_WRITE_PROTECTED to -EROFS Date: Mon, 26 Jul 2010 10:29:57 -0400 Message-Id: <1280154598-29628-1-git-send-email-jlayton@redhat.com> X-Mailer: git-send-email 1.7.1.1 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 26 Jul 2010 14:30:02 +0000 (UTC) diff --git a/fs/cifs/netmisc.c b/fs/cifs/netmisc.c index 3489468..c6721ee 100644 --- a/fs/cifs/netmisc.c +++ b/fs/cifs/netmisc.c @@ -61,6 +61,7 @@ static const struct smb_to_posix_error mapping_table_ERRDOS[] = { {ERRremcd, -EACCES}, {ERRdiffdevice, -EXDEV}, {ERRnofiles, -ENOENT}, + {ERRwriteprot, -EROFS}, {ERRbadshare, -ETXTBSY}, {ERRlock, -EACCES}, {ERRunsup, -EINVAL}, diff --git a/fs/cifs/smberr.h b/fs/cifs/smberr.h index c5084d2..7f16cb8 100644 --- a/fs/cifs/smberr.h +++ b/fs/cifs/smberr.h @@ -76,6 +76,7 @@ #define ERRnofiles 18 /* A File Search command can find no more files matching the specified criteria. */ +#define ERRwriteprot 19 /* media is write protected */ #define ERRgeneral 31 #define ERRbadshare 32 /* The sharing mode specified for an Open conflicts with existing FIDs on