From mboxrd@z Thu Jan 1 00:00:00 1970 From: quanstro@quanstro.net (erik quanstrom) Date: Wed, 23 Mar 2011 16:55:38 -0400 Subject: [9fans] Does 9P provide multicast for files? In-Reply-To: <9EAB7600-BFE8-4BDE-9B49-04BA94C07A3E@gmail.com> References: <9EAB7600-BFE8-4BDE-9B49-04BA94C07A3E@gmail.com> Message-ID: <35e56c75c407ad92ab2d3d9d65ff71ad@brasstown.quanstro.net> Topicbox-Message-UUID: bfa26068-ead6-11e9-9d60-3106f5b1d025 On Wed Mar 23 16:43:55 EDT 2011, paurea at gmail.com wrote: > > > With 9P, what happens when 2 readers have the same file open, both > are > blocked on a read() call, and then a writer writes to the file; > which > of the readers sees the data? Both? > > Both readers and writers are clients of a 9p file server. It decides > who to answer. It is not specified by the protocol. excellent answer. i'd like to add, though, since tags are chosen by the client, the 9p messages can't be multicast at the transport or network layer. so if data becomes available that could unblock both readers the file server may pick one, neither, or send the same data (with different tags, etc) to both. - erik