Message ID | 20181024195837.35532-15-olga.kornievskaia@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-cifs-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4F9CA13A9 for <patchwork-cifs-client@patchwork.kernel.org>; Wed, 24 Oct 2018 19:59:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E85828481 for <patchwork-cifs-client@patchwork.kernel.org>; Wed, 24 Oct 2018 19:59:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 32DA72B224; Wed, 24 Oct 2018 19:59:02 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,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 DA58E28481 for <patchwork-cifs-client@patchwork.kernel.org>; Wed, 24 Oct 2018 19:59:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727542AbeJYE21 (ORCPT <rfc822;patchwork-cifs-client@patchwork.kernel.org>); Thu, 25 Oct 2018 00:28:27 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:33191 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727502AbeJYE20 (ORCPT <rfc822;linux-cifs@vger.kernel.org>); Thu, 25 Oct 2018 00:28:26 -0400 Received: by mail-qk1-f195.google.com with SMTP id o89so4245104qko.0; Wed, 24 Oct 2018 12:59:00 -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:in-reply-to:references; bh=fwlJnXfUGTRII/SW0YspOWGhfPFdbZ3Rgyeu7Z/VErM=; b=dFOerZNwKxzWjYWepyVme3Fh9Q3k55q5/TxJq/G9IV0dpPWWmMo45lS6MkgkyggYyh ol63X1kCOUowfnx2WPGuu8VIvkKZfZeQOGl9LgXvTIyLerV3h3cAufKFMQrmz+zwb6QV s3ArQBrzmPK30QRYN/XdABVj0XQxn0Uk6mGWCJUj1O+7Dz4D36TTKf4Xi4lGTJJHHkLe GbGlvev0QSyYut7kR1o9/c4MzEobfLEev1T5YV8ty6C81+UMSPGqRytwl4ORlRDpX7Sn 9W9sM8LfmrfQCqiTWXXGZChl1oUs4pOX2wi5TwOmrT/BnkaUvNbK5fCnQinTJnnbOOkr x1qA== 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:in-reply-to :references; bh=fwlJnXfUGTRII/SW0YspOWGhfPFdbZ3Rgyeu7Z/VErM=; b=rM9cczdSD7oo6JR4uUFyYK7Cy2OwQtFQT6O8YETL+gHhZZfMKE7y2R2cSuJlhF14Y8 vpibYnejg+h9WsEyWpo7f1b3YOnVkdxYzspjbKclaQYfGBC4BHkrP2gGNY2lJcJLK208 rQ9kgqnJUzlzhr+9RAaiunGkFdUg0bhLomVHoVzAK9/TIl+YuKauTHOuKLsfAS2ag5eu 2A1jvgD8uJ2GJHf/Xt1zcPEv2B04xHV3430C5qnY6ZqkJLPtC2Lw+uXlbtUjgXV/WIlX mrUWKFNLLhn6wVRp7Fli8/1w4mVWyImye3hoAe7qtH4r652a4hRQAA60deUTn6Xev/5C fdWg== X-Gm-Message-State: AGRZ1gK41R5djaFN1CbzqfC78MMrj//YKRm+Org/sZVWsgOyqYLpiKth A6mOouIFzCSg9RH/+HjgTNcim1lZ X-Google-Smtp-Source: AJdET5f3q2pM5N014v9sq0oZkZuTaJ+CoqOz3wvAeKsFUHXj4ne0G6PTwZbyoqi8jNHw/gy46folyQ== X-Received: by 2002:a37:ae06:: with SMTP id x6-v6mr3756794qke.238.1540411139695; Wed, 24 Oct 2018 12:58:59 -0700 (PDT) Received: from Olgas-MBP-195.attlocal.net (172-10-226-31.lightspeed.livnmi.sbcglobal.net. [172.10.226.31]) by smtp.gmail.com with ESMTPSA id d124-v6sm3872380qkf.85.2018.10.24.12.58.58 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 24 Oct 2018 12:58:59 -0700 (PDT) From: Olga Kornievskaia <olga.kornievskaia@gmail.com> To: trond.myklebust@hammerspace.com, anna.schumaker@netapp.com, viro@zeniv.linux.org.uk, smfrench@gmail.com, miklos@szeredi.hu Cc: linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-cifs@vger.kernel.org, linux-unionfs@vger.kernel.org, linux-man@vger.kernel.org Subject: [PATCH v2 13/13] NFS COPY handle ERR_OFFLOAD_DENIED Date: Wed, 24 Oct 2018 15:58:37 -0400 Message-Id: <20181024195837.35532-15-olga.kornievskaia@gmail.com> X-Mailer: git-send-email 2.10.1 (Apple Git-78) In-Reply-To: <20181024195837.35532-1-olga.kornievskaia@gmail.com> References: <20181024195837.35532-1-olga.kornievskaia@gmail.com> Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: <linux-cifs.vger.kernel.org> X-Mailing-List: linux-cifs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
client-side support for "inter" SSC copy
|
expand
|
diff --git a/fs/nfs/nfs42proc.c b/fs/nfs/nfs42proc.c index 00809b3..c7c2ffa 100644 --- a/fs/nfs/nfs42proc.c +++ b/fs/nfs/nfs42proc.c @@ -395,7 +395,8 @@ ssize_t nfs42_proc_copy(struct file *src, loff_t pos_src, args.sync = true; dst_exception.retry = 1; continue; - } else if (err == -ESTALE && + } else if ((err == -ESTALE || + err == -NFS4ERR_OFFLOAD_DENIED) && !nfs42_files_from_same_server(src, dst)) { nfs42_do_offload_cancel_async(src, &args.src_stateid); err = -EOPNOTSUPP;