plan9fox/sys/src/cmd/cwfs
Ori Bernstein 4eeefed7b0 cwfs: fix iounit negotiation
cwfs had an issue with iounit negotiation as a result
of the conversion to 9p2000 -- with the move to variable
size messages, the fixed message overhead decreased, but
the advertised message size was still adding the old
fixed overhead.

This meant that if the kernel negotiated the maximum io
size, cwfs would negotiate something larger than it
supported, and would hang up when an io of that size
was made.

In addition, the size of messages was stored in a short,
which means that negotiating an iounit larger than 16384
bytes would overflow the message count, and cause things
to fall over.

Finally, whle we're here, we clean up some duplicated
and unused constants.
2022-06-07 22:38:04 +00:00
..
9netics32.16k cwfs: remove 9p1 support 2015-08-21 18:43:25 +02:00
9netics64.8k remove mconf cruft 2011-06-16 17:33:26 +02:00
choline cwfs: remove 9p1 support 2015-08-21 18:43:25 +02:00
cwfs cwfs: remove 9p1 support 2015-08-21 18:43:25 +02:00
cwfs64 remove mconf cruft 2011-06-16 17:33:26 +02:00
cwfs64x remove mconf cruft 2011-06-16 17:33:26 +02:00
doc correcting unicode superscripts for 1 2 and 3 2012-02-23 16:58:53 +01:00
emelie cwfs: remove 9p1 support 2015-08-21 18:43:25 +02:00
fs cwfs: remove 9p1 support 2015-08-21 18:43:25 +02:00
fs64 remove mconf cruft 2011-06-16 17:33:26 +02:00
9p2.c cwfs: fix iounit negotiation 2022-06-07 22:38:04 +00:00
32bit.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
64bit.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
64xbit.h updating cwfs and moving installer in /rc/bin 2011-04-12 15:53:55 +00:00
all.h cwfs: fix iounit negotiation 2022-06-07 22:38:04 +00:00
auth.c cwfs: remove 9p1 support 2015-08-21 18:43:25 +02:00
chk.c cwfs: properly handle 64 bit qid path 2019-06-19 22:58:16 +02:00
con.c cwfs: fix iounit negotiation 2022-06-07 22:38:04 +00:00
config.c cwfs: fix %.*s format in cmd_printconf() 2019-02-25 04:36:37 +01:00
console.c cwfs: fix iounit negotiation 2022-06-07 22:38:04 +00:00
cw.c cwfs: fix interpretation of startdump argument 2020-12-06 13:54:10 +10:30
data.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
dentry.c cwfs: properly handle 64 bit qid path 2019-06-19 22:58:16 +02:00
fworm.c cwfs: make /srv/cwfs.cmd redable to receive command output 2012-07-13 15:09:39 +02:00
io.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
iobuf.c cwfs: properly handle 64 bit qid path 2019-06-19 22:58:16 +02:00
juke.c format pointer subtraction results with %zd instead of %ld (for long -> intptr on amd64) 2016-01-07 04:44:13 +01:00
main.c cwfs: remove old some assert() debugging 2019-06-20 14:06:29 +02:00
malloc.c cwfs: use /dev/swap instead of #c/swap to determine memory size 2017-10-29 21:41:35 +01:00
mkfile cwfs: make default target cwfs64x 2011-04-18 10:16:12 +00:00
mworm.c cwfs: fix 32bit multiplication overflows for allocation sizes (thanks kenji okomoto) 2014-08-09 17:37:02 +02:00
net.c cwfs: fix listen filedescriptor leaks 2019-10-04 18:54:01 +02:00
portdat.h cwfs: fix iounit negotiation 2022-06-07 22:38:04 +00:00
portfns.h cwfs: properly handle 64 bit qid path 2019-06-19 22:58:16 +02:00
portmkfile cwfs: remove 9p1 support 2015-08-21 18:43:25 +02:00
proc.c libc: add procsetname() 2018-09-26 14:56:23 +02:00
README Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
scsi.c cwfs: fix 1GB memsize limitation 2014-05-03 00:51:45 +02:00
srv.c cwfs: fix iounit negotiation 2022-06-07 22:38:04 +00:00
sub.c cwfs: fix iounit negotiation 2022-06-07 22:38:04 +00:00
time.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
uidgid.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
wren.c cwfs: remove old some assert() debugging 2019-06-20 14:06:29 +02:00

This is Ken's optical-jukebox fileserver, expanded to 64-bit disk
addresses and quadruple indirect blocks, then ported to user mode.

The APC UPS shut-down code has been moved into a separate command,
watchapc.

To customise, set RBUFSIZE and choose 32bit.h or 64bit.h in dat.h, and
tweak localconfinit(), fsprotocol[] and startsb[] in conf.c.