From patchwork Thu Nov 30 08:10:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lu, Xinyu" X-Patchwork-Id: 10084335 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 7D157602B9 for ; Thu, 30 Nov 2017 08:10:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6206429EE4 for ; Thu, 30 Nov 2017 08:10:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 557F529EEA; Thu, 30 Nov 2017 08:10:52 +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, T_TVD_MIME_EPI 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 A8BE829EE4 for ; Thu, 30 Nov 2017 08:10:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750800AbdK3IKs (ORCPT ); Thu, 30 Nov 2017 03:10:48 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:64706 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750783AbdK3IKs (ORCPT ); Thu, 30 Nov 2017 03:10:48 -0500 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="30608811" Received: from localhost (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 30 Nov 2017 16:10:46 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id 402CB487F179; Thu, 30 Nov 2017 16:10:46 +0800 (CST) Received: from G08CNEXMBPEKD02.g08.fujitsu.local ([10.167.33.84]) by G08CNEXCHPEKD01.g08.fujitsu.local ([10.167.33.80]) with mapi id 14.03.0361.001; Thu, 30 Nov 2017 16:10:45 +0800 From: "Lu, Xinyu" To: "bfields@redhat.com" CC: "linux-nfs@vger.kernel.org" Subject: [PATCH] Thread-Topic: [PATCH] Thread-Index: AQHTabK5Y9gR6lMzb06hzfhxnt82KQ== Date: Thu, 30 Nov 2017 08:10:45 +0000 Message-ID: <838ce3da-5905-a22d-2353-d621e2d5ad95@cn.fujitsu.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.167.226.104] MIME-Version: 1.0 X-yoursite-MailScanner-ID: 402CB487F179.AC572 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: luxy.fnst@cn.fujitsu.com Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP nfs4.0 server st_write: fix the amount of data sent in the testLargeData The maximum amount of data could be writen is NFSSVC_MAXBLKSIZE. The value of NFSSVC_MAXB LKSIZE defined in the kernel is RPCSVC_MAXPLAYLOAD. If the value written exceeds NFSSVC_MAXBL KSIZE, the value is fixed as the value of NFSSVC_MAXBLKSIZE. The value of RPCSVC_MAXPAYLOAD i s 1*1024*1024u and "abcdefghijklmnopq"*0x10000 exceeds it. So the previous test is bound to f ail and is meaningless. Signed-off-by: Lu Xinyu >From 6adc3da0ab17eb7e52b47805e6999d65b043fa7f Mon Sep 17 00:00:00 2001 From: Lu Xinyu Date: Thu, 30 Nov 2017 13:24:15 +0800 Subject: [PATCH] nfs4.0 server st_write: fix the amount of data sent in the testLargeData The maximum amount of data could be writen is NFSSVC_MAXBLKSIZE. The value of NFSSVC_MAXBLKSIZE defined in the kernel is RPCSVC_MAXPLAYLOAD. If the value written exceeds NFSSVC_MAXBLKSIZE, the value is fixed as the value of NFSSVC_MAXBLKSIZE. The value of RPCSVC_MAXPAYLOAD is 1*1024*1024u and "abcdefghijklmnopq"*0x10000 exceeds it. So the previous test is bound to fail and is meaningless. Signed-off-by: Lu Xinyu --- nfs4.0/servertests/st_write.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfs4.0/servertests/st_write.py b/nfs4.0/servertests/st_write.py index 710452e..a7dae03 100644 --- a/nfs4.0/servertests/st_write.py +++ b/nfs4.0/servertests/st_write.py @@ -130,7 +130,7 @@ def testLargeData(t, env): c = env.c1 c.init_connection() fh, stateid = c.create_confirm(t.code) - data = "abcdefghijklmnopq" * 0x10000 + data = "a" * 1024 * 1024 # Write the data pos = 0 while pos < len(data): -- 2.13.3