From patchwork Fri Jul 12 16:34:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 2827020 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C7BAFC0AB2 for ; Fri, 12 Jul 2013 16:42:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0038E2013A for ; Fri, 12 Jul 2013 16:42:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F19552012D for ; Fri, 12 Jul 2013 16:42:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964868Ab3GLQmE (ORCPT ); Fri, 12 Jul 2013 12:42:04 -0400 Received: from mail-yh0-f43.google.com ([209.85.213.43]:43610 "EHLO mail-yh0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964817Ab3GLQmD (ORCPT ); Fri, 12 Jul 2013 12:42:03 -0400 Received: by mail-yh0-f43.google.com with SMTP id b12so3806375yha.30 for ; Fri, 12 Jul 2013 09:42:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:from:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=jWSaUf9HnLSXqI+wllYHyNB49En/Pv8rtoA2G/UqYC4=; b=Cmmjp6MN2S/ImjeUwOBlfcwlLreGkhLumjMZUFWuFW+RO26tnQ/rXxUGU5YMztnqMx B3UHCw/RO0mwCU4c8yf6UnYpLXQua397uD52qdHOZU8U9SqixUAQ8VyhQc4rTaQQzpmj zAj2Opn/OExkz/1PCiZ8APl7OsyGzOCLS+n4lkXVaDvD8VFbLZaiZD8Cl5wijFar4MkP IiYAy6vb/dPLOZDeQ3iPiDdBVzkcsbEmHVxb0FmQC0lIt32aDUbNxO9tOAq4XT8UkIIO AuYDudcmsHSiPty0IgYc8ejRUtK8X7/SG/3Uj9S1sflgX4O3r40UN8XZRP2KTxq7AjsZ HVmA== X-Received: by 10.236.127.9 with SMTP id c9mr24182927yhi.73.1373646854470; Fri, 12 Jul 2013 09:34:14 -0700 (PDT) Received: from seurat.1015granger.net ([2604:8800:100:81fc:20c:29ff:fe93:815b]) by mx.google.com with ESMTPSA id g39sm69015357yhb.13.2013.07.12.09.34.13 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 12 Jul 2013 09:34:14 -0700 (PDT) Subject: [PATCH v1 19/19] NFS: Set EXCHGID4_FLAG_SUPP_MOVED_MIGR To: linux-nfs@vger.kernel.org From: Chuck Lever Date: Fri, 12 Jul 2013 12:34:13 -0400 Message-ID: <20130712163413.1444.98938.stgit@seurat.1015granger.net> In-Reply-To: <20130712155303.1444.62697.stgit@seurat.1015granger.net> References: <20130712155303.1444.62697.stgit@seurat.1015granger.net> User-Agent: StGit/0.16 MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We have all the pieces in place to support NFSv4 minor version 1 migration in our client. The client should advertise its support for migration. Note that v4.1 migration is untested. There are no servers in the wild that support NFSv4.1 migration. Signed-off-by: Chuck Lever --- fs/nfs/nfs4proc.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 80afb9f..8d0fab7 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -5876,8 +5876,10 @@ out: return status; } -/* - * nfs4_proc_exchange_id() +/** + * nfs4_proc_exchange_id - Instantiate client ID + * @clp: server state + * @cred: RPC credential to use for this call * * Returns zero, a negative errno, or a negative NFS4ERR status code. * @@ -5892,7 +5894,8 @@ int nfs4_proc_exchange_id(struct nfs_client *clp, struct rpc_cred *cred) struct nfs41_exchange_id_args args = { .verifier = &verifier, .client = clp, - .flags = EXCHGID4_FLAG_SUPP_MOVED_REFER, + .flags = EXCHGID4_FLAG_SUPP_MOVED_REFER | + EXCHGID4_FLAG_SUPP_MOVED_MIGR, }; struct nfs41_exchange_id_res res = { 0