summaryrefslogtreecommitdiff
path: root/sys/src/cmd/dossrv
AgeCommit message (Collapse)Author
2023-05-01dossrv: better error handling and sanity checking in dosfs()cinap_lenrek
check error for devread() and do some sanity checking on the constants and dont leak the Dosbpb when error.
2023-04-30dossrv: Implement support for != 512 sector and track sizescinap_lenrek
The iotrack buffer layer always assumed 512 byte sector size and 9 sectors per track. To support 4K sector size fats, make the iotrack code deal with it. Instead of the fixed size Track structure, we just allocate the pointers and buffers dynamically, and move the sector size and tack size in the Xfs structure. Tracks can still be reused between differnet file-systems after a purgetrack(). The initial fat header has to be read with devread() instead of getsect() to determine the sector/track size of the file-system.
2022-12-18dossrv: post to /srv instead of #s, leave stderror alonecinap_lenrek
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-04-25Backed out changeset 2737b9af622bOri Bernstein
not what I wanted to commit.
2020-04-25fix typos in time calculationOri Bernstein
the results of the time calculation were garbled -- and apparently negative on my system when testing, so the test passed when it shouldn't have.
2020-04-05dossrv: fix falloc() for >31 bit sector numbers (thanks sl)cinap_lenrek
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.
2020-03-07dossrv: output iotrack error message to stderrcinap_lenrek
2019-12-03always zero initialize Tm structure for tm2sec()cinap_lenrek
2018-12-24dossrv: cleanupcinap_lenrek
2018-12-23dossrv: make GLONG() return ulong, handle getsect() error in dostat()cinap_lenrek
2018-12-22dossrv: use 64 bit vlong for sectorscinap_lenrek
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-05dossrv: handle file offsets > 2^31cinap_lenrek
maximum file size is 4GB-1 as the file length is stored in a 32 bit long. make sure it doesnt overflow on write or or truncate. interpret the file length as unsigned. pass vlong to readfile()/writefile()/truncfile() so we can handle overflows and not just ignore the upper bits.
2015-06-04dossrv: maintain file creation date/time on disk, fsinfo sector can be 0 ↵cinap_lenrek
(disabled)
2012-04-14dossrv: make dos 8+3 filenames lowercasecinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen