From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Sun, 30 Nov 2008 09:09:59 -0600 From: "Eric Van Hensbergen" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [9fans] Dir->type & Dir->dev Topicbox-Message-UUID: 53bfe944-ead4-11e9-9d60-3106f5b1d025 The main pages are a little unclear as to the convention for assignment of dir->type & dir->dev, particularly with respect to synthetic file servers. For devices I gather that type is the device id (ie. 'c' for cons) and that dev is the instance (ie. #I2 for an alternate IP stack). Their use seems a bit more slippery when implementing user space file servers -- particular since type,dev,qid must(?) be unique per namespace. Is there a best practices convention that folks follow or is this something which most ignore and we are just lucky most of the time? -eric