From nobody Thu Nov 13 09:11:19 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=crudebyte.com ARC-Seal: i=1; a=rsa-sha256; t=1578962109; cv=none; d=zohomail.com; s=zohoarc; b=BLuWdpOwAKIKGBlthNtQ/b2UzJJ2kAX83UHSzkoSXu0JVdVyO5rHJ0R6lYs5pype2+G9oma/kVrHjo16TsO4RTooRmCpe2bgwIuazjt6zDISgAf4KNK+3uJR3cxhboNxIe3TpGVrccYvukoBELdlGN/J14xdVgPj5DQkUitQl/c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578962109; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=gSrLBSeXST+abK1XbYVkGJqXNFTw0aCRskxx7cYuZSs=; b=kxRXRz76EHD5Ap12kiSsJtaoyANoPyP5A8CbiRzphf7gVNGvLhdW0KHjX+yUtHRhrZCsmOfPMLni5+9n2Y94/WJ9vE72gdkzlY98yLJ/X+kYkpsG3OxS+i9ScqCvy1mL/kmoyQY7noYqrq/XHjzzYOUvkd1X14FFpBIeVxj/G8o= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 157896210999348.951444401707704; Mon, 13 Jan 2020 16:35:09 -0800 (PST) Received: from localhost ([::1]:57438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irAAn-0008Fr-17 for importer@patchew.org; Mon, 13 Jan 2020 19:35:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33964) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <178b9a7187b004998ffb313ef750851cdbfbcf6c@lizzy.crudebyte.com>) id 1irA9T-00069V-BY for qemu-devel@nongnu.org; Mon, 13 Jan 2020 19:33:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <178b9a7187b004998ffb313ef750851cdbfbcf6c@lizzy.crudebyte.com>) id 1irA9S-00083m-Ar for qemu-devel@nongnu.org; Mon, 13 Jan 2020 19:33:47 -0500 Received: from lizzy.crudebyte.com ([91.194.90.13]:51305) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <178b9a7187b004998ffb313ef750851cdbfbcf6c@lizzy.crudebyte.com>) id 1irA9S-0007Cq-4E for qemu-devel@nongnu.org; Mon, 13 Jan 2020 19:33:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=lizzy; h=Cc:To:Subject:Date:From:References:In-Reply-To: Message-Id:Content-Type:Content-Transfer-Encoding:MIME-Version:Content-ID: Content-Description; bh=gSrLBSeXST+abK1XbYVkGJqXNFTw0aCRskxx7cYuZSs=; b=UWQQm mjoTPNdhEHqMVk6AY9QFdwIvpFrjR6euqqw0XF3mP57PS36ct8ibrN6TtIJJJiTH7WtSEWXecX3r4 PtdTDSmjcAADDTSBybOShpbjINELO3+O83XW67RJCxPt6FZ98APrKX2wDVsz/T/uw4MxE1Q6vk8qL t8kfA9kfOaY6/6SGlsAhkKWGEFyL8ZEjX+wUjQABro4UWjuYxJGT/Z5ZtLfGFmNPZR/4pPUrPh2ge jYNSlCwSA2BD3KEkU1TfyGPE591Xq1GTmFDlqggDgjb89G8VGFpNlxrVxMrf5i0CES/thd4oIIS1C s8HNp8gDqyxKelTp+i1fzHbYbjagQ==; Message-Id: <178b9a7187b004998ffb313ef750851cdbfbcf6c.1578957500.git.qemu_oss@crudebyte.com> In-Reply-To: References: From: Christian Schoenebeck Date: Tue, 14 Jan 2020 00:13:55 +0100 Subject: [PATCH v3 07/11] tests/virtio-9p: failing splitted readdir test To: qemu-devel@nongnu.org Cc: Greg Kurz X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 91.194.90.13 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @crudebyte.com) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This patch is not intended to be merged. It resembles an issue (with debug messages) where the splitted readdir test fails because server is interrupted with transport error "Failed to decode VirtFS request type 40", which BTW fails both with the unoptimized and with the optimized 9p readdir code. Signed-off-by: Christian Schoenebeck --- tests/virtio-9p-test.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/virtio-9p-test.c b/tests/virtio-9p-test.c index 55bfe41dfd..f5a8a192b5 100644 --- a/tests/virtio-9p-test.c +++ b/tests/virtio-9p-test.c @@ -644,13 +644,14 @@ static void fs_readdir_split(void *obj, void *data, Q= GuestAllocator *t_alloc) int fid; uint64_t offset; /* the Treaddir 'count' parameter values to be tested */ - const uint32_t vcount[] =3D { 512, 256 }; + const uint32_t vcount[] =3D { 512, 256, 128 }; const int nvcount =3D sizeof(vcount) / sizeof(uint32_t); =20 fs_attach(v9p, NULL, t_alloc); =20 /* iterate over all 'count' parameter values to be tested with Treaddi= r */ for (subtest =3D 0; subtest < nvcount; ++subtest) { + printf("\nsubtest[%d] with count=3D%d\n", subtest, vcount[subtest]= ); fid =3D subtest + 1; offset =3D 0; entries =3D NULL; @@ -671,12 +672,16 @@ static void fs_readdir_split(void *obj, void *data, Q= GuestAllocator *t_alloc) * entries */ while (true) { + printf("\toffset=3D%ld\n", offset); npartialentries =3D 0; partialentries =3D NULL; =20 + printf("Treaddir fid=3D%d offset=3D%ld count=3D%d\n", + fid, offset, vcount[subtest]); req =3D v9fs_treaddir(v9p, fid, offset, vcount[subtest], 0); v9fs_req_wait_for_reply(req, NULL); v9fs_rreaddir(req, &count, &npartialentries, &partialentries); + printf("\t\tnpartial=3D%d nentries=3D%d\n", npartialentries, n= entries); if (npartialentries > 0 && partialentries) { if (!entries) { entries =3D partialentries; @@ -713,6 +718,8 @@ static void fs_readdir_split(void *obj, void *data, QGu= estAllocator *t_alloc) } =20 v9fs_free_dirents(entries); + + printf("PASSED subtest[%d]\n", subtest); } =20 g_free(wnames[0]); --=20 2.20.1