summaryrefslogtreecommitdiff
path: root/sys/src/cmd/9660srv
AgeCommit message (Collapse)Author
2020-08-01pre-lib9p servers: fix incorrect Tversion handlingkvik
version(5) says: If the server does not understand the client's version string, it should respond with an Rversion message (not Rerror) with the version string the 7 characters ``unknown''. Pre-lib9p file servers -- all except cwfs(4) -- do return Rerror. lib9p(2) follows the above spec, although ignoring the next part concerning comparison after period-stripping. It assumes an Fcall.version starting with "9P" is correctly formed and returns the only supported version of the protocol, which seems alright. This patch brings pre-lib9p servers in accordance with the spec.
2020-03-07dossrv, 9660srv, hjfs: stop *READING* standard *OUTPUT* with -s flagcinap_lenrek
with the -s flag, we should read 9P messages from standard *INPUT* (fd 0) and write responses to standard *OUTPUT* (fd 1). before these servers where reading from fd 1, assuming they where both the same files.
2016-11-17cmd: remove a bit of unused stuffftrvxmtrx
2016-07-24make error handling in 9p service loops consistentcinap_lenrek
when we get eof, stop the loop immidiately and do not rely on the read to eventually return an error. when convM2S() fails to decode the message, error out and stop the loop. there is no point in continuing.
2015-10-059660srv: do not ignore upper 32 bits of offset when reading directorycinap_lenrek
2015-07-149660srv: keep data and metadata separate in the cache with a tagcinap_lenrek
data on the disk is layed out sequentially and directory information is at the end of the disk. we want to keep data and metadata separated so that reading large sequential files will not evict the directory information from the cache causing long seeks. for that, we tag the clusters (an 8th for metadata, and the rest for data) and getbuf() will only evict clusters of the same tag.
2015-07-139660srv: go back to 128k clusterscinap_lenrek
doing tests taring up 9front.iso shows the following: lowering the cluster size back to 128k avoids over half the reads. 837888 sectors read for 512k vs. 347712 sectors with 128k cluster size.
2013-01-229660srv: run 9p service in separate namespace to prevent deadlockcinap_lenrek
we have to run the 9p service process in its own namespace otherwise the attach filename might point onto the served filesystem causing it to deadlock. this happens especially if 9660srv is used as root filesystem. (cdboot)
2011-06-169660srv: fix memory leakcinap_lenrek
2011-06-06fix real cause of iso name truncationcinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen