From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14663 invoked from network); 9 Mar 2021 14:06:10 -0000 Received: from tb-ob0.topicbox.com (64.147.108.117) by inbox.vuxu.org with ESMTPUTF8; 9 Mar 2021 14:06:10 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob0.topicbox.com (Postfix) with ESMTP id 8F1A9269B0 for ; Tue, 9 Mar 2021 09:06:06 -0500 (EST) (envelope-from bounce.mMd34dba086f695e0bf63be25f.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id 7C3331C05B22; Tue, 9 Mar 2021 09:06:06 -0500 (EST) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=quarantine policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; spf=pass smtp.mailfrom=nicolagi@sdf.org smtp.helo=mx.sdf.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=message-id:to:subject:date:mime-version :content-type:content-transfer-encoding:from:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=sysmsg-1; t=1615298766; bh=81n/Qp8eZODP7kHnUMN9QqcPUlFRxSzVtb5siZiduD4=; b= jwWWYvTQ2nB3QPNFNjPSllxO1aR+tNhqn/dpPCT2YjUKdOXKMrXjl5kd/9HTkPEv Ps94morZb6Ma8t2A8ZSoCbmYGvq7rFNCWqfHewDFQwJtIGPExaJJS7kM3suz6NzZ nxfttLvZUcenUN8npygviqTFW27KWjsnDFu24EG1xwY= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1615298766; b=E9Dua+O5DODGjD8mw0rvZ6bEO4kpjPazKHHk12/3QDzwuumVio CxEht2hLDZf8bNH5lV8kchKeurI0ZPDeGKvjorswIs2kPM6XksENtS2ofrtiBU1o RmQWgibsEkSZk5wzSD70PXD/LfCj7RR+wgphOErHwXGy3fL04ESpwus0c= Authentication-Results: topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=quarantine policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; spf=pass smtp.mailfrom=nicolagi@sdf.org smtp.helo=mx.sdf.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=none (No BIMI records found); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=quarantine policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; iprev=pass smtp.remote-ip=205.166.94.24 (mx.sdf.org); spf=pass smtp.mailfrom=nicolagi@sdf.org smtp.helo=mx.sdf.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx.sdf.org policy.ptr=mx.sdf.org; x-return-mx=pass header.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-return-mx=pass smtp.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=message-id :to:subject:date:mime-version:content-type :content-transfer-encoding:from:list-help:list-id:list-post :list-subscribe:reply-to:list-unsubscribe; s=dkim-1; bh=+OgHIzRQ 1cK/jmx2sOrkQZSNOfNzoD/bQNkVLemITV4=; b=nzLIBe3B7IQjUs77aWFl4AKT S34X+6FgVuBaqO3szn0d7jlvXItb3X1WfEf0cq2irVhmv6i8B/SQfbSq1Y6OGGwI HrIll8C81QxOGgGsJb7iwhkDdBhAefhp/mBhCJRP57qPojR5HBDmOlab7yJ1eugy X92BVtAsqXi8f+5hy0o= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 91EEB1C05761 for <9fans@9fans.net>; Tue, 9 Mar 2021 09:05:50 -0500 (EST) (envelope-from nicolagi@sdf.org) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id AC2C9D12948; Tue, 9 Mar 2021 09:05:50 -0500 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1615298750; b=W8EBd1LXrdwH5Vt03QnHdJPYp7zLTKB7nBZjoZVixmflXYWUh+ W0kzh7Nj1/afiaPh6DyCJdguUXPC1Q+/bEzWwtZZpdnjzSbY7beeT+taO8LR0O99 EaJNXywsSs6jnBorCSTmLNWjSM30mdKlo9tfRw5F8Oh/+WVTwHntb6SIvETIf26d /27DMRdxZ/a5vaHjYYDZYMmrvxG3DZK2FfCZY8zE7zTVdEiX6Jo1gDfD5vJ4MIPN SDtWpcV7lP0XDfvWlBLgMxIgQDy09jPjeJkBde8fAFYEL1j4ucrjX3dlv5wH53/1 7uWw1a8YTv1HN8gy+zdIOi8ezy8r3RfNGpKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=message-id:to:subject:date:from:mime-version :content-type:content-transfer-encoding; s=arcseal; t= 1615298750; bh=UP2Ed6t4zgnipkTIltRUD68YN+wF9O7AVzLT4y8Z0iI=; b=I btGoTtK1HO40stpvn5P7T0iHLVw++9piKYPamtMu+LS8gpETtJiIHtIIxER6/yF0 w9meuL+gf1BsV4Y+aKUhk1P7pPEXaiga/r60Kh7s4nPq6j01tFLYXne8ItGPunlY wJ3trBMu4Rc5XVsRc2+/qbT3tZubymkVIqmOtUU7z+NiHlgXFmsjOdVQpcFjRbNi JoJLLXoZfnZgGTEjTJFEemqSBRHkFAbyN2NXeMjwmGpc+y7LU2OgQssqqoURThFM 1W2RdX+C2Gz1DdPfNVUWNXbnABxJaB6em9ygp8RNP3QbqET8LiBlWmPBJB6UMYzy 3wTp+K9Vyv4VCJAqq7AsA== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=none (No BIMI records found); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=quarantine policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=sdf.org; iprev=pass smtp.remote-ip=205.166.94.24 (mx.sdf.org); spf=pass smtp.mailfrom=nicolagi@sdf.org smtp.helo=mx.sdf.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mx.sdf.org policy.ptr=mx.sdf.org; x-return-mx=pass header.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-return-mx=pass smtp.domain=sdf.org policy.is_org=yes (MX Records found: mx.sdf.org); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgeduledrudduiedgiedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefvufffhf ggtgfgsehtjedttddttddvnecuhfhrohhmpehnihgtohhlrghgihesshgufhdrohhrghen ucggtffrrghtthgvrhhnpeethedvfffgjeffiedvheetffehjeetieelhffhvdffkeeule etgeeijeeigfethfenucfkphepvddthedrudeiiedrleegrddvgedpvddthedrudeiiedr leegrdegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddthe drudeiiedrleegrddvgedphhgvlhhopehmgidrshgufhdrohhrghdpmhgrihhlfhhrohhm peeonhhitgholhgrghhisehsughfrdhorhhgqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (sdf.org: 205.166.94.24 is authorized to use 'nicolagi@sdf.org' in 'mfrom' identity (mechanism 'ip4:205.166.94.0/24' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="nicolagi@sdf.org"; helo=mx.sdf.org; client-ip=205.166.94.24 Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Tue, 9 Mar 2021 09:05:50 -0500 (EST) (envelope-from nicolagi@sdf.org) Received: from sdf.org (IDENT:nicolagi@rie.sdf.org [205.166.94.4]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 129E5nRp028038 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for <9fans@9fans.net>; Tue, 9 Mar 2021 14:05:49 GMT Received: (from nicolagi@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 129E5mMY002773 for 9fans@9fans.net; Tue, 9 Mar 2021 14:05:48 GMT Message-Id: <202103091405.129E5mMY002773@sdf.org> To: 9fans@9fans.net Subject: Re: [9fans] 9P reading directories client/server behavior Date: Tue, 9 Mar 2021 14:05:45 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 90bfa124-80e0-11eb-b494-ddccc6108a79 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UNDJiZTYzZTk2NDAwNTUxOS1NZDM0ZGJhMDg2ZjY5NWUwYmY2M2Jl?= =?UTF-8?B?MjVmPg==?= From: "nicolagi via 9fans" <9fans@9fans.net> List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Md34dba086f695e0bf63be25f:1:Ki0X9LZNxYi-6BbuBCRFQ0xXEtlxsaxMbyIwcSHac8Q As it often happens to me, a few minutes after hitting send, I am enlightened and embarassed. :-) I had a bit of tunnel vision there, and didn't think of looking at another 9P trace. When I run "9p ls foo/bar" I get the below trace, which answers most of my questions. Tread tag 0 fid 1 offset 0 count 8168 Rread tag 0 count 8109 Tread tag 0 fid 1 offset 8109 count 8168 Rread tag 0 count 5410 Tread tag 0 fid 1 offset 13519 count 8168 Rread tag 0 count 0 I took a quick look at sys/src/cmd/cwfs/9p2.c and I think it shows the server should silently return 0 bytes and no errors, even if the 0-byte return is due to the read buffer not being large enough for the next dir entry. The only question that still stands is the last in my original post: What happens and what should happen when a dir entry is larger than msize-24? Possibly written from a connection with a large msize, and to be read from a connection with a smaller msize? Thanks, Nicola ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T42be63e964005519-Md34db= a086f695e0bf63be25f Delivery options: https://9fans.topicbox.com/groups/9fans/subscription