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=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3786 invoked from network); 15 Feb 2021 17:59:54 -0000 Received: from tb-ob20.topicbox.com (173.228.157.66) by inbox.vuxu.org with ESMTPUTF8; 15 Feb 2021 17:59:54 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob20.topicbox.com (Postfix) with ESMTP id 098591CD1F for ; Mon, 15 Feb 2021 12:59:51 -0500 (EST) (envelope-from bounce.mM226ea8444212b13fc9a35ab2.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id C35C217376C8; Mon, 15 Feb 2021 12:59:50 -0500 (EST) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=messagingengine.com header.i=@messagingengine.com header.b=FWrY0hW8 header.a=rsa-sha256 header.s=fm2 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=nohup.io header.i=@nohup.io header.b=Edj9Sy0D header.a=rsa-sha256 header.s=fm1 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=nohup.io; spf=pass smtp.mailfrom=pouya+lists.9fans@nohup.io smtp.helo=wout3-smtp.messagingengine.com; 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:date:from:mime-version :content-type:content-transfer-encoding:list-help:list-id :list-post:list-subscribe:reply-to:subject:list-unsubscribe; s= sysmsg-1; t=1613411990; bh=KNJXw3CgpSgrXzZf2wSctrYWSHUIDTEr1wI5k BqPwII=; b=MeebDihqnNEs9yyo1lHpBg8rMJ1t81Oc57qdB/2Pgrc6CfsLGJcvd faPnBDgsHB0PnCuljxsyxU3aDJIhvfN6GBAo/ovxCRsR990w8iAE9LY4ZErMXo/x /IQ7baQuJBuNJwersnZUVxvzs2pMEP2lGDWMzmOjBT3hqhurPTWuCA= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1613411990; b=oj3q9Hj/ZvQ6iQF2tLTpShicVRcfbrxEtnYzB0JzjlbH/m0oPq mywojILcuBqLc6OrgFc1OVhuRJsrPd6fzmAyJAU+3Fdk+waJqgx1webrea9WI070 yf7hswo/+/Eao1mYNnaTsBKoxn8E6Cknv9W3KeVJK7uZpjU9LhaR/5YDU= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=messagingengine.com header.i=@messagingengine.com header.b=FWrY0hW8 header.a=rsa-sha256 header.s=fm2 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=nohup.io header.i=@nohup.io header.b=Edj9Sy0D header.a=rsa-sha256 header.s=fm1 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=nohup.io; spf=pass smtp.mailfrom=pouya+lists.9fans@nohup.io smtp.helo=wout3-smtp.messagingengine.com; 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=skipped (DMARC did not pass); dkim=pass (2048-bit rsa key sha256) header.d=messagingengine.com header.i=@messagingengine.com header.b=FWrY0hW8 header.a=rsa-sha256 header.s=fm2 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=nohup.io header.i=@nohup.io header.b=Edj9Sy0D header.a=rsa-sha256 header.s=fm1 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=nohup.io; iprev=pass smtp.remote-ip=64.147.123.19 (wout3-smtp.messagingengine.com); spf=pass smtp.mailfrom=pouya+lists.9fans@nohup.io smtp.helo=wout3-smtp.messagingengine.com; x-aligned-from=pass (Address match); x-me-sender=pass policy.xms= jLYqYLdpewQQSMBYgdIofDpHoGHAnAg0fAAxUAy4SJKj3f3jv8jn8pkIWuYx8tHpvGSji36RwpaHbFGPgc3mUkQH0k4hTqLOxt0ZflmUAfGE8EHkC1wKyolLnuoKco68r1VkLnDYy2Z9394; x-ptr=pass smtp.helo=wout3-smtp.messagingengine.com policy.ptr=wout3-smtp.messagingengine.com; x-return-mx=pass header.domain=nohup.io policy.is_org=yes (MX Records found: in2-smtp.messagingengine.com,in1-smtp.messagingengine.com); x-return-mx=pass smtp.domain=nohup.io policy.is_org=yes (MX Records found: in2-smtp.messagingengine.com,in1-smtp.messagingengine.com); 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:date:from:mime-version:content-type :content-transfer-encoding:list-help:list-id:list-post :list-subscribe:reply-to:subject:list-unsubscribe; s=dkim-1; bh= TUaQk/1lWCkJb5KminCVwPIM8u1ajrporJ6b2VAHy4Q=; b=LmzlI14zJcFRDUQK y5Vq2CY6WkX5rSac/MDlTLI9/Vugm/4ChST4w2dcxdBoodh6LVbckr7mZs8VKzaz qy6iCsvnxoOaTA8R0Eo344SsyTG0qGzSzw0ErcfB6WjrOqdjPa05Ck8cn6jCb9K/ 1xnWWrh0FybQrQSA8nfDnhzGdc4= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 23A46183C7D9 for <9fans@9fans.net>; Mon, 15 Feb 2021 12:59:40 -0500 (EST) (envelope-from pouya+lists.9fans@nohup.io) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id 58AB8A733EF; Mon, 15 Feb 2021 12:59:40 -0500 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1613411980; b=u8mw6og2w7doklXExoH8/3+X5uAR/3QGHOmJDJzChUEqgAOaDO RNseVRCV8jAeTy3l5/9f6riiA1E6DqoXMdyDZfQqAWRrYsdhRfdbWmkTSXIdhOs0 XsV7mzaQ0RwRnrmQThqQFRgZUdi92HGEJ2tjp3DAJbgYwidE+zs27Sn2Gc7v156i 8iZ3uMfIVeJ6oEK6okeySPD9ttnuRCHZB8rJozbdEzw+f/baD4xRRaUQUa/UNAbQ /LMiOKf3cTRz1ULWKQ2dHoBNFfsRZ7d4pr2jyb8hnGxi6t/mysUv3vppQYMAVn6K 3A/9Lrt1djTOHOTp7M4ZppjWqy8GdlNnCQOA== 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= 1613411980; bh=jFx5hQFzYaS8kuaqFEK10VcrkuPZLOYX4mz8z7jCvXI=; b=S Tq2zBfuyVOWqy1MIIWBwYprSQlnRIYbT1PgLG6uP6cs+ezTu7EA0lq5q9lmD3JZt gyCkmSmgnupjJgfshFfm2o3NTsRm54tkOfNFKeovpbQgP3hGXZKXEIVmM5NzVcd1 Glu/zK7+RKj/zJuMf+ytzsa4vVVPE17RpfIrJvJMaINGJMD0AO5QLhYX8JsUyHZp UuluIoldUKQYdZ1IOptbZv7lc3RvcbqSOWzwd6mxzLoF0NIVvsAtr/wjLBMe6iqp dYjKDfoA67k9KcXuYXZukDEKTiYcOFsDYGURWuuO7LHeYnJjBPieX5GHiKqEqS/g QaYVKme6POefb3d9jpzKQ== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=pass (2048-bit rsa key sha256) header.d=messagingengine.com header.i=@messagingengine.com header.b=FWrY0hW8 header.a=rsa-sha256 header.s=fm2 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=nohup.io header.i=@nohup.io header.b=Edj9Sy0D header.a=rsa-sha256 header.s=fm1 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=nohup.io; iprev=pass smtp.remote-ip=64.147.123.19 (wout3-smtp.messagingengine.com); spf=pass smtp.mailfrom=pouya+lists.9fans@nohup.io smtp.helo=wout3-smtp.messagingengine.com; x-aligned-from=pass (Address match); x-me-sender=pass policy.xms= jLYqYLdpewQQSMBYgdIofDpHoGHAnAg0fAAxUAy4SJKj3f3jv8jn8pkIWuYx8tHpvGSji36RwpaHbFGPgc3mUkQH0k4hTqLOxt0ZflmUAfGE8EHkC1wKyolLnuoKco68r1VkLnDYy2Z9394; x-ptr=pass smtp.helo=wout3-smtp.messagingengine.com policy.ptr=wout3-smtp.messagingengine.com; x-return-mx=pass header.domain=nohup.io policy.is_org=yes (MX Records found: in2-smtp.messagingengine.com,in1-smtp.messagingengine.com); x-return-mx=pass smtp.domain=nohup.io policy.is_org=yes (MX Records found: in2-smtp.messagingengine.com,in1-smtp.messagingengine.com); 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: gggruggvucftvghtrhhoucdtuddrgeduledrieekgdekleculddtuddrgeduhedrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghn shhusghstghrihgsvgdpuffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtne cunecujfgurhepkffvufffhfggtgfgsehtjehjtddttddvnecuhfhrohhmpehpohhuhigr odhlihhsthhsrdelfhgrnhhssehnohhhuhhprdhiohenucggtffrrghtthgvrhhnpeehje ehheehuedvgefgudeiveevkeegieejhffghfehveeiheeileejieelfedtjeenucfkphep ieegrddugeejrdduvdefrdduledpjeejrdegjedrleekrdejieenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepihhnvghtpeeigedrudegjedruddvfedrudelpdhhvghl ohepfihouhhtfedqshhmthhprdhmvghsshgrghhinhhgvghnghhinhgvrdgtohhmpdhmrg hilhhfrhhomhepoehpohhuhigrodhlihhsthhsrdelfhgrnhhssehnohhhuhhprdhioheq pdhmrghilhhfrhhomhepphhouhihrgdolhhishhtshdrlehfrghnshesnhhohhhuphdrih ho X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (nohup.io: Sender is authorized to use 'pouya+lists.9fans@nohup.io' in 'mfrom' identity (mechanism 'include:spf.messagingengine.com' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="pouya+lists.9fans@nohup.io"; helo=wout3-smtp.messagingengine.com; client-ip=64.147.123.19 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (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>; Mon, 15 Feb 2021 12:59:39 -0500 (EST) (envelope-from pouya+lists.9fans@nohup.io) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id AA151EC6 for <9fans@9fans.net>; Mon, 15 Feb 2021 12:59:38 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 15 Feb 2021 12:59:38 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrieekgddutddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkvffufffhgggtgfesthejjhdttd dtvdenucfhrhhomhepphhouhihrgdolhhishhtshdrlehfrghnshesnhhohhhuphdrihho necuggftrfgrthhtvghrnhepheejheehheeuvdeggfduieevveekgeeijefhgffhheevie ehieeljeeileeftdejnecukfhppeejjedrgeejrdelkedrjeeinecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphhouhihrgdolhhishhtshdrle hfrghnshesnhhohhhuphdrihho X-ME-Proxy: Received: from plan9 (unknown [77.47.98.76]) by mail.messagingengine.com (Postfix) with ESMTPA id F391D1080057 for <9fans@9fans.net>; Mon, 15 Feb 2021 12:59:36 -0500 (EST) Message-ID: <25c14ae7d3170c12da15b2a1f47fd646@nohup.io> To: 9fans@9fans.net Date: Mon, 15 Feb 2021 17:59:33 +0000 From: pouya+lists.9fans@nohup.io 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: 95a4d540-6fb7-11eb-abc9-f08c578973b5 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UYjM5ZDcxYTU0OTdiYmEyZC1NMjI2ZWE4NDQ0MjEyYjEzZmM5YTM1?= =?UTF-8?B?YWIyPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Subject: [9fans] 9p(2) and walk1 List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M226ea8444212b13fc9a35ab2:1:nViDxvUXfrUpPQ8Imqc08Q42qlABfNHh3BA8cmK6W1w 9p(2) says the following about char* (*walk1)(Fid *fid, char *name, Qid *qid); | Because implementing the full walk message is intricate and prone to | error, the helper routine walkandclone will handle the request given | pointers to two functions walk1 and (optionally) clone. [...] Walk1 | should walk fid to name, initializing fid->qid to the new path's | qid.Both should return nil on success or an error message on error. And later: | If the client provides functions srv->walk1 and (optionally) | srv->clone, the 9P service loop will call walkandclone with these | functions to handle the request. Unlike the walk1 above, srv->walk1 | must fill in both fid->qid and *qid with the new qid on a successful | walk. I think the distinction being made is that if walk1 is populated in a struct served by srv(2) it needs to set *qid, but not if it's used instead to construct a walk function explicitly using walkandclone. A quick look at the source code of lib9p seems to confirm this. I looked at the implementation of nntpfs(4) and webfs(4), which both set walk1. The former sets both fid->qid and *qid and the latter only *qid, which seems it could be ok from a quick look at the source of lib9p, but goes against the above instructions AFAICS. Are these subtle differences (the two in the man page and the third in code) intentional? It's my first time implementing a 9P file system so apologies if I'm missing something basic. Thanks, Pouya ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tb39d71a5497bba2d-M226ea= 8444212b13fc9a35ab2 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription