Nickolai Zeldovich [Tue, 2 Apr 2002 06:09:48 +0000]
Initial fakestat support (fake mountpoint directory attributes).
Useful for quickly stat'ing everything under /afs, for instance.
Reasonably tested on Solaris, and appears to work on Linux too.
Enable with 'afsd -fakestat'.
Nickolai Zeldovich [Mon, 1 Apr 2002 20:18:50 +0000]
Fix build on Darwin (missing close paren).
David Bailey [Mon, 1 Apr 2002 17:25:37 +0000]
winnt-servermgr-use-existing-creds-option-
20020401
This adds /useexisting to use current AFS creds, bypassing the initial authentication
dialog box. It's useful if you're not running kaserver (i.e. if you've moved
over to kerberos 5) and can't authenticate again by the normal AFS means.
Nickolai Zeldovich [Sat, 30 Mar 2002 18:02:40 +0000]
Add osi_Assert()'s around pthread_{cond,mutex}_* calls to make sure
we aren't getting errors anywhere.
Update the documentation/comments about Rx lock ordering.
Fix possible deadlock in asymmetric client detection code.
Derrick Brashear [Thu, 28 Mar 2002 22:00:55 +0000]
afs-dont-mask-rights-granted-by-lookup-
20020328
lookup is sufficient for this, fix the client not to bogusly
enforce extra restrictions
Derrick Brashear [Thu, 28 Mar 2002 20:43:03 +0000]
linux-dcache-create-negative-dentries-22-needs-while-still-avoiding-vlru-cycle-
20020328
based on patch by Srikanth Vishwanathan and modifications based on suggestions
from Ted Anderson applicable to this part of the code.
the original theory we operated under, namely that negative dentries
could be banished entirely, causes file creation to stop working
under linux 2.2 kernels. reverting that change means we have to deal with
these negative dentries, and Srikanth's original suggested patch does so.
Nathan Neulinger [Mon, 25 Mar 2002 18:35:07 +0000]
fstrace-fix-memory-leak-
20020325
avoid leaking catalog reference on failure
Nathan Neulinger [Mon, 25 Mar 2002 18:30:09 +0000]
cvsignore-update-for-autoconf-25-
20020325
autoconf 2.5x turds to ignore
Derrick Brashear [Mon, 25 Mar 2002 18:09:22 +0000]
convert-linux-macros-for-inodes-appropriately-
20020325
even though right now a vnode and an inode are basically but not exactly
the same, part of the usefulness of this change is the ability to convert
to inodes linked from vcaches later. make the macros fit with this view of the
fture
Johan Danielsson [Mon, 25 Mar 2002 17:39:55 +0000]
convert-vcache-casts-to-macros-
20020325
convert vcache casting in cache manager to macros
should ease further changes later
Nickolai Zeldovich [Sun, 24 Mar 2002 23:39:01 +0000]
Clean up some more ViceLog calls to consistently refer to hosts in a
format like 18.239.2.102:7001, rather than memory address or hex IP.
Nickolai Zeldovich [Sun, 24 Mar 2002 19:21:35 +0000]
Verify that name lengths are at most AFSNAMEMAX and symlink
contents are at most AFSPATHMAX (notably, the Linux kernel
doesn't check this for us); bug report by nneul@umr.edu.
Nickolai Zeldovich [Sun, 24 Mar 2002 19:08:45 +0000]
Initialize tvc in afs_remove so that we don't call afs_PutVCache
on stack garbage in case of some failure.
Nathan Neulinger [Fri, 22 Mar 2002 21:56:44 +0000]
rx-glock-order-headers-correctly-so-its-defined-or-not-consistently-
20020322
fix for earlier change to RX_AFS_GLOCK()
Derrick Brashear [Thu, 21 Mar 2002 18:44:19 +0000]
afs-memcachetruncate-takes-memcacheentry-not-inode-
20020321
prototyping caught this; the usage is inconsistent with other cases and
i believe this is the correct fix. it's not clear to me why we weren't seeing
problems from this, though
Nathan Neulinger [Thu, 21 Mar 2002 18:11:50 +0000]
afs-checkservers-call-getuser-with-cell-index-
20020321
this means to be calling afs_GetUser with a cell index, not with the cell
structure itself
Love Hörnquist-Åstrand [Wed, 20 Mar 2002 18:59:56 +0000]
rxkad-regression-test-
20020228
regression test for rxkad
Mattias Amnefelt [Wed, 20 Mar 2002 18:38:28 +0000]
tru64-avoid-leaking-vnodes-when-failure-
20020320
tru64 needs vrele when an error happens, rather than just returning. make
sure we do so
Nathan Neulinger [Tue, 19 Mar 2002 22:03:30 +0000]
Derrick Brashear [Tue, 19 Mar 2002 22:01:30 +0000]
sys-add-aix-syscall-exports-removed-incorrectly-earlier-
20020319
to export syscalls as functions you need the magic exp file
====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================
and also reinstall them for the user cache manager library
Nickolai Zeldovich [Mon, 18 Mar 2002 03:03:04 +0000]
Allocate the exact string length needed for the string in symlink
contents, rather than assuming that symlink data never contains
nulls (or that it's of the length we expect).
Nickolai Zeldovich [Mon, 18 Mar 2002 02:51:13 +0000]
Call afs_PutCell after afs_GetCellByIndex, even though right
now it doesn't do anything.
Love Hörnquist-Åstrand [Sun, 17 Mar 2002 17:59:04 +0000]
nbsd-fileserver-dont-leak-fds-
20020317
file server now works usefully on netbsd
Derrick Brashear [Sun, 17 Mar 2002 17:53:00 +0000]
callback-function-fixes-
20020317
suggested by lha@stacken.kth.se
drop locks when rxi_Alloc fails, and rework SRXAFSCB_GetCellServDB to use
afs_GetCellByIndex. He suggested same for GetLocalCell, and as long as cell 1
and not CPrimary is the local cell indicator that works, but I left that part
of the code as is for now.
Nickolai Zeldovich [Sat, 16 Mar 2002 22:17:29 +0000]
Add a -cache flag to cmdebug to remotely obtain cache manager configuration
parameters.
Nathan Neulinger [Thu, 14 Mar 2002 19:57:12 +0000]
Fix typo: OMIT_FRAME_POINTER not FOMIT_FRAME_POINTER
Nathan Neulinger [Thu, 14 Mar 2002 19:50:48 +0000]
Zero out the "allocated" flag so that we don't accidentally
free something that wasn't allocated.
Derrick Brashear [Sun, 10 Mar 2002 19:26:41 +0000]
solaris-vfsck-allow-force-runs-when-old-inodes-exist-
20020310
if running with -y report old inodes and continue anyway
Derrick Brashear [Sun, 10 Mar 2002 19:23:38 +0000]
revert-part-of-linux-dcache-inconsistency-fix-
20020115
may revisit this before release; however, open_namei on 2.2 wants a
dentry returned to it and so without this change, creating files in
afs breaks
Love Hörnquist-Åstrand [Sun, 10 Mar 2002 19:07:56 +0000]
rxgen-prototypes-fixes-
20020310
prototype fixes as fallout from rxgen header prototypes
emit server stubs which include header as well
Love Hörnquist-Åstrand [Sun, 10 Mar 2002 18:44:22 +0000]
netbsd-allow-param-file-inclusion-
20020310
fix param files so ifdef error does not preclude inclusion at all
Love Hörnquist-Åstrand [Sun, 10 Mar 2002 18:41:52 +0000]
afsmonitor-strcasestr-in-freebsd-not-netbsd-
20020310
1.5 and current have no strcasestr
Derek Atkins [Sun, 10 Mar 2002 18:39:45 +0000]
configure-allow-kernel-debugging-support-
20020310
currently for linux only, but allow it for others in the future
Yee Jiun [Sun, 10 Mar 2002 18:24:16 +0000]
winnt-deal-with-compiler-packing-
20020310
use pragmas to hit compiler into packing smb_tran2QFSInfo usefully
Nickolai Zeldovich [Fri, 8 Mar 2002 06:08:05 +0000]
viced-call-safss-functions-with-acall-not-tcon-
20020307
based on report from mattiasa@e.kth.se who has the following feedback from
lha@e.kth.se:
Patch from Love to make filserver not loop on MUTEX_ENTER() in
rx_SetSpecific()
Chaskiel M Grundman [Fri, 8 Mar 2002 06:03:34 +0000]
freebsd-use-fake-refs-to-hold-inodes-
20020307
unlike macos x a fake ref works for freebsd
Mattias Amnefelt [Fri, 8 Mar 2002 05:59:32 +0000]
makefiles-dont-hardcode-optimization-flags-
20020307
allow setting optimization in CFLAGS in makefiles
use -g3 on tru64
Derrick Brashear [Fri, 8 Mar 2002 05:48:54 +0000]
fix-stats-structure-ordering-
20020307
report from jhutz@cmu.edu says client-64bit-file-size-support-
20011031
was broken in this way
Derek Atkins [Fri, 8 Mar 2002 04:57:56 +0000]
linux24-fix-memcache-
20020307
The problem is that on 2.4 the 'code' variable is over-written during
the path walk, such that by the time it's checking if the inode
exists, code is already '0'. But if the inode does not exist, code
should be ENOENT to show that the file does not exist.
Mattias Amnefelt [Mon, 4 Mar 2002 16:47:22 +0000]
dux-make-namei-fileserver-work-
20020304
namei should now work on tru64 (tested on 5.0a)
Mattias Amnefelt [Mon, 4 Mar 2002 16:44:00 +0000]
dux-autoconf-tweaks-
20020228
make tru64 5.0a build work
====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================
and make 4.0d work again as well
Nathan Neulinger [Thu, 28 Feb 2002 20:00:40 +0000]
butc-make-xg-match-code-
20020228
this may need to be revisited in the future but in the meantime the rpc stubs match the code
Nickolai Zeldovich [Thu, 28 Feb 2002 06:34:15 +0000]
Use AFS_RXDEADTIME instead of hardcoding a value of 50
Mattias Amnefelt [Thu, 28 Feb 2002 06:10:47 +0000]
afs-servers-use-rx-setnojumbo-interface-
20020228
use rx library interface instead of tweaking in each program
Nathan Neulinger [Thu, 28 Feb 2002 06:08:10 +0000]
afs-rx-enable-locks-cleanup-
20020228
use RX_AFS_GLOCK macros instead of ifdef wrappers
Nathan Neulinger [Thu, 28 Feb 2002 06:05:14 +0000]
vnop-lookup-fix-putvcache-calls-to-match-prototype-
20020228
provide unused 2nd arg to putvcache
Nathan Neulinger [Tue, 26 Feb 2002 23:35:26 +0000]
Really apply improve-type-safety-and-prototype-matching-
20020226.
Somehow only the first 128K of afsfileprocs.c got copied over before.
Nathan Neulinger [Tue, 26 Feb 2002 23:26:36 +0000]
Make the SRXAFS_* functions match prototypes by taking an
rx_call instead of rx_connection, and make CallPreamble()
type-safe by taking two arguments instead of magically
turning an rx_call into rx_connection.
Nickolai Zeldovich [Tue, 26 Feb 2002 22:53:59 +0000]
Fix more build problems due to prototypes produced by rxgen.
Nathan Neulinger [Tue, 26 Feb 2002 16:47:33 +0000]
comerr-fix-objdir-builds-after-sun-make-change-
20020226
use lex source from srcdir
Nickolai Zeldovich [Tue, 26 Feb 2002 16:44:54 +0000]
ubik_tid and ubik_version now come from ubik-int.h
Nickolai Zeldovich [Mon, 25 Feb 2002 09:31:08 +0000]
Fix some of the fallout from having rxgen-fabricated prototypes.
Nickolai Zeldovich [Sat, 23 Feb 2002 09:38:11 +0000]
Make sure we have enough memory to allocate the return list.
Nickolai Zeldovich [Fri, 22 Feb 2002 09:00:36 +0000]
Fix minor build errors, and rename the dumpId argument of butc's
DeleteDump to avoid collision with budb's #define dumpId.
Nickolai Zeldovich [Fri, 22 Feb 2002 08:58:20 +0000]
Always verify that the client is fully reachable before talking
to it, in the fileserver. This prevents some additional lossage
cases with poorly-connected clients.
Disable same feature for other Rx services, since they don't
need to incur extra RTT delay.
Nickolai Zeldovich [Fri, 22 Feb 2002 08:03:30 +0000]
Fix build when INSTRUMENT_LOCKS isn't defined
David Howells [Wed, 13 Feb 2002 04:09:14 +0000]
rxgen-generate-function-prototypes-
20020212
actually from David Howells of Red Hat.
generates function prototypes in rxgen-emitted headers
Derrick Brashear [Thu, 21 Feb 2002 07:07:52 +0000]
test-suite-run-script-make-setup-not-use-localcell-inadvertantly-
20020221
was a case where we could end up testing "localcell" by accident
Derrick Brashear [Thu, 21 Feb 2002 06:31:13 +0000]
test-suite-update-ka-database-
20020221
cached copy that works
Derrick Brashear [Thu, 21 Feb 2002 06:25:34 +0000]
bos-listkeys-fix-test-
20020221
cksum can be either number
Derrick Brashear [Thu, 21 Feb 2002 06:06:00 +0000]
test-suite-run-tests-export-shell-
20020221
set $SHELL to override whatever your shell sets
Derrick Brashear [Thu, 21 Feb 2002 05:18:35 +0000]
test-suite-updates-
20020221
minor tweaks found making solaris work
Derrick Brashear [Thu, 21 Feb 2002 05:15:28 +0000]
test-suite-make-sure-test-script-is-executable-
20020221
since configure creates the script, just chmod it
Derrick Brashear [Thu, 21 Feb 2002 04:29:22 +0000]
back-out-bosserver-dont-enforce-world-readability-on-server-etcdir-
20011126
on a server where bosserver sets up /usr/vice/etc with symlinks, the links are
/usr/vice/etc/* -> /usr/afs/etc/*
oops
Jaroslaw Polok [Tue, 19 Feb 2002 19:23:46 +0000]
pam-makefile-fix-dependancies-
20020219
the rest of the patch is already in CVS but missed being pulled up to 1.2.3
Derrick Brashear [Tue, 19 Feb 2002 18:29:16 +0000]
test-suite-solaris-fixes-plus-some-kaserver-glue-
20020216
make it all build on solaris. provide necessary files to set up a kaserver
and authenticate against it (albeit with "known" keys)
Derrick Brashear [Tue, 19 Feb 2002 09:14:54 +0000]
makefile-use-filename-instead-of-dollar-questionmark-
20020219
at least some versions of sun make try to run this as
lex -t ex_lex.lex.l ex_lex.lex.l instead of lex -t ex_lex.lex.l
Derrick Brashear [Mon, 18 Feb 2002 21:09:47 +0000]
dir-create-initialize-null-to-avoid-drelease-on-garbage-
20020218
if FindItem returns without setting previtem this is never initialized
Chaskiel M Grundman [Sat, 16 Feb 2002 18:23:44 +0000]
freebsd-almost-working-client-
20020216
a) a freebsd client that compiles, and to a certain extent, works. Should
not be used except by people doing freebsd client development
b) configure glue for freebsd 4.3, 4.4, and 4.5
c) freebsd tfileserver support. Note that, by default, this isn't very
interesting, as the supported freebsd pthreads are just as cooperative as
LWP. if you install the linuxthreads port and swap the MT_* variables in
osconf.m4, you will get a more traditional tfileserver though. configure
glue for that will be forthcoming at some point.
d) a maybe-fix that sets sin_len in sockaddrs on platforms that have them.
(and also a fix for the AC_PROG_CC issue which affects autoconf 2.13 and 2.5x
on same conf files issue)
Derrick Brashear [Sat, 16 Feb 2002 18:09:26 +0000]
test-suite-solaris-fixes-plus-some-kaserver-glue-
20020216
make it all build on solaris. provide necessary files to set up a kaserver
and authenticate against it (albeit with "known" keys)
Derrick Brashear [Fri, 15 Feb 2002 14:00:39 +0000]
linux-osi-alloc-up-alloc-sem-while-alloc-to-avoid-deadlock-against-glock-
20020215
Based on report from David Howells of RedHat (via Guy Streeter)
Nickolai Zeldovich [Fri, 15 Feb 2002 05:07:13 +0000]
Use autoconf to check for p_corefile in struct proc, rather than
assuming it exists in Solaris 7 and above; nneul@umr.edu reports
that it doesn't for some kernel revision.
Derrick Brashear [Fri, 15 Feb 2002 04:38:59 +0000]
rx-event-deal-with-gcc-296-this-time-for-sure-
20020214
somehow i suspect one of our platforms doesn't do volatile and i'll
regret this, but this stops linux i386 when afs_int32 is an int from
going off into la-la land when an Rx retransmit is needed
Derrick Brashear [Fri, 15 Feb 2002 04:23:24 +0000]
rx-clock-cast-comparison-macros-to-int-
20020212
gcc 2.96 appears to miscompile these
====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================
undo. the bug was a little more subtle and my debugging code masked it
Ted Anderson [Wed, 13 Feb 2002 20:00:18 +0000]
vol-salvage-add-missing-parameter-to-logging-
20020213
bad trace statement due to missing parameter; added
Laura Stentz [Wed, 13 Feb 2002 09:37:59 +0000]
afsweb-add-netscape-config-script-
20020213
this was omitted from the original release and now can be included
Nathan Neulinger [Wed, 13 Feb 2002 04:00:57 +0000]
viced-printinode-returns-string-not-number-
20020212
based on feedback from ota@transarc.com
PrintInode returns a string, use it
Nickolai Zeldovich [Fri, 8 Feb 2002 19:50:00 +0000]
Allow AFS to shutdown on Solaris (and subsequently be reloaded
and restarted). Still leaks memory, unlike the Linux module.
Hartmut Reuter [Fri, 8 Feb 2002 17:28:44 +0000]
Don't grab tdc->lock when tdc is null.
Nickolai Zeldovich [Fri, 8 Feb 2002 07:05:34 +0000]
Properly AFS_GUNLOCK() when returning an error after having previously
AFS_GLOCK()'ed, in afs_mount() and afs_unmount().
Nickolai Zeldovich [Thu, 7 Feb 2002 03:07:23 +0000]
Include linux/sysctl.h after afsconfig.h, since we need the
modversion stuff first.
Kris Van Hees [Thu, 7 Feb 2002 00:06:35 +0000]
linux-provide-sysctl-interface-
20020206
provide sysctl interface for toggling module state. provide hooks for
all currently known tweakable items
Nickolai Zeldovich [Wed, 6 Feb 2002 23:57:44 +0000]
solaris-p-crlock-not-safe-to-hold-across-call-to-crset-
20020206
crset() expects p_crlock to not be held when it's called; deal accordingly
Derrick Brashear [Tue, 5 Feb 2002 21:58:03 +0000]
newvolumebyname-analyze-the-vrequest-actually-used-
20020205
it's ok to support a null request being passed in, but if a real one is
passed in we shouldn't analyze it when it's not the one we used when
making calls.
Nickolai Zeldovich [Sat, 2 Feb 2002 18:33:49 +0000]
Add the necessary includes for AFS_ISGLOCK, AFS_GLOCK, AFS_GUNLOCK.
Hartmut Reuter [Fri, 1 Feb 2002 22:12:51 +0000]
viced-callback-avoid-potential-looping-problem-
20020201
avoid case where we never come out of loop attempting to clear host cvallbacks
Nickolai Zeldovich [Fri, 1 Feb 2002 20:29:59 +0000]
First pass at better signal handling:
-- Add afs_osi_SleepSig, which returns EINTR when interrupted by signal.
-- Similar CV_WAIT_SIG for Rx code.
-- Implement afs_osi_SleepSig and CV_WAIT_SIG for Linux, Solaris.
-- Use afs_osi_SleepSig in afs_{UFS,Mem}Read, allowing user to interrupt
an AFS read if it's being handled by background daemon.
-- Balance the number of open & close braces in CV_TIMEDWAIT macros,
even though noone uses them.
-- Untangle parts of the macro forest by moving some of the Rx CV code
into rx_kmutex.c.
Nickolai Zeldovich [Wed, 30 Jan 2002 21:13:48 +0000]
Block signals when sleeping in CV_WAIT() and CV_TIMEDWAIT(), similar
to the linux-avoid-signal-wakeups-while-sleeping-
20020129 change for
afs_osi_Sleep().
Nickolai Zeldovich [Wed, 30 Jan 2002 16:16:23 +0000]
Avoid deadlocking with afs_ResetVolumeInfo in InstallVolumeInfo and
InstallNVolumeInfo, like we already do in InstallUVolumeInfo.
Derrick Brashear [Tue, 29 Jan 2002 22:34:13 +0000]
readd-t-uniq-bad-as-binary-
20020129
oops
Nickolai Zeldovich [Tue, 29 Jan 2002 17:36:20 +0000]
Block all signals while sleeping; this prevents 100% cpu usage
when a process waiting for an afs operation to complete receives
a signal.
Nickolai Zeldovich [Tue, 29 Jan 2002 17:26:26 +0000]
Properly release GLOCK when trying to mount AFS a second time.
Nickolai Zeldovich [Tue, 29 Jan 2002 16:07:27 +0000]
Use filemap_fdata{sync,wait} directly (available in 2.4.5 and above)
rather than write_inode_now(), which steals afs inodes and puts them
on the global inode lists.
Derrick Brashear [Mon, 28 Jan 2002 21:32:20 +0000]
configure-add-darwin-52-support-as-14-since-no-change-otherwise-
20020128
it was previously agreed that we wouldn't add gratuitous new sysnames unless things
(not just what the vendor calls the operating system) changed. precedent is
sun4m_412 still being "current" for sun4m_413, etc.
Nickolai Zeldovich [Sat, 26 Jan 2002 03:40:30 +0000]
rx-dont-include-arraysize-in-offsetof-
20020125
so this compiles on irix
Derrick Brashear [Thu, 24 Jan 2002 20:13:22 +0000]
linux-afsd-pids-block-signals-so-we-dont-need-to-flush-
20020124
no point in keeping this around
David Howells [Thu, 24 Jan 2002 18:09:28 +0000]
linux-conf-fix-type-which-crept-in-
20020124
"oops"
Derrick Brashear [Thu, 24 Jan 2002 10:46:42 +0000]
solaris-rx-shutdown-sleep-only-if-listener-pid-not-freed-
20020124
replace if with while in case the listener is freed before we call sleep
Derrick Brashear [Thu, 24 Jan 2002 10:42:34 +0000]
linux-unmask-signals-in-rxk-listener-at-shutdown-
20020124
since the rxk listener gets "kill"d at shutdown we need to unmask to wake
it up. this should probably be replaced but the logical way is evil,
involves simulating a packet to the listener so it wakes up and notices it's
time to die
Derrick Brashear [Thu, 24 Jan 2002 10:09:13 +0000]
linux-cant-daemonize-due-to-exit-mm-call-oh-well-
20020124
the call to daemonize() means we fail to shut down correctly on SMP machines;
this is due to the call to exit_mm() in daemonize()