]> git.michaelhowe.org Git - packages/o/openafs.git/log
packages/o/openafs.git
23 years agoSTABLE12-windows-update-dirpath-header-20020612
Marc Dionne [Wed, 10 Jul 2002 20:58:50 +0000 (20:58 +0000)]
STABLE12-windows-update-dirpath-header-20020612

add missing definitions

(cherry picked from commit 0f64b6b7528d61199c7c169d06325f5fde2e14f6)

23 years agoSTABLE12-arla-pioctls-now-bogus-20020612
Derrick Brashear [Wed, 10 Jul 2002 20:58:24 +0000 (20:58 +0000)]
STABLE12-arla-pioctls-now-bogus-20020612

as reported by lha@stacken.kth.se

(cherry picked from commit 544fe2ef8ed929e805bac27faa3c2e62aaaadcba)

23 years agoSTABLE12-solaris-x86-20020611
Joakim Fallsjö [Wed, 10 Jul 2002 20:57:39 +0000 (20:57 +0000)]
STABLE12-solaris-x86-20020611

solaris 7 and 8 for x86

(cherry picked from commit a271a55041086f062ca888e5cdde02fe234f7281)

23 years agoSTABLE12-solaris-9-support-20020611
Quanah Gibson-Mount [Wed, 10 Jul 2002 20:43:17 +0000 (20:43 +0000)]
STABLE12-solaris-9-support-20020611

update hrestime interface

(cherry picked from commit 9c29a6ead1730649ca501c85482288c73e99f693)

23 years agoSTABLE12-linux-dont-install-osi-vfs-h-when-no-kernel-module-20020611
Derrick Brashear [Wed, 10 Jul 2002 20:40:22 +0000 (20:40 +0000)]
STABLE12-linux-dont-install-osi-vfs-h-when-no-kernel-module-20020611

the rest of the patch

(cherry picked from commit de06f45787658ff47d959d782a57e498598c1a4f)

23 years agoSTABLE12-windows-callback-interface-updates-20020611
Derrick Brashear [Wed, 10 Jul 2002 20:38:54 +0000 (20:38 +0000)]
STABLE12-windows-callback-interface-updates-20020611

make callback interface like unix

(cherry picked from commit eb8c33d2993ef279218e970a300d5bac2bb63f9b)

23 years agoSTABLE12-pam-update-for-correct-krb-aware-module-20011102
Thomas Mueller [Wed, 12 Jun 2002 01:16:52 +0000 (01:16 +0000)]
STABLE12-pam-update-for-correct-krb-aware-module-20011102

this still missed being pulled up

(cherry picked from commit 68196d85dbd09220f91421101f651d8e8d7322c3)

23 years agoSTABLE12-revert-dont-spawn-kernel-thread-for-rxk-listener-20020426 openafs-stable-1_2_5
Derrick Brashear [Sun, 9 Jun 2002 01:46:47 +0000 (01:46 +0000)]
STABLE12-revert-dont-spawn-kernel-thread-for-rxk-listener-20020426

in some cases this causes shutdowns to hang forever. notably shutdown -i0 -g6 -y works while reboot does not

(cherry picked from commit fe1beb4f3e69f4ae2dbec60902b60cd601674d15)

23 years agoSTABLE12-warn-of-but-allow-bogus-shutdown-20020608
Derrick Brashear [Sat, 8 Jun 2002 21:29:49 +0000 (21:29 +0000)]
STABLE12-warn-of-but-allow-bogus-shutdown-20020608

despite the danger of it, allow shutdown without umount, to prevent hanging

23 years agoAdd OpenAFS 1.2.5 Release Notes.
Garry Zacheiss [Sat, 8 Jun 2002 12:34:47 +0000 (12:34 +0000)]
Add OpenAFS 1.2.5 Release Notes.

23 years agoSTABLE12-getcellservdb-cleanup-20020608
Derrick Brashear [Sat, 8 Jun 2002 12:00:28 +0000 (12:00 +0000)]
STABLE12-getcellservdb-cleanup-20020608

based on comments and suggestion from Srikanth Vishwanathan <vsrikanth@in.ibm.com>
avoid deadlock. send back variable length list. allocate what we need to, and
be care to clean up after ourselves if there's an error. whether this
should be variable length is arguable but it's pretty clear no one was using
this before.

(cherry picked from commit 08bb209eef379534268ec6433a131bc52711d111)

23 years agoSTABLE12-use-private-xdr-in-kernel-to-avoid-conflicts-over-memory-ownership-20020608
Derrick Brashear [Sat, 8 Jun 2002 08:45:49 +0000 (08:45 +0000)]
STABLE12-use-private-xdr-in-kernel-to-avoid-conflicts-over-memory-ownership-20020608

allocating memory from a pool and then having it be freed out from under you is unwise

(cherry picked from commit b80ae7d78cd944420c54567030e57c4f68a3d482)

23 years agoUpdate NEWS file with important changes in 1.2.5 release.
Garry Zacheiss [Sat, 8 Jun 2002 05:56:39 +0000 (05:56 +0000)]
Update NEWS file with important changes in 1.2.5 release.

(cherry picked from commit 3651150489cc5e98dc88643d0a24d0f3941f86b8)

23 years agoSTABLE12-create-openafs-1_2_5-20020608
Derrick Brashear [Sat, 8 Jun 2002 05:50:21 +0000 (05:50 +0000)]
STABLE12-create-openafs-1_2_5-20020608

new release cycle

23 years agofix afs to enforce that /afs must be unmounted, and afsd to report it
Derrick Brashear [Sat, 8 Jun 2002 02:34:00 +0000 (02:34 +0000)]
fix afs to enforce that /afs must be unmounted, and afsd to report it

(cherry picked from commit 155c13192339239dd1d794210b5bcedfb3feea15)

23 years agoRecognize MacOS X 10.1.5 as ppc_darwin_14. It's compatible.
Garry Zacheiss [Sat, 8 Jun 2002 02:31:15 +0000 (02:31 +0000)]
Recognize MacOS X 10.1.5 as ppc_darwin_14.  It's compatible.

(cherry picked from commit 3789698e0ab94c4ff0ebb875d336eb34ff2aa5aa)

23 years agoSTABLE12-avoid-deadlock-while-upgrading-vcache-lock-20020605
Nickolai Zeldovich [Sat, 8 Jun 2002 01:31:42 +0000 (01:31 +0000)]
STABLE12-avoid-deadlock-while-upgrading-vcache-lock-20020605

Delay calling afs_ProcessFS() and upgrading the shared vcache lock
until after the dcache locks have been released, to obey lock ordering
and avoid deadlock.

(cherry picked from commit 9ab8961c3106402de12f4d0dd80c65e249293fdb)

23 years agoSTABLE12-des-fix-linux-64bit-problems-more-usefully-20020607
Chas Williams [Sat, 8 Jun 2002 01:23:48 +0000 (01:23 +0000)]
STABLE12-des-fix-linux-64bit-problems-more-usefully-20020607

with a minor fix from shadow@dementia.org

long isn't 32bit on ia64 or alpha

(cherry picked from commit ddfc17dfd19dd4e5bf83f42b92c3a25ebd101c59)

23 years agoSTABLE12-NT-dirpath-copy-in-useful-file-20020516
Derrick Brashear [Sat, 8 Jun 2002 01:20:26 +0000 (01:20 +0000)]
STABLE12-NT-dirpath-copy-in-useful-file-20020516

basically until NT port has been properly set up to deal with dirpath, make
it work as before

(cherry picked from commit 63ea4ee399b9fc2a52d81ace70e9902424195c2e)

23 years agoSTABLE12-afs-attrs-cast-date-to-int-to-avoid-negative-dates-20020516
Derrick Brashear [Sat, 8 Jun 2002 01:19:39 +0000 (01:19 +0000)]
STABLE12-afs-attrs-cast-date-to-int-to-avoid-negative-dates-20020516

cheap hack to avoid negative date problem which occasionally plagues solaris

(cherry picked from commit c28c22ceadfb1db8151ae74dacee2a49c42624db)

23 years agoSTABLE12-pioctl-avoid-inadvertantly-setting-new-pags-due-to-gcc-20020516
Nathan Neulinger [Sat, 8 Jun 2002 01:18:35 +0000 (01:18 +0000)]
STABLE12-pioctl-avoid-inadvertantly-setting-new-pags-due-to-gcc-20020516

some versions of gcc compile the if used to decide whether to allocate a pag
badly. make life easier.

(cherry picked from commit 10486b5652f0fb5a1d8c1fe5ddbbf5daa2477974)

23 years agoSTABLE12-viced-malloc-dont-make-assumptions-about-the-compiler-20020524
Derrick Brashear [Sat, 8 Jun 2002 01:17:31 +0000 (01:17 +0000)]
STABLE12-viced-malloc-dont-make-assumptions-about-the-compiler-20020524

based on report from lha@stacken.kth.se
"identP = (struct Identity *)malloc(1);

This can't be right, there should not be an assumption how the
c-compiler will lay out code. I find it acceptable to do something like this

           /* sizeof valid + offset of valid. */
           i.. = malloc(sizeof(identP->valid) + (int)&(((struct Identity *)0)->valid));

But then, why not just allocate a whole identP and be happy. A afsUUID
is not that bloted (16 bytes) so I can't see why way this is
chosen. 20 bytes will probably be allocated on 32 bit platforms for
the whole struct Identity."

(cherry picked from commit bbab90943637385742923c8bebebdd750a283e5c)

23 years agoSTABLE12-dir-hold-afs-bufferlock-across-increment-of-buffer-lockers-to-prevent-newslo...
Derrick Brashear [Sat, 8 Jun 2002 01:16:59 +0000 (01:16 +0000)]
STABLE12-dir-hold-afs-bufferlock-across-increment-of-buffer-lockers-to-prevent-newslot-from-walking-on-stuff-20020514

liberal debugging code and hammering produced a failure where newslot was
actually walking on another call to newslot because the bufferlock was
being dropped before newslot incremented lockers on the buffer it
was allocating, allowing someone else to come along and also think they
could allocate it.

by holding the bufferlock just a little longer we avoid this

(cherry picked from commit 0eb68f307aac84472a13523a0ce8b7a865f01ac7)

23 years agoSTABLE12-viced-cleanup-dirhandle-references-after-ourselves-20020509
Derrick Brashear [Sat, 8 Jun 2002 01:16:09 +0000 (01:16 +0000)]
STABLE12-viced-cleanup-dirhandle-references-after-ourselves-20020509

doesn't fix any problem that i can find, but results in ihandles not
having thousands of bogus references (and may fix problems if refcnt were to wrap)

(cherry picked from commit ee798e49f23d7894c92275fc3d69b8b5c3c516a2)

23 years agoSTABLE12-vol-ihandle-cleanup-20020429
Srikanth Vishwanathan [Sat, 8 Jun 2002 01:15:35 +0000 (01:15 +0000)]
STABLE12-vol-ihandle-cleanup-20020429

this does fix some potential problems, even if none of them are the
CopyOnWrite problem. basically, ih_reallyclose() could reinsert a now-unref'd
fd handle into the wrong list when cleaning up, and this cleans up the code
considerably.

(cherry picked from commit 5cbc233c648e968381a473a6bc1d6d599d1738d0)

23 years agoSTABLE12-fix-pointer-argument-type-in-hLookup-20020422
Nickolai Zeldovich [Sat, 8 Jun 2002 01:15:02 +0000 (01:15 +0000)]
STABLE12-fix-pointer-argument-type-in-hLookup-20020422

The heldp argument to h_Lookup should be an int* rather than int,
as pointed out by amu@alum.mit.edu.

(cherry picked from commit 27595ffcd995dc31c565acdb630d5b60a275fe27)

23 years agoSTABLE12-prevent-host-deletion-race-20020415
Nickolai Zeldovich [Sat, 8 Jun 2002 01:14:13 +0000 (01:14 +0000)]
STABLE12-prevent-host-deletion-race-20020415

Make h_Lookup_r return the host held, and ensure that it's not
deleted at that point; otherwise, the host may be deleted by
another thread between a call to h_Lookup_r and the time when
we actually get around to h_Hold'ing it.

(cherry picked from commit d4493526a764f5d4d1ef6a437ab8cfa467077be6)

23 years agoSTABLE12-fix-__afs-file-creation-20020411
Nickolai Zeldovich [Sat, 8 Jun 2002 01:13:41 +0000 (01:13 +0000)]
STABLE12-fix-__afs-file-creation-20020411

Pass &treq to afsrename() when preserving a currently-open file.

(cherry picked from commit 301d83202c8d969197ea9515e02eb93c1b2bd72f)

23 years agoosi_linux_unmask() needs to explicitly flush_signals() before calling openafs-stable-1_2_4
Derek Atkins [Wed, 15 May 2002 21:07:29 +0000 (21:07 +0000)]
osi_linux_unmask() needs to explicitly flush_signals() before calling
recalc_sigpending(), otherwise recent kernels don't appear to deliver
new instances of any signals already received.

Revert back to using SIGKILL at shutdown time, but use SIGKILL instead of
explicitly using signal 9, because abstraction is your friend.

(cherry picked from commit 8251fc6871a65326150be69b929917b37d83e215)

23 years agoSeems to fix a hang at shutdown time seen on Redhat 7.3 kernels; doesn't
Derek Atkins [Wed, 15 May 2002 00:09:58 +0000 (00:09 +0000)]
Seems to fix a hang at shutdown time seen on Redhat 7.3 kernels; doesn't
appear to affect older kernels.

(cherry picked from commit 097df1049a6316f087e1c79b30a332358fa761c9)

23 years agoAllows us to build modules for the bigmem kernels redhat started
Derek Atkins [Tue, 14 May 2002 23:53:49 +0000 (23:53 +0000)]
Allows us to build modules for the bigmem kernels redhat started
shipping.

(cherry picked from commit fe6b4fd293f789c4d9f8f62401e31a78b466b09b)

23 years agoUpdate NEWS file for user visible changes in 1.2.4.
Garry Zacheiss [Mon, 13 May 2002 02:17:33 +0000 (02:17 +0000)]
Update NEWS file for user visible changes in 1.2.4.

(cherry picked from commit 50473f885f07857d03b963bf43c5b24771b4913b)

23 years agoAdd 1.2.4 release notes.
Garry Zacheiss [Mon, 13 May 2002 02:15:38 +0000 (02:15 +0000)]
Add 1.2.4 release notes.

23 years agobegin release cycle.
Garry Zacheiss [Fri, 10 May 2002 20:02:54 +0000 (20:02 +0000)]
begin release cycle.

23 years agoAvoid kernel panic when dynroot and memcache are used simultaneously.
Nickolai Zeldovich [Thu, 9 May 2002 23:07:12 +0000 (23:07 +0000)]
Avoid kernel panic when dynroot and memcache are used simultaneously.

(cherry picked from commit 81a3f0068f3488b7fb20fb9d6b7441f64f5b61e0)

23 years agoSTABLE12-dir-buffer-newslot-cant-return-zero-20020508
Derrick Brashear [Wed, 8 May 2002 19:59:53 +0000 (19:59 +0000)]
STABLE12-dir-buffer-newslot-cant-return-zero-20020508

since newslot will call Die() instead of returning 0 (causing assert(0))
this code can never be called. remove it.

23 years agoSTABLE12-need-prototype-for-osi-dnlc-lookup-20020503
Chas Williams [Mon, 6 May 2002 17:21:42 +0000 (17:21 +0000)]
STABLE12-need-prototype-for-osi-dnlc-lookup-20020503

Include afs_osidnlc.h for osi_dnlc_lookup() prototype.  Apparently
fixes a panic on ia64.

23 years agoSTABLE12-linux-include-osidnlc-header-for-ia64-20020506
Chas Williams [Mon, 6 May 2002 17:19:46 +0000 (17:19 +0000)]
STABLE12-linux-include-osidnlc-header-for-ia64-20020506

this is in the head and not here; ia64 needs the prototype

23 years agoInclude afs_osidnlc.h for osi_dnlc_lookup() prototype. Apparently
Chas Williams [Fri, 3 May 2002 20:06:36 +0000 (20:06 +0000)]
Include afs_osidnlc.h for osi_dnlc_lookup() prototype.  Apparently
fixes a panic on ia64.

23 years agokeep small globals from being gprel
Chas Williams [Thu, 2 May 2002 16:59:39 +0000 (16:59 +0000)]
keep small globals from being gprel

(cherry picked from commit 1e90eb264895b5bbe974c7c8c32dbf89e48d6081)

23 years agorewrite syscall stubs not in machine code
Chas Williams [Thu, 2 May 2002 16:38:45 +0000 (16:38 +0000)]
rewrite syscall stubs not in machine code

(cherry picked from commit 25de65bc0bba9bc2df382dc34c1c5b0c1460aca5)

23 years agoavoid ESTALE in 2.4.19-pre7
Kevin Coffman [Thu, 2 May 2002 16:36:01 +0000 (16:36 +0000)]
avoid ESTALE in 2.4.19-pre7

(cherry picked from commit 7147cc946bead75eee909ea1134bc542c0b09c4f)

23 years agoDon't spawn a separate kernel thread for rx kernel listener under
Nickolai Zeldovich [Mon, 29 Apr 2002 20:17:00 +0000 (20:17 +0000)]
Don't spawn a separate kernel thread for rx kernel listener under
Solaris, but instead just use the afsd fork for the listener. Use
of newproc() is deprecated, according to Frank.Batschulat@Sun.COM.

(cherry picked from commit be1458b07817900d15f5c069ea66b72ef50b91e9)

23 years agoIf the inode is not allocated, don't bother updating timestamps.
Nickolai Zeldovich [Mon, 29 Apr 2002 20:13:25 +0000 (20:13 +0000)]
If the inode is not allocated, don't bother updating timestamps.
Pointed out by Frank.Batschulat@Sun.COM.

(cherry picked from commit a31928815796bcbd1acf3005a0f628a21bbb0d8a)

23 years agoSTABLE12-darwin-use-namei-fileserver-20020429
Chaskiel M Grundman [Mon, 29 Apr 2002 16:33:27 +0000 (16:33 +0000)]
STABLE12-darwin-use-namei-fileserver-20020429

build namei fileserver for darwin

(cherry picked from commit c2e075fba4cec152e772ec5514d52e8ec5b29990)

23 years agoSTABLE12-cvsignore-updates-20020429
Chaskiel M Grundman [Mon, 29 Apr 2002 16:27:12 +0000 (16:27 +0000)]
STABLE12-cvsignore-updates-20020429

stuff missed in the stable branch

(cherry picked from commit 291e8352be1ee0c6e3da79328e752b82a7a13190)

23 years agoSTABLE12-darwin-map-more-versions-20020425
Chaskiel M Grundman [Thu, 25 Apr 2002 22:47:26 +0000 (22:47 +0000)]
STABLE12-darwin-map-more-versions-20020425

5.3 and 5.4 are "Same" enough

(cherry picked from commit 1ccedea1a0d978f213a9051e15b5e5efb7ccffe8)

23 years agoSTABLE12-darwin-fix-build-20020401
Derrick Brashear [Thu, 25 Apr 2002 22:22:30 +0000 (22:22 +0000)]
STABLE12-darwin-fix-build-20020401

add missing )

(cherry picked from commit fd318a1fc9551a156cdb43916143d3b959b6720f)

23 years agoSTABLE12-rxkad-stats-initialize-to-placate-darwin-compiler-20020425
Chaskiel M Grundman [Thu, 25 Apr 2002 22:19:52 +0000 (22:19 +0000)]
STABLE12-rxkad-stats-initialize-to-placate-darwin-compiler-20020425

because it deals badly with common symbols

(cherry picked from commit 0c0eb03e9a806dc84b7c3251478de4766a8fd853)

23 years agoeven though right now a vnode and an inode are basically but not exactly
Derrick Brashear [Wed, 24 Apr 2002 02:49:34 +0000 (02:49 +0000)]
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

(cherry picked from commit 39ee79e7c328d86738356aa5a736e24339f8b126)

23 years agoconvert vcache casting in cache manager to macros
Johan Danielsson [Wed, 24 Apr 2002 02:41:16 +0000 (02:41 +0000)]
convert vcache casting in cache manager to macros

should ease further changes later

(cherry picked from commit 3bf8818d956337fcf70a2734f200275f403e8814)

23 years agoprovide sysctl interface for toggling module state. provide hooks for
Kris Van Hees [Tue, 23 Apr 2002 23:22:54 +0000 (23:22 +0000)]
provide sysctl interface for toggling module state. provide hooks for
all currently known tweakable items

(complete earlier incomplete pullup)

23 years agoSTABLE12-linux-ia64-cleanup-casting-20020423
Chas Williams [Tue, 23 Apr 2002 14:46:55 +0000 (14:46 +0000)]
STABLE12-linux-ia64-cleanup-casting-20020423

so we don't need the SYSCALL2POINTER change

(cherry picked from commit 8268bf34acd715d28137a3d601252fd235d1a9fb)

23 years agoupdate setgroups32 for 2.4 and make sparc64 linux2.4 work again
Chaskiel M Grundman [Tue, 23 Apr 2002 04:32:31 +0000 (04:32 +0000)]
update setgroups32 for 2.4 and make sparc64 linux2.4 work again

(cherry picked from commit 5d57da192ea989d9ab4e83cb5f721a7975def9fb)

23 years agoSTABLE12-linux-ia64-updates-20020422
Chas Williams [Tue, 23 Apr 2002 04:22:29 +0000 (04:22 +0000)]
STABLE12-linux-ia64-updates-20020422

updates to make it work with later 2.4

SYSCALL2POINTER change may be unnecessary (sparc64 way should work)
but without any way to test...

(cherry picked from commit e12859bed90a0bd896150b7cfc137d0ef52e48c3)

23 years agoSTABLE12-darwin-vnops-make-unlink-fix-fake-references-20020422
Chaskiel M Grundman [Mon, 22 Apr 2002 17:06:36 +0000 (17:06 +0000)]
STABLE12-darwin-vnops-make-unlink-fix-fake-references-20020422

so unlink doesn't panic us

(cherry picked from commit 6d43ab450a907bb1eccf9561c37c108202cd8e52)

23 years agoSTABLE12-libadmin-pts-allow-listing-all-users-and-groups-20020422
Jeremy Stribling [Mon, 22 Apr 2002 16:43:27 +0000 (16:43 +0000)]
STABLE12-libadmin-pts-allow-listing-all-users-and-groups-20020422

so the java api can take advantage of this

(cherry picked from commit df363edad10f0cbc7f1f34fd0f79a155525415e7)

23 years agoit compiles. it's not pretty, but it does compile
Derrick Brashear [Mon, 22 Apr 2002 04:25:51 +0000 (04:25 +0000)]
it compiles. it's not pretty, but it does compile

(cherry picked from commit 607c17c8a97bd10367c98397089554d316c52492)

23 years agoDon't make tvc a register, since we want to dereference it later on.
Nickolai Zeldovich [Sun, 21 Apr 2002 22:16:44 +0000 (22:16 +0000)]
Don't make tvc a register, since we want to dereference it later on.
Pointed out by nneul@umr.edu.

(cherry picked from commit 999c7fb70dca5153c58e4f0c9bc6c1d86003865b)

23 years agoThis adds /useexisting to use current AFS creds, bypassing the initial
David Bailey [Sun, 21 Apr 2002 22:11:11 +0000 (22:11 +0000)]
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.

(cherry picked from commit b0e4e7bcbfb911563f68cd91c21d905738123d72)

23 years agolookup is sufficient for this, fix the client not to bogusly
Derrick Brashear [Sun, 21 Apr 2002 22:08:47 +0000 (22:08 +0000)]
lookup is sufficient for this, fix the client not to bogusly
enforce extra restrictions

(cherry picked from commit 8011b683bc72968afcf69d6c7220716281bcba55)

23 years agoavoid leaking catalog reference on failure
Nathan Neulinger [Sun, 21 Apr 2002 22:05:46 +0000 (22:05 +0000)]
avoid leaking catalog reference on failure

(cherry picked from commit 1ad668aee2c995e44974f89728b1d5e13470aec1)

23 years agoautoconf 2.5x turds to ignore
Nathan Neulinger [Sun, 21 Apr 2002 22:04:16 +0000 (22:04 +0000)]
autoconf 2.5x turds to ignore

(cherry picked from commit 13f864f21e28893cf482dcc51b498698f9ecc006)

23 years agoVerify that name lengths are at most AFSNAMEMAX and symlink
Nickolai Zeldovich [Sun, 21 Apr 2002 22:01:36 +0000 (22:01 +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.

(cherry picked from commit 41f047edf69ad7c6c83cfa94f410f0daa9bb91fd)

23 years agoInitialize tvc in afs_remove so that we don't call afs_PutVCache
Nickolai Zeldovich [Sun, 21 Apr 2002 21:58:18 +0000 (21:58 +0000)]
Initialize tvc in afs_remove so that we don't call afs_PutVCache
on stack garbage in case of some failure.

(cherry picked from commit 0329c5fbb42d14da20acb97ebda48b9974220b0e)

23 years agoClean up some more ViceLog calls to consistently refer to hosts in a
Nickolai Zeldovich [Sun, 21 Apr 2002 21:54:59 +0000 (21:54 +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.

(cherry picked from commit c4ac62f829f5642b72df9e01438fc4545cda98f9)

23 years agoprototyping caught this; the usage is inconsistent with other cases and
Derrick Brashear [Sun, 21 Apr 2002 21:53:28 +0000 (21:53 +0000)]
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

(cherry picked from commit ef1ee322deb3a2e21c9d78a1b44375b8f7768de0)

23 years agothis means to be calling afs_GetUser with a cell index, not with the cell
Nathan Neulinger [Sun, 21 Apr 2002 21:50:26 +0000 (21:50 +0000)]
this means to be calling afs_GetUser with a cell index, not with the cell
structure itself

(cherry picked from commit 4f1ca9bb2ebcad7e4e1c7ebea42eb361d506dcc8)

23 years agotru64 needs vrele when an error happens, rather than just returning. make
Mattias Amnefelt [Sun, 21 Apr 2002 21:45:56 +0000 (21:45 +0000)]
tru64 needs vrele when an error happens, rather than just returning. make
sure we do so

(cherry picked from commit 7ffbc40b212a38de92da562d285e715150e9d771)

23 years agofile server now works usefully on netbsd
Love Hörnquist-Åstrand [Sun, 21 Apr 2002 21:27:47 +0000 (21:27 +0000)]
file server now works usefully on netbsd

(cherry picked from commit efa250bd1c4bf2c8d6ac74d9f866a842a020d7cf)

23 years agoCall afs_PutCell after afs_GetCellByIndex, even though right
Nickolai Zeldovich [Sun, 21 Apr 2002 21:23:56 +0000 (21:23 +0000)]
Call afs_PutCell after afs_GetCellByIndex, even though right
now it doesn't do anything.

(cherry picked from commit 246f955432b4d00d8f1ffbe62aa9c2a048833c2f)

23 years agosuggested by lha@stacken.kth.se
Derrick Brashear [Sun, 21 Apr 2002 21:12:22 +0000 (21:12 +0000)]
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.

(cherry picked from commit fc09b92dce32025c8e1ac762b3f8f07bc731869a)

23 years agoZero out the "allocated" flag so that we don't accidentally
Nathan Neulinger [Sun, 21 Apr 2002 20:54:17 +0000 (20:54 +0000)]
Zero out the "allocated" flag so that we don't accidentally
free something that wasn't allocated.

(cherry picked from commit c360bb35ce506ad9ab425fea43b96a708e0ed1d9)

23 years agouse pragmas to hit compiler into packing smb_tran2QFSInfo usefully
Yee Jiun [Sun, 21 Apr 2002 20:51:54 +0000 (20:51 +0000)]
use pragmas to hit compiler into packing smb_tran2QFSInfo usefully

(cherry picked from commit 908e05adbedd1130279d82cfe4ee8e9c11c9a4cc)

23 years agoFix typo: OMIT_FRAME_POINTER not FOMIT_FRAME_POINTER
Nathan Neulinger [Sun, 21 Apr 2002 20:48:34 +0000 (20:48 +0000)]
Fix typo: OMIT_FRAME_POINTER not FOMIT_FRAME_POINTER

(cherry picked from commit 1fe41530c1c1a6b75a7716ed849ff37be4294317)

23 years agocurrently for linux only, but allow it for others in the future
Derek Atkins [Sun, 21 Apr 2002 20:46:35 +0000 (20:46 +0000)]
currently for linux only, but allow it for others in the future

(cherry picked from commit edd10398afe756afb8b7d8abbb73324e3a1b2cfd)

23 years agoThe problem is that on 2.4 the 'code' variable is over-written during
Derek Atkins [Sun, 21 Apr 2002 06:13:01 +0000 (06:13 +0000)]
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.

(cherry picked from commit f3bcfda51f5aa1185c3fab6b1c56d5c5165426f1)

23 years agonamei should now work on tru64 (tested on 5.0a)
Mattias Amnefelt [Sun, 21 Apr 2002 06:04:50 +0000 (06:04 +0000)]
namei should now work on tru64 (tested on 5.0a)

(cherry picked from commit 459815329bc52d5d264ed5f1ffbfae490d88a552)

23 years agoUse AFS_RXDEADTIME instead of hardcoding a value of 50
Nickolai Zeldovich [Sun, 21 Apr 2002 05:38:25 +0000 (05:38 +0000)]
Use AFS_RXDEADTIME instead of hardcoding a value of 50

(cherry picked from commit cfba7e00684a1f45f82285bcbadbc4571ab294d2)

23 years agoregression test for rxkad
Love Hörnquist-Åstrand [Sun, 21 Apr 2002 05:31:07 +0000 (05:31 +0000)]
regression test for rxkad

(cherry picked from commit f749ef6e024cf17911a52ade9be9b409fa25d29c)

23 years agouse rx library interface instead of tweaking in each program
Mattias Amnefelt [Sun, 21 Apr 2002 05:14:50 +0000 (05:14 +0000)]
use rx library interface instead of tweaking in each program

(cherry picked from commit 7138b2734cebbf93af4dd69c04cba242c20241b5)

23 years agoubik_tid and ubik_version now come from ubik-int.h
Nickolai Zeldovich [Sun, 21 Apr 2002 05:09:22 +0000 (05:09 +0000)]
ubik_tid and ubik_version now come from ubik-int.h

(cherry picked from commit 592d0fb0cd7a68ee5976fe3655e24b6ffb001e91)

23 years agoFix some of the fallout from having rxgen-fabricated prototypes.
Nickolai Zeldovich [Sun, 21 Apr 2002 05:01:48 +0000 (05:01 +0000)]
Fix some of the fallout from having rxgen-fabricated prototypes.

(cherry picked from commit ebb45c54d9a53906c2dc1245199cb95a0260252b)

23 years agoMake sure we have enough memory to allocate the return list.
Nickolai Zeldovich [Sun, 21 Apr 2002 04:56:31 +0000 (04:56 +0000)]
Make sure we have enough memory to allocate the return list.

(cherry picked from commit ec04dd0090b69f3cd39c93498da6175b2eb1a842)

23 years agoFix build when INSTRUMENT_LOCKS isn't defined
Nickolai Zeldovich [Sun, 21 Apr 2002 04:55:01 +0000 (04:55 +0000)]
Fix build when INSTRUMENT_LOCKS isn't defined

(cherry picked from commit 0dfa0954ffdf25f93e44394fce9d0f1c0872576e)

23 years agoFix minor build errors, and rename the dumpId argument of butc's
Nickolai Zeldovich [Sun, 21 Apr 2002 04:52:09 +0000 (04:52 +0000)]
Fix minor build errors, and rename the dumpId argument of butc's
DeleteDump to avoid collision with budb's #define dumpId.

(cherry picked from commit 1e6bc5de521a319a8a247738f41065a1e11fec2b)

23 years agominor tweaks found making solaris work
Derrick Brashear [Sat, 20 Apr 2002 19:53:56 +0000 (19:53 +0000)]
minor tweaks found making solaris work

(cherry picked from commit acf19ae7e92aaf4f283a6bf1fca3b4e4f24f4042)

23 years agoset $SHELL to override whatever your shell sets
Derrick Brashear [Sat, 20 Apr 2002 19:49:00 +0000 (19:49 +0000)]
set $SHELL to override whatever your shell sets

(cherry picked from commit 4f8f508e04ab8f4267b6950e36745c1f3f10ada9)

23 years agowas a case where we could end up testing "localcell" by accident
Derrick Brashear [Sat, 20 Apr 2002 19:45:47 +0000 (19:45 +0000)]
was a case where we could end up testing "localcell" by accident

(cherry picked from commit 87843056e53f7ff72d20bae0837f9be31a7a33b7)

23 years agosince configure creates the script, just chmod it
Derrick Brashear [Sat, 20 Apr 2002 19:43:41 +0000 (19:43 +0000)]
since configure creates the script, just chmod it

(cherry picked from commit aeeecc446b01258a443cb5705484ba90217407df)

23 years agomake it all build on solaris. provide necessary files to set up a kaserver
Derrick Brashear [Sat, 20 Apr 2002 19:38:50 +0000 (19:38 +0000)]
make it all build on solaris. provide necessary files to set up a kaserver
and authenticate against it (albeit with "known" keys)

23 years agocksum can be either number
Derrick Brashear [Fri, 19 Apr 2002 06:57:28 +0000 (06:57 +0000)]
cksum can be either number

(cherry picked from commit d92d4ac69f55e89b9b32b8927d722e1b040bc783)

23 years ago(cherry picked from commit 3a6b630ce11cf0253543fa5ba56bd1eca5b9a4f6)
Jaroslaw Polok [Fri, 19 Apr 2002 06:37:28 +0000 (06:37 +0000)]
(cherry picked from commit 3a6b630ce11cf0253543fa5ba56bd1eca5b9a4f6)

23 years agoUse autoconf to check for p_corefile in struct proc, rather than
Nickolai Zeldovich [Fri, 19 Apr 2002 05:47:30 +0000 (05:47 +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.

(cherry picked from commit d0ffec1b282518ab6d1395bfaad66f0ea8fe9feb)

23 years agosomehow i suspect one of our platforms doesn't do volatile and i'll
Derrick Brashear [Fri, 19 Apr 2002 05:42:11 +0000 (05:42 +0000)]
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

(cherry picked from commit d7dca002beb55eefe49227db9e8e2ee4c4bb6170)

23 years agobad trace statement due to missing parameter; added
Ted Anderson [Fri, 19 Apr 2002 05:39:22 +0000 (05:39 +0000)]
bad trace statement due to missing parameter; added

(cherry picked from commit aef9d3502309f441640419f70f2dd8949395b32f)

23 years agothis was omitted from the original release and now can be included
Laura Stentz [Fri, 19 Apr 2002 05:34:19 +0000 (05:34 +0000)]
this was omitted from the original release and now can be included

(cherry picked from commit 808946cad88f45d2862345cae935eecd7b551345)

23 years agobased on feedback from ota@transarc.com
Nathan Neulinger [Fri, 19 Apr 2002 05:15:03 +0000 (05:15 +0000)]
based on feedback from ota@transarc.com

PrintInode returns a string, use it

(cherry picked from commit 9a6dbb4df705e063a6ab093b29e7619321aeb565)

23 years agoProperly AFS_GUNLOCK() when returning an error after having previously
Nickolai Zeldovich [Fri, 19 Apr 2002 05:10:38 +0000 (05:10 +0000)]
Properly AFS_GUNLOCK() when returning an error after having previously
AFS_GLOCK()'ed, in afs_mount() and afs_unmount().

(cherry picked from commit ebcef806960b3507d4de6edfd59a89c37b6ca2fd)

23 years agoAllow AFS to shutdown on Solaris (and subsequently be reloaded
Nickolai Zeldovich [Fri, 19 Apr 2002 04:55:54 +0000 (04:55 +0000)]
Allow AFS to shutdown on Solaris (and subsequently be reloaded
and restarted).  Still leaks memory, unlike the Linux module.

(cherry picked from commit c446c128e9be75fa8617a11403d867a8885ee80b)