From: "Lu, Xinyu" <luxy.fnst@cn.fujitsu.com>
To: "bfields@redhat.com" <bfields@redhat.com>
Cc: "linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: [PATCH] pynfs nfs4.0 server st_write: fix the amount of data sent in the testLargeData
Date: Thu, 30 Nov 2017 08:13:14 +0000 [thread overview]
Message-ID: <2af20316-5ce4-354e-8768-4462398dc36f@cn.fujitsu.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1009 bytes --]
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 <luxy.fnst@cn.fujitsu.com>
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):
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-nfs4.0-server-st_write-fix-the-amount-of-data-sent-i.patch --]
[-- Type: text/x-patch; name="0001-nfs4.0-server-st_write-fix-the-amount-of-data-sent-i.patch", Size: 1267 bytes --]
From 6adc3da0ab17eb7e52b47805e6999d65b043fa7f Mon Sep 17 00:00:00 2001
From: Lu Xinyu <luxy.fnst@cn.fujitsu.com>
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 <luxy.fnst@cn.fujitsu.com>
---
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
next reply other threads:[~2017-11-30 8:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-30 8:13 Lu, Xinyu [this message]
2017-11-30 17:04 ` [PATCH] pynfs nfs4.0 server st_write: fix the amount of data sent in the testLargeData J. Bruce Fields
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2af20316-5ce4-354e-8768-4462398dc36f@cn.fujitsu.com \
--to=luxy.fnst@cn.fujitsu.com \
--cc=bfields@redhat.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.