]>
git.michaelhowe.org Git - packages/o/openafs.git/log
Garry Zacheiss [Wed, 25 Sep 2002 23:14:52 +0000 (23:14 +0000)]
Begin release cycle.
Derrick Brashear [Thu, 19 Sep 2002 23:33:43 +0000 (23:33 +0000)]
STABLE12-linux-correct-fragsize-to-be-as-expected-
20020919
consider it a partial pullup of client-64bit-file-size-support-
20011031
in order for the bit operations we do in afs_AdjustSize to work, this must
be (what it is) minus 1
Derrick Brashear [Wed, 18 Sep 2002 00:11:04 +0000 (00:11 +0000)]
STABLE12-freebsd-finish-pullup-
20020917
sigh.
Derrick Brashear [Sat, 14 Sep 2002 00:53:36 +0000 (00:53 +0000)]
STABLE12-nfs-trans-comment-unused-variables-
20020913
make solaris xlator module load
(cherry picked from commit
abe77a507ad6c7185b38b9948d58edcf58568db3 )
Derrick Brashear [Fri, 13 Sep 2002 05:15:16 +0000 (05:15 +0000)]
STABLE12-update-README-
20020913
platform list update
Derrick Brashear [Fri, 13 Sep 2002 04:53:50 +0000 (04:53 +0000)]
STABLE12-alpha-dux-rm-missing-
20020912
define RM
Derrick Brashear [Fri, 13 Sep 2002 03:53:19 +0000 (03:53 +0000)]
STABLE12-rxkad-client-offer-better-bad-token-warnings-
20020912
if it's too large to be a valid token, offer a useful error.
(cherry picked from commit
33ada3676c4be83dc22cd7765e3904fe7c9377c6 )
Derrick Brashear [Wed, 11 Sep 2002 17:17:31 +0000 (17:17 +0000)]
STABLE12-linux-use-kernel-threads-and-completions-if-possible-
20020911
configure glue
====================
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.
====================
with some rewriting by shadow@dementia.org
====================
rest of the configure glue
====================
no sys_exit in stock kernels
(cherry picked from commit
a0154cf196b54c411e2fa47cf36f5fe5af45746e )
Michael Niksch [Wed, 11 Sep 2002 09:18:09 +0000 (09:18 +0000)]
STABLE12-aix-namei-fileserver-fix-
20020911
make namei fileserver work on aix
(cherry picked from commit
8790c0759c5c920fce035945a9d2fdd05fa9a75d )
Derrick Brashear [Wed, 11 Sep 2002 08:21:59 +0000 (08:21 +0000)]
STABLE12-evalmountpoint-save-stack-
20020909
use "small" memory pool instead of 128 bytes off the stack
(cherry picked from commit
2656f417935a906a95bc07d401229405e8e5d9bd )
Derrick Brashear [Wed, 11 Sep 2002 08:20:23 +0000 (08:20 +0000)]
STABLE12-ptserver-acl-dumpentry-to-disallow-access-based-on-record-
20020911
tighten up acl enforcement
(cherry picked from commit
bbca5d8b08cb02a7f7b15fd4ea6d757282e99460 )
Tom Maher [Tue, 10 Sep 2002 23:33:24 +0000 (23:33 +0000)]
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)
====================
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.
====================
no really, we need to include...
====================
missed file
(cherry picked from commit
bd707fb7e6e037ba0ae6e9addedca907cdaf5af0 )
Derrick Brashear [Tue, 10 Sep 2002 06:41:58 +0000 (06:41 +0000)]
STABLE12-shared-library-builds-
20020910
pullup from head
Derrick Brashear [Mon, 9 Sep 2002 18:01:12 +0000 (18:01 +0000)]
STABLE12-uss-fix-typo-
20020909
reported anonymously
(cherry picked from commit
63f25df3ef6cf6f851b8e184510eb49b06441653 )
Derrick Brashear [Wed, 28 Aug 2002 08:20:25 +0000 (08:20 +0000)]
Irix needs this. Put it back.
Note: This was part of the delta prototypes-fixes-
20020821 on the mainline,
but this chunk is needed on the 1.2.x branch, and it would be appropriate
to pull in the entire delta in which it appeared.
Derrick Brashear [Wed, 28 Aug 2002 07:13:32 +0000 (07:13 +0000)]
STABLE12-linux-symbol-export-test-
20020810
test for tasklist_lock being exported
(cherry picked from commit
2bde78fdac01380a359b6e6a8c466757553f846f )
Nickolai Zeldovich [Wed, 28 Aug 2002 05:49:18 +0000 (05:49 +0000)]
Work around MacOSX Finder's behavior by returning ENOENT when the user
tries to look up Contents or .DS_Store in an uncached volume root.
(cherry picked from commit
77b1a76e47948422c7797de2ac27f3a121aa8806 )
Derrick Brashear [Wed, 28 Aug 2002 05:30:48 +0000 (05:30 +0000)]
STABLE12-linux-tasklist-lock-export-detection-
20020829
if you don't have a versioned kernel, so sorry.
(cherry picked from commit
efd9a7e32dc793c45f056be5c796f25db429a054 )
Derrick Brashear [Wed, 28 Aug 2002 04:57:37 +0000 (04:57 +0000)]
more or less verbatim as suggested by kolya@mit.edu
avoid leaking directory fds if we get an error
(cherry picked from commit
b5677719dc204a2b8d039594b8c70bfee3914896 )
Derrick Brashear [Wed, 28 Aug 2002 04:56:05 +0000 (04:56 +0000)]
suggested by Srikanth Vishwanathan
(cherry picked from commit
6ffcd27a1ecd0299cda2f45396c88ecd34959e7a )
Derrick Brashear [Wed, 28 Aug 2002 04:54:49 +0000 (04:54 +0000)]
we weren't passing in creds before. do so.
(cherry picked from commit
6f7e6bf1127d04c4e70ed13cffbc8d9324c41eab )
Nickolai Zeldovich [Wed, 28 Aug 2002 04:53:33 +0000 (04:53 +0000)]
Make "fs newcell" work even when there are no pre-existing cells in
the kernel yet. Previously, newcell tried to issue a GetCell pioctl
to figure out what version of the pioctl interface the kernel is
using. Lacking such information (if the pioctl returns an error),
we now assume the newer interface.
(cherry picked from commit
f840143cd6b672858e121a0fb3dea5e12cb60f84 )
Derrick Brashear [Wed, 28 Aug 2002 04:47:43 +0000 (04:47 +0000)]
in a build with alternate dirpaths we shouldn't create directories we
don't use
(cherry picked from commit
9f2a661a98399966735a69ced4b60b68b821c1c9 )
Derrick Brashear [Wed, 28 Aug 2002 04:39:37 +0000 (04:39 +0000)]
apply copyright info from arla.
(cherry picked from commit
641beba860a8f4f47e6ca54ee8c3415d01986337 )
Garry Zacheiss [Wed, 28 Aug 2002 04:37:27 +0000 (04:37 +0000)]
Don't return ELOOP when crossing a mountpoint boundary from a BK volume to
a BK volume. find treats it as a fatal error, and it's annoying not to be
able to naively use find to recurse through a volume with its backup volume
mounted. Never noticed this before because we used to ignore this return
value. Return ENODEV instead.
(cherry picked from commit
f6462eac361ba2bddf5b84cdb7861f7ca482caba )
Derrick Brashear [Wed, 28 Aug 2002 04:35:51 +0000 (04:35 +0000)]
suggested by lha@stacken.kth.se.
(cherry picked from commit
5a7fa71c8613589c1c38d1d7723d72221818017f )
Derrick Brashear [Wed, 28 Aug 2002 04:34:58 +0000 (04:34 +0000)]
based on report from lha@e.kth.se
note that this works because PIGGYSIZE is always less than AFS_LRALLOCSIZ
(cherry picked from commit
6260cbecd0795c4795341bdcf98671de6b9a43fb )
Derrick Brashear [Wed, 28 Aug 2002 04:32:18 +0000 (04:32 +0000)]
STABLE12-netinfo-support-fake-ips-for-nat-
20020808
basically verbatim from Todd DeSantis, cleared for release by IBM
(cherry picked from commit
caeecc241e6b4133009e9997cba4e4f259c33e60 )
Nickolai Zeldovich [Wed, 28 Aug 2002 04:28:14 +0000 (04:28 +0000)]
STABLE12-windows-build-fixes-
20020806
fix windows build items
(cherry picked from commit
fa729e7694d8d2a7694621542ddce6e212050599 )
Derrick Brashear [Wed, 28 Aug 2002 04:27:08 +0000 (04:27 +0000)]
hold tasklist_lock in the right place. doesn't yet address versions
which don't export it.
(cherry picked from commit
38025e06508a7a83247ca4f8957fb8e5f32dec78 )
Derrick Brashear [Mon, 26 Aug 2002 05:34:08 +0000 (05:34 +0000)]
STABLE12-sunos-support-cleanup-
20020822
some things want ucontext.h. leave it there
(cherry picked from commit
76aa5ff2186ee28717a25b8d6947046ac14d8770 )
Derrick Brashear [Thu, 22 Aug 2002 18:54:46 +0000 (18:54 +0000)]
STABLE12-vsprocs-checkvolume-bug-
20020822
if we're going to make a string we should make it where we expect it
(cherry picked from commit
0e05e114a663acc138d1be7d87f2631c3460de40 )
Nickolai Zeldovich [Thu, 22 Aug 2002 03:03:41 +0000 (03:03 +0000)]
Clear the RX_CONN_ATTACHWAIT flag when an asymmetric client's calls
time out; otherwise, the client could be locked out until the conn
is recycled.
(cherry picked from commit
7c20aa608273c5af8829183b325acbb2c356e038 )
Nickolai Zeldovich [Thu, 22 Aug 2002 03:02:09 +0000 (03:02 +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.
(cherry picked from commit
b08f021fc924f24fe82dae79fa9ff30ff0a17572 )
Nickolai Zeldovich [Thu, 22 Aug 2002 03:00:28 +0000 (03:00 +0000)]
The first part of the patch fixes a likely deadlock in the
case when we're destroying a client connection with active
calls.
The second part fixes a minor connection refcount leak in
my recent modification to protect against half-reachable
clients.
(Note: the first part of this was pulled up a while ago. The second
part wasn't, and is being pulled up now.)
Nickolai Zeldovich [Thu, 22 Aug 2002 02:47:44 +0000 (02:47 +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.
(cherry picked from commit
feb689396ccc39f304db05cb69dc8db3506de921 )
Nickolai Zeldovich [Thu, 22 Aug 2002 02:43:30 +0000 (02:43 +0000)]
This patch should protect Rx-based servers from half-reachable clients,
which issue requests but don't acknowledge the server's response, thereby
eventually tying up all of the server threads, and denying service to all
other clients. Such clients can arise in case of uni-directional routing
failures, whereby all packets from the server to client are lost but not
the other way around.
The idea it to ping clients (using Rx ack ping) before attaching them to
a thread, if (a) we're running low on threads, and (b) the client hasn't
responsed to a ping recently.
(cherry picked from commit
c8f461dcb0b4e8d63a99b9837f2dcc1d52d66cc4 )
Chaskiel M Grundman [Wed, 21 Aug 2002 23:08:54 +0000 (23:08 +0000)]
STABLE12-darwin-updates-
20020821
should be correct support for 10.2. also updates for 10.1
(cherry picked from commit
89f411e22c2d63c78cbd52410ca3e15b8aaf1c4a )
Derrick Brashear [Wed, 21 Aug 2002 22:13:24 +0000 (22:13 +0000)]
STABLE12-ptserver-catch-empty-idlist-
20020831
based on report from joda+openafs@pdc.kth.se
consistent with what the opposite transform does
(cherry picked from commit
c6fcaad9e8b7374d0fd5ca579b0559f599b9e0f7 )
Thomas Mueller [Wed, 21 Aug 2002 22:01:55 +0000 (22:01 +0000)]
STABLE12-viced-provide-way-to-not-retraverse-hostlist-
20020821
avoid retraversing the host list and gewtting stucvk in a loop
(cherry picked from commit
0ca7613ac4ce16f54931f3702e186a1097c25d87 )
Hartmut Reuter [Wed, 21 Aug 2002 21:59:04 +0000 (21:59 +0000)]
STABLE12-int64-operator-updates-
20020821
Changing the length and offset fields from afs_int64 to afs_uint64 gave
strange results for CompareInt64 and SubtractInt64. Therefore it's
better to cast the values as signed in these macros.
(cherry picked from commit
6587d225213c9125cb8bfb227647fc5e5511b134 )
Derrick Brashear [Wed, 21 Aug 2002 20:58:02 +0000 (20:58 +0000)]
STABLE12-linux-22-kernel-support-for-current-state-
20020821
based on report from alfw@SLAC.Stanford.EDU
(cherry picked from commit
d4d7befaebb5fb1e4d4cfa9ca6be44852235d1fd )
Chaskiel M Grundman [Wed, 21 Aug 2002 20:54:26 +0000 (20:54 +0000)]
STABLE12-autoconf-warning-cleanup-
20020821
so the 2.13/2.52 support doesn't cause unneeded warnings
Love Hörnquist-Åstrand [Wed, 21 Aug 2002 20:33:45 +0000 (20:33 +0000)]
STABLE12-print-cause-of-bosserver-whining-
20020821
instead of a vague error be slightly more useful
(cherry picked from commit
a0938ecaf51febe8cd59327ca9ef993c829612f0 )
Nickolai Zeldovich [Wed, 21 Aug 2002 20:29:00 +0000 (20:29 +0000)]
STABLE12-ignore-max-file-size-ulimit-internally-
20020809
Set the maxfilesize rlimit to infinity while writing to cache files
to avoid potential truncation if the user's rlimit is too low. This
bug likely also exists in AIX, DARWIN, DUX, FBSD, HPUX and NBSD, but
surprisingly IRIX got this right.
(cherry picked from commit
3e6640e96dfee36cc302428d71f5de210f67be5f )
Nathan Neulinger [Wed, 21 Aug 2002 20:27:04 +0000 (20:27 +0000)]
STABLE12-volser-vsprocs-call-enumerateentry-correctly-
20020821
prototyping caught this
(cherry picked from commit
4b148570b3d975986221710574c99e49840e3f26 )
Jeffrey Hutzelman [Wed, 21 Aug 2002 20:24:51 +0000 (20:24 +0000)]
STABLE12-sunos4-port-
20020821
This patch adds support for building OpenAFS user-mode code on SunOS 4.
It does not include libafs, ulibafs, or any code that needs to understand
the filesystem layout (so, no vfsck, and while the salvager will be built,
it won't work).
(cherry picked from commit
808369b9693bea613ba998e700ec764638b6d54f )
Nickolai Zeldovich [Wed, 21 Aug 2002 16:54:34 +0000 (16:54 +0000)]
STABLE12-allow-chown-on-storedata-
20020820
Allow users with admin bits to store different user/group IDs
along with a StoreData call; they can already do so anyway by
using StoreStatus. Fixes a spurious permission denied error
with arla clients.
(cherry picked from commit
847a5af3beea35af5f80078a8b24f01582f53824 )
Derrick Brashear [Wed, 21 Aug 2002 16:45:13 +0000 (16:45 +0000)]
STABLE12-bos-fix-restart-usage-message-
20020821
as suggested by Turbo Fredriksson
restart does not default to all
(cherry picked from commit
ba5ed52c8740ac78dd062667b6de580b3907d409 )
Derrick Brashear [Wed, 21 Aug 2002 06:53:23 +0000 (06:53 +0000)]
STABLE12-realcellindex-fix-allocation-
20020821
fix comparison and the double allocation it uncovers
(cherry picked from commit
ae3e679ab0163560a29ca51eec77a2c897a8f216 )
Chas Williams [Mon, 19 Aug 2002 21:40:22 +0000 (21:40 +0000)]
STABLE12-linux-try-to-reduce-invasiveness-of-flushdcachechildren-
20020725
try to become less invasive about dcache child flushing
(cherry picked from commit
efbaa07c990df1bd190bbc4851535810a4eeb208 )
Charles Clancy [Tue, 6 Aug 2002 19:58:56 +0000 (19:58 +0000)]
STABLE12-pam-afs-man-page-
20020806
our first real man page. now, we just need a few hundred others.
(cherry picked from commit
f4d6cdd26c8b3a4db9ff2c13588c7c9c6ebd2f5b )
Derrick Brashear [Mon, 5 Aug 2002 23:08:02 +0000 (23:08 +0000)]
STABLE12-vos-listaddrs-avoid-holes-in-index-
20020805
index may have holes in it, so make sure we actually walk over the number
of entries we expect
(cherry picked from commit
61442535baca5f81fee3dc3ed59227678b481277 )
Garry Zacheiss [Fri, 2 Aug 2002 08:45:35 +0000 (08:45 +0000)]
Add release notes for OpenAFS 1.2.6.
Garry Zacheiss [Fri, 2 Aug 2002 08:05:47 +0000 (08:05 +0000)]
Update NEWS file with user visible changes in 1.2.6.
(cherry picked from commit
e2253172104e23b9c80de5e69a6af2564e599dd1 )
Garry Zacheiss [Fri, 2 Aug 2002 04:51:13 +0000 (04:51 +0000)]
Begin release cycle.
Derrick Brashear [Fri, 2 Aug 2002 04:11:14 +0000 (04:11 +0000)]
STABLE12-vol-fssync-ack-before-breaking-callbacks-
20020612
given that we don't bother to do anything to return value, we can ack
the fssync op earlier and not tie up the volserver unnecessarily
found due to comments from brent.johnson@jpl.nasa.gov
(cherry picked from commit
d7e3e249cbb4ebe0f1d3be3d02b5b593e576cfa0 )
Garry Zacheiss [Fri, 2 Aug 2002 03:45:14 +0000 (03:45 +0000)]
Include xdr.o and xdr_array.o in librx, to pick up xdr fix.
(cherry picked from commit
61a3c91d476ea1f2803bc6a9a798146bcf3394c3 )
Chas Williams [Thu, 1 Aug 2002 20:12:01 +0000 (20:12 +0000)]
STABLE12-linux-cleanup-partial-writes-
20020801
Clean up partial write support on Linux by calling afs_DoPartialWrite
from afs_linux_writepage_sync.
(cherry picked from commit
14dc5dfa08cfe64f9abd3e5d98a5e6dc08f69736 )
Chas Williams [Thu, 1 Aug 2002 17:13:21 +0000 (17:13 +0000)]
STABLE12-linux-alloc-dont-drop-what-you-dont-have-
20020801
avoid trying to drop a glock we don't have
(cherry picked from commit
9e06544249bf6a536c3f3f26048f6809b36b0772 )
Garry Zacheiss [Thu, 1 Aug 2002 04:35:11 +0000 (04:35 +0000)]
Add a prototype of afs_GetRealCellByIndex to fix Irix build.
(cherry picked from commit
fb6d2422f3b0b9ee756def4d91f11983fd767ad0 )
Garry Zacheiss [Thu, 1 Aug 2002 03:46:21 +0000 (03:46 +0000)]
Include errno.h so this compiles again.
(cherry picked from commit
49e0c6409a92e707901139789ca79d11a8aa8a67 )
Jeffrey Hutzelman [Thu, 1 Aug 2002 00:13:49 +0000 (00:13 +0000)]
STABLE12-xdr-updates-
20020731
update xdr so internal variables match what's being passed in
(cherry picked from commit
2d6ebd0cda81cff70a22a4393aaf58c5b7ccbb2e )
Derek Atkins [Wed, 31 Jul 2002 23:41:54 +0000 (23:41 +0000)]
STABLE12-linux-start-if-dynroot-even-if-no-network-
20020731
if we start with dynroot, dont worry if we have net or not
(cherry picked from commit
aea332588be791dd79c467e727621be382d18a21 )
Jeffrey Hutzelman [Wed, 31 Jul 2002 23:36:11 +0000 (23:36 +0000)]
STABLE12-deal-with-linux-EAGAIN-returns-when-receiving-
20020731
sometimes you get EAGAIN from recvfrom, apparently if a packet comes in with a
bad checksum for instance. we should deal better.
(cherry picked from commit
6c5439b80934cd6e3f0539a07874c3bda18d676d )
Chas Williams [Wed, 31 Jul 2002 23:31:10 +0000 (23:31 +0000)]
STABLE12-linux-alloc-drop-glock-if-we-can-
20020731
if we can drop the glock, do so. allocate up to PAGE_SIZE with kmalloc before
switching to vmalloc
(cherry picked from commit
4d75219bedc12833c6265b6e018e6455aa88921c )
Derrick Brashear [Wed, 31 Jul 2002 23:19:50 +0000 (23:19 +0000)]
STABLE12-afs-getcell-pioctl-should-be-able-to-provide-complete-list-
20020731
don't use the LRUq since it can make us miss cells. don't use the existant
index because it includes cell aliases
(cherry picked from commit
f2ab9fd440bcccb34e7875c06e00136fbefc10d1 )
Derrick Brashear [Wed, 31 Jul 2002 23:00:02 +0000 (23:00 +0000)]
STABLE12-linux-note-we-use-interruptible-sleeps-in-non-compliant-manner-
20020731
based on discussion with David Howells of RedHat
(cherry picked from commit
f063c0db2109b3e089c54b4c6dd948bbd72a0ab1 )
Nickolai Zeldovich [Wed, 31 Jul 2002 19:55:32 +0000 (19:55 +0000)]
fix-fakestat-support-for-hardlinks-
20020731 made afs_vnop_link.c
not compile under Sun's cc, since it tried to take the address of
a register variable. Don't declare the arguments as register.
(cherry picked from commit
6c9fd25ae779bc092b9c1eb531d08483b4a96a53 )
Nickolai Zeldovich [Wed, 31 Jul 2002 17:42:32 +0000 (17:42 +0000)]
STABLE12-fix-fakestat-support-for-hardlinks-
20020731
Support afs_link() in volume roots when using fakestat.
(cherry picked from commit
59741a821caec4ed83b87dcadbd4771e8d181c38 )
Nickolai Zeldovich [Wed, 31 Jul 2002 04:42:07 +0000 (04:42 +0000)]
STABLE12-make-mutex-tryenter-consistent-with-head-
20020730
pullup change from head to MUTEX_TRYENTER
Chas Williams [Tue, 30 Jul 2002 22:35:53 +0000 (22:35 +0000)]
STABLE12-linux-enable-partial-writes-
20020730
backport of linux-enable-partial-writes-and-prefetch-
20020730
which does not include prefetch and dcache locking changes
(dcache locking isn't in 1.2 but prefetch should be pulled up
for 1.2.7)
Nickolai Zeldovich [Tue, 30 Jul 2002 22:27:18 +0000 (22:27 +0000)]
STABLE12-return-correct-values-for-fcntl-FGETLK-
20020727
Re-encode struct fcntl back into Linux's struct file_lock so
that fcntl(F_GETLK) returns proper values to the user.
(cherry picked from commit
b8ebb1a225c55f38aa2a59b1ffd77c2bdc06ff9f )
Nickolai Zeldovich [Tue, 30 Jul 2002 08:04:39 +0000 (08:04 +0000)]
Remove two unnecessary casts that prevented compilation on Linux 2.2.
(cherry picked from commit
e9a6a539449ff3144169aa8ca5fc38bab613ab53 )
Derrick Brashear [Fri, 26 Jul 2002 21:56:32 +0000 (21:56 +0000)]
STABLE12-solaris-nfs-module-updates-
20020726
make it compile again
(cherry picked from commit
094adf6b12f3461a7f0ea4ec0a9f268c0c50336b )
Nickolai Zeldovich [Fri, 26 Jul 2002 21:41:10 +0000 (21:41 +0000)]
STABLE12-verify-getcellbyindex-return-value-
20020726
Verify that afs_GetCellByIndex() returns a valid cell -- it might
be NULL if afs_NewCell() aborted partway through, which could be
the case of the CellServDB file has a typo.
(cherry picked from commit
9d8ad37ced11afac107a2b7d8d1bd95c7e1aa9f8 )
Tino Schwarze [Fri, 26 Jul 2002 21:39:08 +0000 (21:39 +0000)]
STABLE12-cleanup-pioctl-avoid-inadvertantly-setting-new-pags-due-to-gcc-
20020726
fix operator precedence bug
(cherry picked from commit
07a4570310f6bdddbe07ffccb3ece579ff4bdff8 )
Ryan Lantzer [Fri, 26 Jul 2002 06:14:25 +0000 (06:14 +0000)]
STABLE12-windows-no-more-files-workaround-
20020725
work around erroneous "no more files" error in winnt client
(cherry picked from commit
595f9ae4334f1dcf665944b8e6493a4f82855d13 )
Rainer Toebbicke [Fri, 26 Jul 2002 06:00:27 +0000 (06:00 +0000)]
STABLE12-tbutc-uses-not-thread-safe-status-
20020725
"The multithreaded butc (src/tbutc/butc) includes bucoord/status.o, which is
compiled together with the other bucoord stuff without MT_CFLAGS and hence
without AFS_PTHREAD_ENV defined. Alas, it uses ObtainWriteLock and other
macros out of lock.h which *are* sensitive to AFS_PTHREAD_ENV. Consequently,
butc can hang trying to acquire the statusQueueLock when dumping volumes, in
particular if 'backup status' commands are issued frequently.
A proper fix would probably be to push some of those macros out of lock.h and
make them subroutines in lock.c.
A quick fix is ensuring status.c gets recompiled in tbutc/Makefile.in"
(cherry picked from commit
fd2cb884e24b5bf48392db4222ee10125014a3ee )
Chas Williams [Fri, 26 Jul 2002 05:36:16 +0000 (05:36 +0000)]
STABLE12-linux-hold-glock-across-dentry-trace-entries-while-tracing-
20020725
this is actually rather scary
(cherry picked from commit
0f4021128e1016ec9a6fea3a52f47e616fcb2022 )
Chas Williams [Fri, 26 Jul 2002 05:35:04 +0000 (05:35 +0000)]
STABLE12-linux-cleanup-rx-cv-locking-
20020725
cleanup wait queue usage
grab glock before mutex (like all other ports)
(cherry picked from commit
fc71eb6e255b6d2bc1d24e9aae799329c675ec49 )
Garry Zacheiss [Tue, 23 Jul 2002 00:53:40 +0000 (00:53 +0000)]
Oops, missed a portion of diff.
Garry Zacheiss [Tue, 23 Jul 2002 00:47:11 +0000 (00:47 +0000)]
Fix typo introduced while merging in fakestat support.
Nickolai Zeldovich [Tue, 23 Jul 2002 00:14:45 +0000 (00:14 +0000)]
Pullup all fakestat support to 1.2 branch. This includes all of the
following deltas:
- initial-fakestat-support-
20020402
- fakestat-fix-eval-args-ordering-
20020409
- fix-evalfakestat-argument-ordering-
20020409
- minor-fakestat-cleanup-
20020720
- update-volume-root-attributes-on-linux-fakestat-
20020720
Nickolai Zeldovich [Mon, 22 Jul 2002 23:19:14 +0000 (23:19 +0000)]
Translate faultcode_t return values from vm routines into errno codes.
(cherry picked from commit
9cd177c636c59a7369155d56582bffffb744aeb7 )
Nickolai Zeldovich [Mon, 22 Jul 2002 23:17:26 +0000 (23:17 +0000)]
Correctly check for 32-bit file size limitations on Solaris;
the MAXOFF_T value changed from 32-bit to 64-bit in Solaris 7.
(cherry picked from commit
fbb81cb4ed02a8b9a41657d7ebfdb26b73bdf935 )
Chas Williams [Mon, 22 Jul 2002 23:14:52 +0000 (23:14 +0000)]
make it work for 2.2 kernels also
also some debugging
(cherry picked from commit
73cdd10a1b5bda70cb0a1f6299c3cc570ac97b69 )
Chas Williams [Mon, 22 Jul 2002 23:05:45 +0000 (23:05 +0000)]
"d_delete: needs to call iput() to decrement i_count, which
you get by returning 1 instead of 0.
looking at the other fs schemes (actually its pretty clear in the
nfs code too) i see that they return 1 for 'is_bad_inode()'."
(cherry picked from commit
cabd0bbd4f4129efec2b87b6934c691bf91e883c )
Derrick Brashear [Thu, 11 Jul 2002 23:12:50 +0000 (23:12 +0000)]
STABLE12-uuid-dont-require-snprintf-in-ukernel-
20020711
because obviously not everything has it
(cherry picked from commit
c927f48236dd489a33b0bc9fc3959baf1fae0e45 )
Chaskiel M Grundman [Thu, 11 Jul 2002 03:34:13 +0000 (03:34 +0000)]
STABLE12-darwin-vm-bugfix-for-running-apps-out-of-afs-
20020710
this "fixes a problem that causes the afs kernel code to spew
into syslog if a long running application is run out of /afs"
(cherry picked from commit
7e0d50a1083e765d12a4978150002cfd7d806a91 )
Derrick Brashear [Wed, 10 Jul 2002 22:27:25 +0000 (22:27 +0000)]
STABLE12-inux-kernel-detect-gfp-mask-in-struct-address-space-
20020624
based on report that new redhat kernels need this
Chas Williams [Wed, 10 Jul 2002 22:04:45 +0000 (22:04 +0000)]
STABLE12-linux-sleep-wakeup-cleanup-
20020624
"cleanup osi_sleep.c to remove some additional races. this patches
removes AFS_GLOBAL_SUNLOCK and just uses that case to handle both
smp and non smp cases. osi_TimedSleep always sleeps atleast 1 hz.
(it also always sleeps interruptibly -- you might get some extra
loops but this is better than the load average running away)
sleep_on's are replaced with the more appropriate add_waitq/schedule
sequence. getevent is called after addevent since there is no
danger of GLOCK dropping. getevent/addevent isnt re-merged since
osi_Wakeup doesnt create entries in the event table."
(cherry picked from commit
048543ade8eab56d47e5094fdb56bb7f49983dcf )
Jeremy Stribling [Wed, 10 Jul 2002 21:43:57 +0000 (21:43 +0000)]
STABLE12-openafs-tools-update-
20020630
updates for openafs-tools command suite
(cherry picked from commit
c746dbb3cb3fa97c4f8253eef39cd3f01d0b0e12 )
Derrick Brashear [Wed, 10 Jul 2002 21:42:29 +0000 (21:42 +0000)]
STABLE12-linux-gcpags-support-
20020625
might even work
(cherry picked from commit
b2788cf3abf20f404c16c57314e126a2b1b5800f )
Kris Van Hees [Wed, 10 Jul 2002 21:41:45 +0000 (21:41 +0000)]
STABLE12-vol-allocate-partition-names-dynamically-to-avoid-problems-with-vx-stuff-
20020624
otherwise long device paths can screw you
(cherry picked from commit
78b1f7ec565ec32e114e80035581f95de50a9f04 )
Derrick Brashear [Wed, 10 Jul 2002 21:41:04 +0000 (21:41 +0000)]
STABLE12-linux-kernel-detect-gfp-mask-in-struct-address-space-
20020624
based on report that new redhat kernels need this
(cherry picked from commit
19ffb82266bebfbcd529a85b43765b95355195f9 )
Chas Williams [Wed, 10 Jul 2002 21:05:03 +0000 (21:05 +0000)]
STABLE12-linux-more-osi-sleep-wakeup-fun-
20020624
"the attached patch 'fixes', in my opinion, in osi_alloc. objects <=
AFS_SMALLOCSIZ are alloced with kmalloc, other vmalloc. if kmalloc
fails it doesnt fail over to vmalloc. TASK_RUNNING is set after
schedule. it doesnt drop the GLOCK. i moved the allocator init
later so that it doesnt need to toggle the semaphore just before
going to linux_alloc."
(cherry picked from commit
fe1648ca02137cac306d5f5002d8f79b580694ba )
Derrick Brashear [Wed, 10 Jul 2002 21:04:36 +0000 (21:04 +0000)]
STABLE12-ufsread-save-the-oops-for-where-we-expect-it-
20020624
based on comment from matt@slackers.net
(cherry picked from commit
60659d2c8fed0c90584bfffb33c2efa6e6270343 )
Derrick Brashear [Wed, 10 Jul 2002 21:03:54 +0000 (21:03 +0000)]
STABLE12-add-uuid-utility-functions-
20020622
Add afsUUID_to_string() and afsUUID_from_string() utility functions, from
arla.
(cherry picked from commit
664e4f6f0ddbe30ebc78053a7b16634bac926e37 )
Garry Zacheiss [Wed, 10 Jul 2002 21:03:29 +0000 (21:03 +0000)]
STABLE12-define-config_smp-to-some-value-not-empty-string-
20020622
Use:
#define CONFIG_SMP 1
instead of:
#define CONFIG_SMP
to fix recent Redhat kernel which used #if CONFIG_SMP instead of
#ifdef CONFIG_SMP in some kernel headers.
(cherry picked from commit
691edd4ea6c117b25aeb124ce7c4a7755694cb37 )