plan9fox/sys/src/cmd/cwfs
cinap_lenrek 159f96c534 cwfs: properly handle 64 bit qid path
for historical reasons, kenfs stores directory entries in pre 9p2000
format with directories having the QPDIR bit 31 set in the qid path.

however, the 64 bit fileserver allows 64 bit qid paths.

given that we do not support pre 9p2000 clients and do not rely on
the QPDIR, but want to keep the block check tags consistent, we will
*INVERT* the QPDIR bit in directory entry qid paths for directories.

this preserves the on-disk semantics (for < 31 bit qmax) but does
not complicate qid generation and recovery. also makes it easy to
convert between directory entry qid and 9p format.
2019-06-19 22:58:16 +02:00
..
9netics32.16k
9netics64.8k
choline
cwfs
cwfs64
cwfs64x
doc
emelie
fs
fs64
9p2.c cwfs: properly handle 64 bit qid path 2019-06-19 22:58:16 +02:00
32bit.h
64bit.h
64xbit.h
all.h
auth.c
chk.c cwfs: properly handle 64 bit qid path 2019-06-19 22:58:16 +02:00
con.c cwfs: properly handle 64 bit qid path 2019-06-19 22:58:16 +02:00
config.c
console.c
cw.c cwfs: properly handle 64 bit qid path 2019-06-19 22:58:16 +02:00
data.c
dentry.c cwfs: properly handle 64 bit qid path 2019-06-19 22:58:16 +02:00
fworm.c
io.h
iobuf.c cwfs: properly handle 64 bit qid path 2019-06-19 22:58:16 +02:00
juke.c
lrand.c
main.c
malloc.c
mkfile
mworm.c
net.c
portdat.h
portfns.h cwfs: properly handle 64 bit qid path 2019-06-19 22:58:16 +02:00
portmkfile
proc.c
README
scsi.c
srv.c
sub.c cwfs: properly handle 64 bit qid path 2019-06-19 22:58:16 +02:00
time.c
uidgid.c
wren.c

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.