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 23534 invoked from network); 10 Mar 2021 19:36:57 -0000 Received: from tb-ob0.topicbox.com (64.147.108.117) by inbox.vuxu.org with ESMTPUTF8; 10 Mar 2021 19:36:57 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob0.topicbox.com (Postfix) with ESMTP id 2FF562674E for ; Wed, 10 Mar 2021 14:36:55 -0500 (EST) (envelope-from bounce.mMf45bcfc5bcd0d01d25fda0e1.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 29E044A1CFCB; Wed, 10 Mar 2021 14:36:55 -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=1615405015; bh=V3ek2Zxii2aRtQaGllBUIzPVjys7aBiydCwbG22gA+A=; b= dyk2JGyQtMnfc3fZ3xpagtazwqy5xMsWu3y1tT3Jw0WAhk0Zt0KXh/LJN12UKB8Q V2LUnGtWVpssTHfHrbAmLNXvn8dBiitpgAFDCpRsblmXRROA0ZNU189YB/5o5Z2+ aJOC9K90vjv1DTy7InU75JLIJA130pg/tdzeLA3T6AE= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1615405015; b=Kt/gOdSwl3vNm2yGhlqUEiZwebR8STjVTOlPOqgpCx5kROQI1p x5jg0DAbusBEYA1Sp89xc2LtIBskQ3fIQYO7w13F6fE19Mk6oz2hqxnec+O4QyBX kJiZwMRoZB4GcQsrDeSlKSYec5maILIBcc7jfeoP/6LZae6wt/GCzjGII= 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=GGm12f8Y x0R6s1cL5DDWEY7rVYVMbfdMJxeb7BOPMwE=; b=gwqSz+YTm1kwPPeRKiOBeNl6 dgrZvDfcVPvjq1RJUW6VYkKD5ulYn6Z4m7J3H+Z+7KrJYpZteZZVGQxFCAahZsfA hUWVwymAF0gWUl5UC8+bSMY0JO3rKUdGGdUNdcrySSiXiomTfC4vUIHOO9u9T9/e sGu9dw7Xmy4/WDNklM4= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 0CCC31C7E3FE for <9fans@9fans.net>; Wed, 10 Mar 2021 14:36:45 -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 99515C0D192; Wed, 10 Mar 2021 14:36:45 -0500 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1615405005; b=vYB18VgkmiTbaVJdrMyBq+3tnRJHWYUK3gomtGzNJfLPCnafBc TH2tXOzzhnbJ/SPVb+ekBuQfwGRPE7rVqCPC51AbbdzVEd8DYHmMBSZ9zBM4Sthf fOlxgZ3DrjNRM6nThNwUf12jWn0e5jqUo/HZ4v+x0Q0jsQqeHW+kDv98wm00ldtB vszKNAOaG/DfKx1S0wp+AFc72xZOiVoilYufYetmGhhgy+fCe5UW71pqmCHargOB PIYhRBIR+KNzxcDrWE4O68h2UGSA/XF/hixCKj4zo5EYeHLDqrbPbXx2+IphfO5b pTjcKbNc7PXem2SDQUrzssON+v3BY4OE+rNQ== 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= 1615405005; bh=AJLnnDqEI54ZQiGyrWHrnTazSCvbXGyOUp9EB5WjOZc=; b=f NQZaCk0V2fP2zLvd8BoTPWL0m/OIvPb9M5/1PHeLuohW3LKVrLxAJUy0wAEMuWqY GhrBzWochBWjHU6L1TAikqViEIsOyMQdXHQbpUMHLgeF1LMBLA2ap6JzMX9YPFiD tw6K0N7MkeJWjpcp9Tb6cSxlfG/7Bvbptee4hBkYZE/Pk6Zq0pjSBey9f1lT+D+U ML+PLhBmdZNdz45RmMSvheT54Ye8EiGr5ePtyGj0XnNLEpgrMEbq80lzgg2niYDV KU9ptkMnS/C+PEEs1PlzOviS6RbpSpttGQeyNR5eBu2oy5J+2fM+S2QuMHFLXXWV OeV3k91L4Dy77x9KJ4qlw== 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: gggruggvucftvghtrhhoucdtuddrgeduledruddukedguddtudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepvffuff fhgggtgfesthejtddttddtvdenucfhrhhomhepnhhitgholhgrghhisehsughfrdhorhhg necuggftrfgrthhtvghrnhepteehvdffgfejffeivdehteffheejteeilefhhfdvffekue elteegieejiefgtefhnecukfhppedvtdehrdduieeirdelgedrvdegpddvtdehrdduieei rdelgedrleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvtd ehrdduieeirdelgedrvdegpdhhvghlohepmhigrdhsughfrdhorhhgpdhmrghilhhfrhho mhepoehnihgtohhlrghgihesshgufhdrohhrgheq 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>; Wed, 10 Mar 2021 14:36:43 -0500 (EST) (envelope-from nicolagi@sdf.org) Received: from sdf.org (IDENT:nicolagi@faeroes.freeshell.org [205.166.94.9]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 12AJagJo013455 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for <9fans@9fans.net>; Wed, 10 Mar 2021 19:36:42 GMT Received: (from nicolagi@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 12AJageu014379 for 9fans@9fans.net; Wed, 10 Mar 2021 19:36:42 GMT Message-Id: <202103101936.12AJageu014379@sdf.org> To: 9fans@9fans.net Subject: Re: [9fans] 9P reading directories client/server behavior Date: Wed, 10 Mar 2021 19:36:38 +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: f4f20540-81d7-11eb-8bfb-e36682b952d7 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UNjVhODE2MjRiN2I5ZGIwZi1NZjQ1YmNmYzViY2QwZDAxZDI1ZmRh?= =?UTF-8?B?MGUxPg==?= 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:Mf45bcfc5bcd0d01d25fda0e1:1:x2OdaA15c_NMzkPisdJ3FpYBio3997tTkibnZB91_Yg Quoting Anthony Martin : > nicolagi via 9fans <9fans@9fans.net> once said: >> 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? >=20 > In that case either the server or client lied about it's > msize and is not correctly speaking the 9p protocol. >=20 >>>From version(5): >=20 > The client suggests a maximum message size, msize, that is > the maximum length, in bytes, it will ever generate or ex- > pect to receive in a single 9P message. This count includes > all 9P protocol data, starting from the size field and ex- > tending through the message, but excludes enveloping trans- > port protocols. The server responds with its own maximum, > msize, which must be less than or equal to the client's > value. Thenceforth, both sides of the connection must honor > this limit. Different clients can still negotiate different values for msize. I've written a program to show that the scenario I'm talking about is real. Here's the trace that shows creating a file with an absurdly large name (name omitted): Tversion msize 131072 version '9P2000' Rversion msize 131072 version '9P2000' Tattach fid 1 afid 4294967295 uname 'nicolagi' nuname 4294967295 an= ame '' Rattach aqid (16061c98c25a5b1c 1 'd') Twalk fid 1 newfid 2 0:'tmp'=20 Rwalk (16061c9a5c4069e4 1 'd')=20 Tcreate fid 2 name 'ality.OMITTED' perm 666 mode 0=20 Rcreate qid (166b10d3f614e29e 1 '') iounit 0 Tclunk fid 2 Rclunk Listing using a connection with msize 8192 and grepping the new file: ; 9p ls pine/tmp | grep ality | wc -l 0 I can create another file after the absurdly named one, but I can't list it, because the client wrongly detects EOF before reaching that: ; date > another ; ls | grep another | wc -l 0 You can see why I thought a server may return Rerror instead of silently clipping the listing. But it's fine, nobody will generate such large dir entries, I was just confused to find this edge case and around how to handle it. I'll go write some client code to clean up my tmp folder now. :-) ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T65a81624b7b9db0f-Mf45bc= fc5bcd0d01d25fda0e1 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription