OpenBSD-4.6/usr.sbin/afs/src/ChangeLog

2003-07-15  Love  <lha@stacken.kth.se>

	* nnpfs/bsd/nnpfs_dev-common.c: freebsd5.x needs
	nnpfs_block_sigset too

	* nnpfs/bsd/nnpfs_dev-common.c: drop support for freebsd 5.0 and
	only support freebsd 5.1

2003-07-01  Tomas Olsson <tol@stacken.kth.se>

	* nnpfs/winnt/src/nnpfs_init.c (nnpfs_initdevice): use nnpfs_fsd_*
	wrappers

	* nnpfs/winnt/src/nnpfs_vops.c: defined wrappers (nnpfs_fsd_*) for
	all fsd entry points.
	(nnpfs_{handle_stale,data_valid}): some lock handling

	* nnpfs/winnt/src/nnpfs_node.c
	(nnpfs_{vrele,node_gc_all,close_data_handle,open_file,open_fh}):
	locking

	* nnpfs/winnt/src/nnpfs_message.c
	(nnpfs_message_{installdata,invalidnode}): lock MainResource

	* nnpfs/winnt/src/nnpfs_fastio.c (nnpfs_fastio_read): don't print
	buffer contents, use FsRtlE{nter,xit}FileSystem
	(nnpfs_createsec_acq): use FsRtlE{nter,xit}FileSystem
	(nnpfs_lazywrite_{acq,rel}): use node->lazy_writer

	* nnpfs/winnt/src/nnpfs_dnlc.c (*): more
	FsRtlE{nter,xit}FileSystem usage
	* nnpfs/winnt/src/nnpfs_dev.c (*): more FsRtlE{nter,xit}FileSystem
	usage

	* nnpfs/winnt/src/nnpfs_dev.c (nnpfs_devctl): renamed to
	nnpfs_fsd_devctl sprinkle some FsRtlE{nter,xit}FileSystem()

	* nnpfs/winnt/inc/nnpfs_proto.h: added DEFINE_IRP:s for wrappers
	for fsd entry points

	* nnpfs/winnt/inc/nnpfs_locl.h (nnpfs_node): store lazy writer
	thread

2003-06-26  Tomas Olsson <tol@stacken.kth.se>

        * nnpfs/winnt/src/inc/nnpfs_locl.h 
	use FastMutex to protect zone allocation and nodelist 

        * nnpfs/winnt/src/nnpfs_{dev,dnlc,init,misc}.c 
	use FastMutex to protect zone allocation and nodelist 

	* nnpfs/winnt/src/nnpfs_node.c (*): use FastMutexes to protect
	zone allocation and node list
	(nnpfs_open_fh): added

	* nnpfs/winnt/src/nnpfs_message.c (nnpfs_message_gc_node): set
	STALE and call vgone() for unused nodes

	* nnpfs/winnt/src/nnpfs_vops.c (nnpfs_get_dummynode): clear
	wake_event
	(nnpfs_readwrite): hold PagingIoResource when paging

	* nnpfs/winnt/src/nnpfs_fastio.c (nnpfs_fastio_initmap): added
	(*): updated lock handling, use nnpfs_fastio_initmap

2003-06-12  Love  <lha@stacken.kth.se>

	* appl/lib/arlalib.c: add more v4 glue

	* rxkad/rxkad_locl.h: protect v4 stuff with #ifdef HAVE_KRB4
	
	* appl/lib/Makefile.in: add krb5 includes
	
	* include/stds.h: s/HAVE_KERBEROS/KERBEROS/
	
	* appl/lib/appl_locl.h: add <krb5.h>
	
2003-06-11  Love  <lha@stacken.kth.se>

	* appl/lib/arlalib.c: add krb5 support, untested
	
	* rxkad/rxk_serv.c: avoid warning
	
	* rxkad/rxk_serv.c: make rxkad_NewServerSecurityObject match
	prototype

	* appl/lib/arlalib.c: change enable to support krb5, now just fill
	in the blanks

2003-06-10  Love  <lha@stacken.kth.se>

	* rxkad/Makefile.am: drop rxk_info.c its a server function
	
	* rx/rx_misc.c: drop osi_{Alloc,Free}, we use macros
	
	* lib/ko/koerror.c: wrap krb4 stuff with HAVE_KRB4
	
	* lib/ko/kocell.c: wrap krb4 stuff with krb4

	* configure.in: add AC_FUNC_KAFS_SETTOKEN_RXKAD
	
	* lib/ko/auth.c: wrap krb4 stuff with krb4, use kafs_settoken_rxkad
	
	* include/netbsd-lkm/Makefile: include <bsd.own.mk>
	
	* include/stds.h: more kerberos4 defines
	
	* appl/lib/arlalib.c: wrap krb4 stuff in HAVE_KRB4
	
	* appl/lib/appl_locl.h: wrap krb4 stuff in HAVE_KRB4
	
	* rxkad/Makefile.am: drop rxkad server end (to be build later as
	rxkad_server)

	* configure.in: make include k5 stuff in rxkad lib
	
	* arlad/arla_local.h: wrap krb4 stuff in HAVE_KRB4
	
	* arlad/arla.c: wrap krb4 stuff in HAVE_KRB4
	
	* arlad/Makefile.in: use krb5 cflags too
	
	* arlad/cred.h: use MAXKRB4TICKETLEN
	
	* rxkad/rxkad.h: provide MAXKRB4TICKETLEN
	
	* appl/perf/afsfsperf.c: wrap <krb.h> with HAVE_KRB4
	
	* lib/ko/auth.h: put ifdef HAVE_KRB4 around <krb.h>
	
	* arlad/{arla-cli.c,conn.c,cred.c,cred.h,messages.c}:
	remove depency on CREDENTIALS (and thus krb4) for rxkad

2003-06-04  Hans Insulander  <hin@stacken.kth.se>

	* appl/vos/vos_listvldb.c: Remove \n from warnx()
	* appl/vos/vos.c: Missing \n on printout added
	* appl/afsutils/aklog.1: Spellfix
	* appl/afsutils/klog.c: Spellfix

2003-06-04  Tomas Olsson  <tol@stacken.kth.se>

	* appl/afsutils/aklog.1: speling

2003-06-02  Love  <lha@stacken.kth.se>

	* nnpfs/bsd: s/make_dead_vnode/nnpfs_make_dead_vnode/

	* nnpfs/bsd/nnpfs_message.c (nnpfs_message_installdata): use
	nnpfs_dnlc_purge instead of cache_purge

2003-05-21  Love  <lha@stacken.kth.se>

	* appl/fs/fs.1: retreived->retrieved, from pjanzen@openbsd via
	jmc@openbsd

2003-05-06  Love  <lha@stacken.kth.se>

	* appl/fs/fs_la.c (afs_getacl): a couple of off-by-one string
	bounds in sscanf, from Anil Madhavapeddy <avsm@cvs.openbsd.org>
	via openbsd.

2003-04-25  Love  <lha@stacken.kth.se>

	* appl/afsutils/unlog.1: remove unused .Ed fixe typos
	from jmc <jmc@prioris.mini.pw.edu.pl>	
	
	* appl/afsutils/tokens.1: fixed bad .Fl usage, remove unused .El
	from jmc <jmc@prioris.mini.pw.edu.pl>
	
2003-04-24  Love  <lha@stacken.kth.se>

	* appl/lib/arlalib.h: s/managment/management/, from jmc
	<jmc@prioris.mini.pw.edu.pl>
	* doc/storage.texi: s/managment/management/, from jmc
	<jmc@prioris.mini.pw.edu.pl>

2003-04-16  Love  <lha@stacken.kth.se>

	* ydr/output.c (cppfilesymbolname): new function, Convert filename
	into a cpp symbol
	(init_generate): use cppfilesymbolname
	(close_generator): ditto

2003-04-13  Love  <lha@stacken.kth.se>

	* appl/pts/pts.c (pr_name2id): don't free memory on error
	
2003-04-10  Love  <lha@stacken.kth.se>

	* arlad/messages.c (try_again): treat RXKADBADTICKET, RXKADBADKEY
	as key expired

	* arlad/volcache.c (get_info_loop): treat RXKADBADTICKET,
	RXKADBADKEY as key expired

2003-04-09  Love  <lha@stacken.kth.se>

	* lib/ko/gensysname.c: s/strcpy/strlcpy/
	* tests/large-dir.c: s/strcpy/strlcpy/
	* rxkad/rxk_crpt.c: s/strcpy/strlcpy/
	* rx/rx_dumptrace.c: s/strcpy/strlcpy/
	
	* rx/rx_pkt.c: make osi_Msg sane
	* rx/rx.c: make osi_Msg sane
	* rx/rx_user.c: make osi_Msg sane add rx_vMsg
	* rx/rx_user.h: make osi_Msg sane
	
2003-04-08  Love  <lha@stacken.kth.se>

	* arlad/arla_local.h: include <uae.h>
	
	* arlad/arla.c: init uae
	
	* rx/rxperf.c: replace sprint with snprintf
	
	* appl/fs/fs_copyacl.c: replace sprint with snprintf
	
	* appl/vos/vos_backup.c: replace sprint with asprintf
	
2003-04-08  Mattias Amnefelt  <mattiasa@e.kth.se>

	* arlad/conn.c (re_probe): only increase ntries until threshold
	value. more readable logic for problelist removal
	(pinger): always schedule re_probe

	* arlad/arla_local.h: added argument f to assert_not_flag
	* arlad/conn.c (init_fs_context): Set rtt to half of its previous
	value if fileserver unreachable

2003-04-08  Love  <lha@stacken.kth.se>

	* arlad/arla_local.h: include <uae.h>
	
	* arlad/arla.c: init uae
	
	* rx/rxperf.c: replace sprint with snprintf
	
	* appl/fs/fs_copyacl.c: replace sprint with snprintf
	
	* appl/vos/vos_backup.c: replace sprint with asprintf
	
2003-04-08  Mattias Amnefelt  <mattiasa@e.kth.se>

	* arlad/fcache.c (unlink_lru_entry): assert_not_flag() on kernelp

2003-04-03  Love  <lha@stacken.kth.se>

	* include/afssysdefs.h: freebsd 4 uses 210 freebsd 5 uses 339
	
	* configure.in: no longer change for chflags and lchflags, it was
	themis that needed it

2003-04-01  Love  <lha@stacken.kth.se>

	* appl/afsutils/Makefile.in: avoid building klog when that we are
	not install it

	* rx/rxdebug.1: spelling, from jmc <jmc@prioris.mini.pw.edu.pl>
	
	* appl/kalog/kalog.1: spelling, from jmc
	<jmc@prioris.mini.pw.edu.pl>
	
	* appl/bos/bos.8: spelling, from jmc
	<jmc@prioris.mini.pw.edu.pl>

	* arlad/{DynRootDB,arla.conf,ThisCell}.5arla-cli.8: spelling, from
	jmc <jmc@prioris.mini.pw.edu.pl>

	* nnpfs/bsd/nnpfs_dev-bsd.c (nnpfs_dev): handle newer freebsd,
	from Mattias Amnefelt <mattiasa@e.kth.se>

	* configure.in: check for d_psize and d_kqfilter
	
2003-03-17  Love  <lha@stacken.kth.se>

	* lib/ko/koerror.c: s/Invaild/Invalid/
	
2003-03-13  Love  <lha@stacken.kth.se>

	* util/log.c: log in LOG_NOTICE since LOG_INFO might get lost
	
2003-03-10  Love  <lha@stacken.kth.se>

	* appl/afstool/at_fs_flush_cps.c: fix usage usage info
	
	* lib/ko/uae.h: remove dup
	
	* nnpfs/linux/nnpfs_load.c (init_module): do devfs_register_chrdev
	also when using a chardev, pointed out by Per Olofsson.

2003-03-09  Love  <lha@stacken.kth.se>

	* configure.in: pull in arla_OPENSSL_COMPAT, add the -I to
	netbsd-lkm dir after the system KERNEL_CPPFLAGS
	
2003-03-08  Love  <lha@stacken.kth.se>

	* appl/vos/vos_status.c: fix bad lp64 broken typecasts, make
	strftime buffer 128bytes
	* lib/ko/kocell.c: make strftime buffer 128 bytes
	* appl/afstool/at_fs_gettime.c: make strftime buffer 128 bytes
	* appl/afstool/at_u_debug.c: make strftime buffer 128 bytes
	
	* appl/vos/vos_examine.c: make strftime buffer 128 bytes
	* appl/vos/vos_status.c (printstatus): fix formating
	
2003-03-07  Love  <lha@stacken.kth.se>

	* lib/ko/uae.c: add all missing errorcodes
	
	* lib/ko/uae.h: add UAE_ERROR_base remove dup
	
	* lib/ko/uae.h: add more error codes from derrick
	
2003-03-06  Love  <lha@stacken.kth.se>

	* rxdef/common.h: add Capabilities
	
	* HACKING: automake appl/udebug/Makefile
	
	* include/Makefile.in: add uae.h
	
	* appl/afstool/at_fs_getcap.c: print string name of caps
	
	* appl/afstool: add support for RXAFS_GetCapabilities

	* rxdef/fs.xg: add GetCapabilities
	
	* appl/udebug: replace udebug with a shellscript that call afstool

	* NEWS: UAE
	
	* arlad/fs_errors.h: do uae translation
	
	* arlad/cmcb.c (SRXAFSCB_TellMeAboutYourself): tell server we
	support UAE

	* lib/ko/uae.c: comment how this should work
	
	* appl/perf/Makefile.in: adapt for uae
	
	* appl/afstool/Makefile.am: adapt for uae
	
	* lib/ko: Add infrastructure for 'Unified AFS errnos' (uae)

2003-03-05  Love  <lha@stacken.kth.se>

	* appl/afstool: use getarg style --no-auth like the rest for the
	arguments, fix auth
	
	* appl/afstool: add ubik debug

	* appl/afstool/afstool.1: fs gettime
	
	* appl/afstool/at_locl.h: add mini_cachemanager_init and
	fs_gettime_cmd

	* appl/afstool/Makefile.am: add mini cm, gettime and link with
	librxcbserver

	* appl/afstool/at_fileserver.c: plug in gettime
	
	* appl/afstool/at_fs_gettime.c: fetch time from fileserver
	
	* appl/afstool/at_mini_cm.c: add yet another mini cache-manager
	
	* rx/rx_user.h (rxi_GetUDPSocket): return the portnumber we bound to
	* rx/rx_user.c (rxi_GetUDPSocket): return the portnumber we bound to

	* rx/rx.c: find out the portnumber we bound too
	
	* appl/afstool/afstool.c (main) call rx_Init(0)
	
	* arlad/cmcb.c: prefix callback manager stubs with S
	
	* ydr/output.c (generate_server_stub): prefix server stubs with S
	
	* ydr/output.c: move the server parsing stubs into private
	namespace and make them static

	* appl/afstool/at_fs_flush_cps.c: remove stale comment

	* appl/afstool/at_cm_{localcell,whoareyou}.c: make use of for loop
	to make it look like other code in same directory

	* appl/afstool/afstool.c: add aliases for fileserver (fs) and
	cachemanager (cm)

	* appl/perf/afsfsperf.c: add dummy for GetCellByNum and
	TellMeAboutYourself

	* arlad/cmcb.c: add dummy for GetCellByNum and implement
	TellMeAboutYourself
	
	* rxdef/cb.xg: add GetCellByNum and TellMeAboutYourself
	
	* appl/afstool/Makefile.am: install manpage
	
	* appl/afstool/at_cm_localcell.c: getarg-ify, make more sane
	* appl/afstool/at_cm_whoareyou.c: getarg-ify, make more sane
	* appl/afstool/afstool.1: getarg-ify, make more sane

	* appl/afstool/afstool.1: mdoc fixes
	
2003-03-04  Love  <lha@stacken.kth.se>

	* arlad/poller.c (poller_foreach): new function
	
	* appl/afstool/afstool.1: manpage for afstool
	
	* configure.in: remove cbdebug
	
	* appl/afstool: fold in cbdebug

	* appl/cbdebug: remove cbdebug, move to afstool
	
	* appl/afstool/at_locl.h: add some more headers
	
	* appl/perf/Makefile.in: link agaist the new cb lib
	
	* arlad/Makefile.in: link agaist the new cb lib
	
	* rxdef/Makefile.in: split callback stubs to their own libs
	
	* configure.in (AC_OUTPUT): add appl/afstool/Makefile

	* HACKING: add appl/afstool/Makefile
	
	* appl/afstool: afstool

	* arlad/fcache.c: improve logging when giving back callbacks
	
	* appl/fs/fs_connect.c: add callback-connected, connect and
	refetch callback we had before

	* arlad/poller.c: add poller_foreach and poller_iter_func
	
	* arlad/poller.h: add poller_foreach and poller_iter_func
	
	* arlad/fcache.c (fcache_giveup_all_callbacks): first try poller +
	giveup_all_callbacks
	(giveup_all_callbacks): give up all callback with new rpc function
	RXAFS_GiveUpAllCallBacks.
	(throw_entry): conn can never be NULL, check for aliveness instead
	(fcache_reobtain_callbacks): conn can never be NULL

	* rxdef/fs.xg: add GiveUpAllCallBacks, and FlushCPS add commented
	out versions of 64 bit fetch/store data
	
2003-03-03  Love  <lha@stacken.kth.se>

	* arlad/messages.c (nnpfs_message_getdata): make comptible with
	open and set the DATA_W if requested.
	
2003-02-28  Tomas Olsson  <tol@stacken.kth.se>

	* nnpfs/linux/nnpfs_inodeops.c (nnpfs_file_mmap): don't iref

2003-02-28  Love  <lha@stacken.kth.se>

	* tests/run-tests.in: add mmap-and-fork
	
	* tests/mmap-and-fork.c: mmap and fork test
	
	* nnpfs/bsd/nnpfs_node-bsd.c (nnpfs_dnlc_enter): use
	nnpfs_vfs_unlock instead of VOP_UNLOCK

2003-02-26  Love  <lha@stacken.kth.se>

	* nnpfs/bsd/nnpfs_node-bsd.c: OpenBSD 3.3 will have NetBSD 1.5
	dnlc semantics

2003-02-24  Tomas Olsson  <tol@stacken.kth.se>

	* nnpfs/linux/nnpfs_message.c (clear_all_children): don't throw
	negative dentries, and it's the children we drop

2003-02-24  Mattias Amnefelt  <mattiasa@e.kth.se>

	* nnpfs/linux/nnpfs_inodeops.c: nnpfs_d_revalidate: always return
	true if root node

2003-02-22  Love  <lha@stacken.kth.se>

	* Add support for netbsd 1.6O

	* configure.in: fix openbsd makefile probing
	
2003-02-21  Tomas Olsson  <tol@stacken.kth.se>

	* nnpfs/linux/nnpfs_message.c (clear_all_children): drop negative
	dentries

	* arlad/messages.c (*): send messages to kernel before
	fcache_release()

2003-02-18  Tomas Olsson  <tol@stacken.kth.se>

	* nnpfs/linux/nnpfs_message.c (nnpfs_d_remove): added
	(nnpfs_message_installnode): handle new inode != existing better
	(clear_all_children): use dcache_lock, don't use xdentry if null,
	use nnpfs_d_remove()
	(d_prune_aliases): use nnpfs_d_remove()

2003-02-17  Love  <lha@stacken.kth.se>

	* configure.in: decrease world pain by setting AM_MAINTAINER_MODE,
	now Makefile.in isn't rebuilt when Makefile.am have a newer
	timestamp

2003-02-16  Tomas Olsson  <tol@stacken.kth.se>

	* nnpfs/linux/nnpfs_message.c: make it compile

2003-02-16  Love  <lha@stacken.kth.se>

	* nnpfs/linux/nnpfs_message.c (clear_all_children): throw way
	unused nodes more aggressively (that is, remove then, don't just
	unhash them)

2003-02-15  Love  <lha@stacken.kth.se>

	* nnpfs/linux/nnpfs/nnpfs_locl.h: define I_DIRTY_DATASYNC to 0 if
	it isn't there

	* nnpfs/bsd/nnpfs_vnodeops-bsd.c: even more extensive casting to
	print lk_lockholder

	* nnpfs/bsd/nnpfs/nnpfs_locl.h: include <sys/inttypes.h> try to
	define nnpfs_uintptr_t
	
	* configure.in: check for uintptr_t
	
	* appl/lib/ka-procs.c: remove som more memsets
	
	* tests/run-tests.in (ARLA_TESTS): add kill-mh
	
	* tests/kill-mh: unpacking and removing the "right" files in the
	test tar-ball that will trigger a bug in the directory removing
	code if it doesn't that care and consider directory page
	(DIRBLKSIZ) bounderies correctly, bug report and tarfile came from
	Nickolai Zeldovich <kolya@MIT.EDU>

	* arlad/bsd-subr.c (dir_remove_name): make sure the d_reclen is
	too large so it will cross a page boundary, found by
	kolya@mit.edu.

2003-02-14  Love  <lha@stacken.kth.se>

	* appl/lib/ka-procs.c: make compile with new openssl >= 0.9.7,
	ignore type of key schedule

	* nnpfs/bsd/nnpfs_vnodeops-bsd.c: freebsd current make
	lk_lockholder to the thread (or so my spies say), so just cast to
	long long and print with %llx

	* nnpfs/bsd/nnpfs/nnpfs_locl.h: malloc(9) waits by default,
	freebsd post 5.0 choose to remove the flag, provide glue
	
	* */*: add copyright notice
	
2003-02-14  Tomas Olsson  <tol@stacken.kth.se>

	* tests/asu.c (is_pag): getgroups() might not include egid in
	groups list

	* tests/build-emacs-j: bsd make wants an arg after -j, use 4

	* nnpfs/linux/Makefile.in: don't build getcwd on ia64

	* configure.in: added AM_CONDITIONAL for LINUX_IA64

2003-02-13  Fallsjo <fallsjo@stacken.kth.se>

	* .cvsignore: Honor new name of autom4te cache

2003-02-12  Love  <lha@stacken.kth.se>

	* arlad/arlad.8: rxkad-level, default is crypt
	* arlad/arla.c (rxkad_level_string): default to crypt
	
2003-02-11  Love  <lha@stacken.kth.se>

	* nnpfs/linux/nnpfs_vfsops.c (nnpfs_statfs): bump values some to
	make it more pretty from Harald Barth <haba@pdc.kth.se>
	
	* arlad/cred.c (cred_add): use cred_delete instead of
	recycle_entry, so when the entry is still in use we don't stomp
	all over it
	
	also, sprinkel asserts all over the place to make sure we don't
	use root node or reuse nodes that still have refcount

2003-02-11  Tomas Olsson  <tol@stacken.kth.se>

	* arlad/messages.c (nnpfs_message_getdata): set datausedp in entry

	* appl/perf/Makefile.in: move up arlautil before roken in LIBS

2003-02-10  Love  <lha@stacken.kth.se>

	* lib/ko/afs_uuid.c: when we use a randomized uuid, set the
	multicast bit to make sure we don't collied witha a real
	(allocated) address.

2003-02-10  Tomas Olsson  <tol@stacken.kth.se>

	* nnpfs/linux/nnpfs_syscalls.c: declare sys_call_table as its
	actual type

	* nnpfs/linux/nnpfs_syscalls-lossage.c: don't check for
	sys_call_table

	* nnpfs/linux/nnpfs/nnpfs_syscalls.h: check for sys_call_table

	* appl/perf/Makefile.in: move up LIB_roken in LIBS

	* lib/Makefile.am: build editline before sl

2003-02-08  Love  <lha@stacken.kth.se>

	* tests/run-tests.in: add read-past-eof
	
	* tests/Makefile.in: add read-past-eof
	
	* tests/read-past-eof.c: test for read past end of file
	
	* nnpfs/bsd/nnpfs_vnodeops-netbsd.c (nnpfs_netbsd_read): don't
	premit reading past end of file (found with mozilla)

2003-02-07  Love  <lha@stacken.kth.se>

	* arlad/messages.c: replace assert_kernelp with assert_flag
	
	* arlad/fcache.c: replace assert_kernelp with assert_flag
	
	* arlad/arla_local.h: replace assert_kernelp with assert_flag
	
	* nnpfs/linux/nnpfs_syscalls.c: use [] for now on sys_call_table
	
2003-02-04  Love  <lha@stacken.kth.se>

	* configure.in (netbsd,openbsd): we really want -f flags too when
	building lkms

	* lib/bufdir/fdir.c: trust length of directory file more then the
	data in the top of the file, this is slightly broken because what
	really happen was that we just removed a entry, and then shrinked
	the file because it was the last entry (and thus decremented the
	page-count), refetched the length from the fileserver and then
	expected the pagecount == size / AFSPAGESIZE

	* nnpfs/bsd/nnpfs_wrap-bsd.c (nnpfs_uninstall): detach malloc
	types when we are all done not completly right, but better then
	before

	* nnpfs/bsd/nnpfs_wrap-bsd.c: move malloc_type_detach from
	nnpfs_stat to nnpfs_uninstall

2003-02-03  Love  <lha@stacken.kth.se>

	* nnpfs/linux/nnpfs_syscalls.c:
	s/sys_call_function/nnpfs_sys_call_function/g

	* nnpfs/bsd/nnpfs_wrap-bsd.c: attach/detach malloc types when
	loading module

	* nnpfs/bsd/nnpfs/nnpfs_locl.h: type argument to malloc is
	malloc_type in netbsd 1.6N

2003-02-03  Tomas Olsson  <tol@stacken.kth.se>

	* nnpfs/linux/nnpfs_syscalls-lossage.c: make it compile, ifdef,
	define

	* nnpfs/linux/nnpfs_syscalls.c (install_afs_syscall): call
	nnpfs_fixup_syscall_lossage()

	* nnpfs/linux/nnpfs/nnpfs_locl.h: added
	nnpfs_fixup_syscall_lossage

	* nnpfs/linux/Makefile.in: build nnpfs_syscalls-lossage.c

2003-02-02  Love  <lha@stacken.kth.se>

	* nnpfs/linux/nnpfs_node.c (nnpfs_iget): use get_empty_inode for
	linux22

	* nnpfs/linux/nnpfs_message.c (nnpfs_message_installdata): only
	whine when there is a real failure to do a fh_to_dentry
	
	* nnpfs/linux/nnpfs_node.c (nnpfs_iget): use new_inode (and
	unlock_new_inode in case we have I_NEW)

2003-02-01  Love  <lha@stacken.kth.se>

	* doc/themis.texi: drop themis, live a life of its own now
	
	* doc/oddities.texi: s/Themis/Arla timeline/
	
	* doc/timeline.texi: s/Themis/Oddities/
	
	* doc/arla.texi: drop @include themis.texi
	
	* appl/lib/tokens.c: don't bail out if cell == NULL, then we want
	all cells

	* rx/Makefile.in: help libtool find libko
	
	* nnpfs/linux/nnpfs/nnpfs_locl.h: add typedef for
	nnpfs_sys_call_function

	* nnpfs/linux/nnpfs_syscalls-lossage.c: for you to make compile
	and work and start to use ok'ed to put in copyrighted to KTH by
	Chaskiel when I asked him

2003-01-28  Love  <lha@stacken.kth.se>

	* appl/fs/fs_listquota.c: more spaceing, 8 number for printing
	used space it not enougth

	* tests/write-and-stat: test that detects if dncl is there, or if
	we just live on tbl (really detects another bug, but this is fine
	for now)

	* nnpfs/bsd/nnpfs_node-bsd.c (nnpfs_cnp_init): if we have a
	namei_hash, use it

	* nnpfs/bsd/nnpfs_vnodeops-netbsd.c: fix printing of b_blkno
	
2003-01-27  Love  <lha@stacken.kth.se>

	* appl/perf/afsfsperf.c: make the tests table drivern, now you can
	write afsfsperf ... -tests get-time,bulk-status

	* tests/check-sysname: remove set -x
	
	* tests/run-tests.in: ARLA_TESTS: add check-sysname
	
	* tests/check-sysname: check if sysname seems to work
	
	* arlad/messages.c (nnpfs_message_getnode): replace #if 0 assert
	with assert_kernelp()

	* nnpfs/bsd/nnpfs_vnodeops-common.c (nnpfs_attr_valid): fix logic,
	request node from userland when we don't have one of requested
	token or don't have the pag in the pag cache.
	
	* nnpfs/bsd/nnpfs/nnpfs_locl.h: help SCARG-less freebsd some more
	
	* appl/perf/afsfsperf.c: add bulkstatus perf testing
	
	* rxdef/Makefile.in: add depenecy on common.h where needed
	
2003-01-25  Love  <lha@stacken.kth.se>

	* arlad/fcache.c (resolve_mp): use fcache_verify_data instead of
	fcache_get_data

	* nnpfs/bsd/nnpfs_message.c (nnpfs_message_updatefid): use new
	function nnpfs_update_handle, now that there are a fid hash
	instead of a list, we can't just update the handle in the
	nnpfs_node.

	* nnpfs/bsd/nnpfs_node.c: add nnpfs_update_handle
	
	* nnpfs/bsd/nnpfs/nnpfs_node.h: add nnpfs_update_handle
	
	* arlad/messages.c (nnpfs_message_getdata): use entry->fid as fid
	since it might have changed because of resolved mp's
	
2003-01-24  Tomas Olsson  <tol@stacken.kth.se>

	* tests/intr-read.c: wait on killed children

	* lwp/plwp.c (*): indent, clean up debugging

2003-01-24  Love  <lha@stacken.kth.se>

	* tests/intr-read.c: add comment why we kill children, "they smell
	bad" :)

	* tests/intr-read.c: kill children when parents is done
	
	* appl/fs/fs_diskfree.c: from dup printf, from Nickolai Zeldovich
	
2003-01-23  Tomas Olsson  <tol@stacken.kth.se>

	* lib/bufdir/fbuf.c (mmap_copyrx2fd): adjust mapped length to
	pagesize

2003-01-23  Love  <lha@stacken.kth.se>

	* lib/bufdir/fbuf.c (mmap_copy{rx2fd,fd2rx}): make these handle
	off/len that are not a multiple of the pagesize.
	
2003-01-22  Love  <lha@stacken.kth.se>

	* nnpfs/bsd/nnpfs_dev-common.c (nnpfs_block_sigset): make the
	three diffrent cases define a macro that later code can use, this
	to make it easier to block new signals, and while I'm here, ignore
	SIGINFO

2003-01-21  Mattias Amnefelt  <mattiasa@e.kth.se>

	* appl/Makefile.in: don't build themis and mpp
	* configure.in: don't build themis and mpp
	* util/.cvsignore: ignore Makefile.in
	* appl/themis appl/mpp: removed, they are now in their own repos

2003-01-20  Love  <lha@stacken.kth.se>

	* arlad/fcache.c (dynroot_update_entry): no more spare, change to
	update fields

	* arlad/dynroot.c (dynroot_update_entry): no more spare, change to
	real version

	* ydr/Makefile.am: ydr_SOURCES: add header files
	
	* ydr/Makefile.am: CLEANFILES = lex.c parse.c parse.h
	
	* ydr/Makefile.am: YFLAGS= -d
	
	* rxdef/common.h: make the last for elements match the rest of the
	code

	* rxdef/common.h: drop all long/short/unsigned stuff and replace
	all by c99 types

	* rxdef/common.h (AFSFetchStatus): fill in the now no longer spare
	bits of FetchStatus

	* lib/Makefile.am: add libvers
	
	* rxdef/Makefile.in: add EXEEXT to ydr
	
	* ydr: automakeify

	* ydr: 64 bits encodeing/decodeing support (require presence of
	htole64/le64toh) verified same output with:
	perl -pi -e 's/sizeof\(tmp\)/sizeof\(int32_t\)/g' *.[ch]
	for a in *.[ch] ; do diff -uw $a old/$a ; done

	* lib/ko/kocell.c (cell_getthiscell): if the cell is unconfigured,
	return "unknown-cell-missing-configuration"
	
2003-01-19  Love  <lha@stacken.kth.se>

	* nnpfs/bsd/nnpfs_syscalls-common.c (*): use syscall_d_thread_t,
	syscall_thread_to_thread

	* nnpfs/bsd/nnpfs/nnpfs_syscalls.h (*): use syscall_d_thread_t
	
	* nnpfs/bsd/nnpfs_syscalls-wrap-bsd.c (sys_lkmnosys): use
	syscall_d_thread_t

	* nnpfs/bsd/nnpfs/nnpfs_locl.h: add yet another glue type
	syscall_d_thread_t, this is the process/thread argument that
	syscall are called with, add a syscall_thread_to_thread macro that
	converts from a syscall_d_thread_t to a d_thread_t

	* nnpfs/bsd/nnpfs_dev-common.c (nnpfs_cursig): in netbsd 1.6M
	CURSIG takes a struct lwp disable this for now

	* nnpfs/bsd/nnpfs_dev-bsd.c, nnpfs/bsd/nnpfs_dev-common.c
	nnpfs/bsd/nnpfs_dev-osf.c, nnpfs/bsd/nnpfs/nnpfs_dev.h:
	nnpfs_devopen_common dont need struct proc, remove it

	* appl/cbdebug/cbdebug.h: update to changed signature of cbgetconn()
	* appl/cbdebug/localcell.c: ditto
	* appl/cbdebug/whoareyou.c: ditto

	* appl/cbdebug/cbdebug.c (cbgetconn): make it possible for
	cbgetconn to return hostname if not passed in.
	(*): change to use afscallbackport

	* rx/Makefile.in: fix rx_trace that I manage to break
	
	* rx/rx.c: s/long/int32_t/;s/short/int16_t/ where apropriate
	* rx/rx.h: s/long/int32_t/;s/short/int16_t/ where apropriate
	* rx/rx_misc.c: s/long/int32_t/;s/short/int16_t/ where apropriate
	* rx/rx_misc.h: s/long/int32_t/;s/short/int16_t/ where apropriate
	* rx/rx_globs.h: s/long/int32_t/;s/short/int16_t/ where apropriate
	* rx/rx_pkt.c: s/long/int32_t/;s/short/int16_t/ where apropriate
	* rx/rx_pkt.h: s/long/int32_t/;s/short/int16_t/ where apropriate
	* rx/rx_user.c: s/long/int32_t/;s/short/int16_t/ where apropriate
	* rx/rx_rxdebug.c: s/long/int32_t/;s/short/int16_t/ where apropriate
	
	* rx/rx_multi.h: remove register, s/long/int32_t/ where aproporate
	
	* rx/rx_kern.h: remove register
	* rx/rx_event.h: remove register
	* rx/rx_event.c: remove register
	
2003-01-18  Love  <lha@stacken.kth.se>

	* arlad/SuidCells.5: improve
	
	* arlad/DynRootDB.5: improve
	
2003-01-17  Love  <lha@stacken.kth.se>

	* appl/udebug/udebug.c: print version with print_version()
	(and cleanup usage string)

	* appl/kalog/kalog.c: print version with print_version()
	
	* appl/cbdebug/cbdebug.c: print version with print_version()

	* appl/cbdebug/Makefile.in: add libvers
	
	* appl/amon/amon.c: print version with print_version()
	
	* appl/pts/pts.c: use arlalib_version_cmd for version
	
	* appl/fs/fs.c: use arlalib_version_cmd for version
	
	* appl/lib/arlalib.h: add arlalib_version_cmd
	
	* appl/fs/Makefile.in: add libvers

	* appl/fs/fs.c: print version with print_version()
	
	* appl/lib/arlalib.h: drop fslib_version
	
	* appl/lib/fs_lib.c: drop fslib_version
	
	* arlad/arla-cli.c: print version with print_version()
	
	* arlad/arlad.c: print version with print_version()
	
	* appl/perf/afsfsperf.c: print version now and then
	
	* configure.in: AC_OUTPUT: add lib/vers/Makefile
	
	* lib/vers: add from heimdal/kth-krb

2003-01-15  Love  <lha@stacken.kth.se>

	* nnpfs/bsd/nnpfs/nnpfs_locl.h: add missing #endif
	
	* lib/ko/Makefile.am: split CPPFLAGS to target_CFLAGS
	
2003-01-14  Tomas Olsson  <tol@stacken.kth.se>

	* arlad/messages.c (nnpfs_message_getdata): OR new flags into
	msg.flags

2003-01-14  Love  <lha@stacken.kth.se>

	* arlad/fcache.c (read_data, write_data): be more careful how
	updating of ->length and usedbytes is done to make sure its
	correct

	* nnpfs/bsd/nnpfs/nnpfs_locl.h: freebsd removed SCARG in 5.0RC3
	and later

	* lib/ko/Makefile.am: s/SYSCONFDIR/sysconfdir/
	
2003-01-13  Love  <lha@stacken.kth.se>

	* HACKING: spell
	
2003-01-11  Love  <lha@stacken.kth.se>

	* rxkad: change from old afs int32/u_int32 to iso c99 int32_t/uint32_t

	* includes/stds.h: drop compat glue for rxkad

	* util: drop copy_dirname/copy_basename

	* arlad/arla-cli.c: inline copy_dirname/copy_basename

	* appl/lib/arlalib.c: (arlalib_get_cred_krb): rewrite the code
	that fetches the server key to be simpler

	* HACKING: more automake

	* **/Makefile.in: use libtool library for libarlautil and libko

	* lib/ko/gensysname.c: change to use getarg (instead of agetarg)
	to drop circular dependcy for libtool

	* conf/Makefile.in: (arla.conf): depend on the right file

	* appl/afsutils/klog.c: fix (stupid) warning with cast

	* appl/aafs-perl/Makefile.in: fix building

	* util/heap.c: (heap_remove): compare dummy with the right thing

	* lib/Makefile, lib/ko/Makefile: generate with automake

	* README: update to reality

2003-01-10  Tomas Olsson  <tol@stacken.kth.se>

	* arlad/arla.conf.5: spelling, clarify, explain fake_stat

	* arlad/{kernel,fcache,messages}.c: indent

2003-01-10  Love  <lha@stacken.kth.se>

	* HACKING: add util/Makefile as a automake file
	
	* util/Makefile.am: automakeify
	
	* util/*.h: unify header protection and make it arlalib specific

	* arlad/fcache.h (FCacheEntry): remove datap
	
	* arlad/{fcache.c,inter.c,dynroot.c,unknown-subr.c}:
	remove all references to datap, instead use '->length',
	'->fetch_data', or just remove the paranoid assert.

	the state log doesn't change (value still stored), its just
	ignored when reading back the state
	
	* arlad/poller.c: some poller log statments
	
2003-01-09  Love  <lha@stacken.kth.se>

	* nnpfs/bsd/nnpfs: (nnpfs_message_installdata): pass
	NNPFS_LOCKLEAF to namei

	* nnpfs/bsd/nnpfs/nnpfs_locl.h: provide glue for namei flag
	LOCKLEAF

	* arlad/messages.c (nnpfs_message_{open,getdata}): set msg.flag
	correctly

	* includes/kafs.h: add AFSCOMMONIOC_GKK5SETTOK (in arla space for now)
	
	* arlad/cred.h: add prototype for rxgk cred handling
	
	* arlad/messages.c: add prototype for rxgk cred handling

	* arlad/inter.h: new signature of cm_open
	
	* arlad/inter.c (cm_open): simplify, let other do the hard work
	
	* arlad/messages.c: Split message_getdata and message_open for
	now. They are quite simular, but I want to see the diffrences
	between them. Also, this fixes inc-open (again) since I broke it
	before.

	* arlad/fcache.c (fcache_get_data): directories can fetch part of
	the file, explain why we shold remove `update attr case' in this
	function.
	(fcache_update_length): set wanted_length to min of len we have and
	length of file so we don't got off and fetch the whole thing.
	(sum_node): don't look at datap/attrp, length will be 0 when there
	isn't any data

2003-01-07  Love  <lha@stacken.kth.se>

	* arlad/kernel.c: name the workers with their worker id
	
2003-01-06  Love  <lha@stacken.kth.se>

	* appl/lib/tokens.c (arlalib_token_iter): if there is unknown
	error from k_pioctl, bail out

2003-01-03  Tomas Olsson  <tol@stacken.kth.se>

	* lwp/plwp.h: include windows.h after roken.h

	* lwp/plwp.c (*): indent, cleanup, more debugging

	* lwp/plwp.c (LWP_INT_SIGNAL): use SetEvent(), not PulseEvent()
	(Create_Process_Part2): handle locks properly around LWP_INT_WAIT

For older ChangeLog entries see ChangeLog.2002