summaryrefslogtreecommitdiff
path: root/sys/src/cmd/cwfs/con.c
AgeCommit message (Collapse)Author
2022-12-18cwfs: write /env/timezone instead of #e/timezonecinap_lenrek
2022-12-18cwfs: remove noauth and nonone commans from fileserver consolecinap_lenrek
The noauth and nonone commands are only valid in config mode. The problem is that some people assumed that issuing the noauth command in the runtime fileserver console would be persistent across reboots, which is not the case. To avoid this confusion, we remove these commands from the fileserver console. To still give a way to disable authentication at runtime, define a authdisabled flag that can be toggled at runtime.
2022-11-13Re: [9front] cwfs: Add some missing dashesJosiah Frentsos
Ping.
2022-06-07cwfs: fix iounit negotiationOri Bernstein
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.
2019-06-19cwfs: properly handle 64 bit qid pathcinap_lenrek
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.
2017-03-06cwfs: handle DMTMP flag in createcinap_lenrek
2015-09-26cwfs: various cleanupscinap_lenrek
- consistently refer to Dentry.name length with NAMELEN - make sure whoname is null terminated - remove useless nil check for whoname
2015-09-12cwfs: initialize /env/timezone on boot so dumps are in localtimecinap_lenrek
when /env/timezone file is missing (boot case), copy /adm/timezone/local to /env/timezone so localtime() can correct timezone offset.
2014-08-11cwfs: add optional uid argument to allow command, unify permission override codecinap_lenrek
the allow command now takes an optional uid argument for the user to be granted temporary god status on the fileserver for maintenance. this was kenji okomotos idea, so thanks :) remove wstatallow and writeallow flags. instead, we have global: int allowed; that contains the uid of the currently allowed user id or -1 if permission checking is globally disabled for the fileserver. when zero, normal permission checking takes place. added int isallowed(File*) function that returns non-zero when the context is the console, or the allowed user. this is also used internally by iaccess(), so all the extra code of in the callers of iaccess() is gone now. dont conflate allowed user with noauth flag and auto-allow on ream. the installer already knows about noauth and allow flags so theres no problem with bootstraping.
2012-12-07cwfs: make none attach workcinap_lenrek
allow attach as none. (this was supposed to work but it doesnt for 9p2000 because we have to check for afid being NOFID instead of checking the uname string). and add "nonone" flag to disable this.
2012-07-24cwfs: remove noatime runtime optioncinap_lenrek
2012-07-24cwfs: make sure we do a full dump after toggling noatimecinap_lenrek
2012-07-14cwfs: noatime flagcinap_lenrek
2012-07-13cwfs: make /srv/cwfs.cmd redable to receive command outputcinap_lenrek
before, cwfs would print everything to /dev/cons. this change will redirect the output of commands to the /srv/cwfs.cmd pipe so one can use: con -C /srv/cwfs.cmd and not have the fish for the output in /dev/kmesg. use standard error (/dev/cons) for unsolicited messages as there is not always a reader on the command file.
2012-07-12cwfs: set whochan for who command, cleanupcinap_lenrek
2011-09-07cwfs: cfs needs to run after con_session(), so revert previous change and ↵cinap_lenrek
just run consserve() before starting the srv procs
2011-09-07cwfs: fix race between cmd_exec("users") and serve processes, cleanup portfns.hcinap_lenrek
2011-05-07added 'chatty' command to cwfsaiju
2011-04-17cwfs: make noauth a storable config option so one can boot without factotum ↵cinap_lenrek
and nvram
2011-04-12updating cwfs and moving installer in /rc/bincinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen