openafs.git
18 years agoSTABLE14-openafs-1_4_1-rc9-20060302 openafs-stable-1_4_1-rc9
Derrick Brashear [Thu, 2 Mar 2006 06:46:33 +0000]
STABLE14-openafs-1_4_1-rc9-20060302

1.4.1-rc9

18 years agoSTABLE14-callback-get-refs-20060302
Chaskiel M Grundman [Thu, 2 Mar 2006 06:44:05 +0000]
STABLE14-callback-get-refs-20060302

more updates, focused on issues found working at darwin, but actually generic issues

(cherry picked from commit c9a4d3363bc11722e017cac4ee83cbeb5d9583f7)

18 years agoSTABLE14-refridgerator-update-20060227
Chaskiel M Grundman [Thu, 2 Mar 2006 06:41:23 +0000]
STABLE14-refridgerator-update-20060227

try to make refrigerator work again

(cherry picked from commit d1156ad4f9b1e0fb07275fff976890fd3bc90e05)

18 years agoSTABLE14-darwin-access-exec-only-20060302
Chaskiel M Grundman [Thu, 2 Mar 2006 06:36:33 +0000]
STABLE14-darwin-access-exec-only-20060302

FIXES 27553

don't misenforce mode bits

(cherry picked from commit c472a9c9165b3b742afd97b65c987b325c478b00)

18 years agoSTABLE14-darwin-remove-fix-20060302
Chaskiel M Grundman [Thu, 2 Mar 2006 06:34:19 +0000]
STABLE14-darwin-remove-fix-20060302

move the if inside the condition so we aren't screwed up on tiger

(cherry picked from commit 8bfa2cdc6e79bf683ea035526e261940d1257daa)

18 years agoSTABLE14-remunlink-needs-iocount-20060302
Chaskiel M Grundman [Thu, 2 Mar 2006 06:30:33 +0000]
STABLE14-remunlink-needs-iocount-20060302

FIXES 27493

keep needed iocount for remunlink on darwin 8.0

(cherry picked from commit 10f8d509df3a69e6dc684cfd81b5809adc5c9b09)

18 years agoSTABLE14-viced-fix-comment-20060301
Jeffrey Altman [Thu, 2 Mar 2006 06:24:41 +0000]
STABLE14-viced-fix-comment-20060301

fix comment in h_GetHost_r

(cherry picked from commit c2ef97ea657f27af5fdc7811a8b6bb21ed535707)

18 years agoSTABLE14-viced-preamble-postamble-20060301
Jeffrey Hutzelman [Thu, 2 Mar 2006 06:17:18 +0000]
STABLE14-viced-preamble-postamble-20060301

If the host obtained during the CallPremable and CallPostamble differ,
then there is the possibility of a hold leak.  This patch is a quick
attempt to deal with the potential problem.  If the problem occurs
we log it in order to know for sure if this is in fact a problem.

If it is, then at a later date we should perform a more extensive
re-write in which the CallPreamble is used to obtain the host and the
client and pass them both back to the caller which would not be
required to obtain them again at a later date.

(cherry picked from commit 84a24d096c1159aef3aeec4b27d154f47acdcab9)

18 years agoSTABLE14-viced-h_Enumerate_r-fix-20060301
Jeffrey Altman [Wed, 1 Mar 2006 19:12:37 +0000]
STABLE14-viced-h_Enumerate_r-fix-20060301

In h_Enumerate_r it is possible that the host may be released by the
called procedure.  Therefore, we must preserve the pointer to host->next
before the call and hold the host it points to in order to ensure that
it does not disappear out from under us.  This ensures that although
the H_LOCK can be dropped during the procedure and the host list can
be rearranged we won't miss more than a handful of hosts during the
enumeration.

(cherry picked from commit 36a8e29045adfcf5d3c144b0ff0bc9d1398d11b0)

18 years agoSTABLE14-viced-h_gethost_r-host-hold-leak-20060228
Jeffrey Altman [Wed, 1 Mar 2006 06:43:14 +0000]
STABLE14-viced-h_gethost_r-host-hold-leak-20060228

when h_GetHost_r replaces 'host' with 'oldHost' we need to release the
hold on 'host' and maintain the hold on 'oldHost' because if a hold
was placed on 'host' in CallPreamble() it will no longer be released
in CallPostamble() since 'oldHost' will now be bound to the client

(cherry picked from commit 31fd9994db1c58d5e851e5a0bd9d04a031557c8d)

18 years agoSTABLE14-windows-version-20060228
Jeffrey Altman [Wed, 1 Mar 2006 05:59:14 +0000]
STABLE14-windows-version-20060228

1.4.0099 == 1.4.1-rc9

18 years agoSTABLE14-pretty-html-synopsis-20060228
Russ Allbery [Wed, 1 Mar 2006 05:11:17 +0000]
STABLE14-pretty-html-synopsis-20060228

Implement proper synopsis wrapping for HTML generation.

This was done in three pieces.  First, add HTML-specific tags to the POD to
mark the synopsis for HTML purposes so that we can apply style information
to it.  Second, update the style sheet to indent all lines except for the
first in the synopsis section.  Third, add the appropriate S<> tags around
option and argument pairs so that we don't wrap between the option and its
argument.

Unfortunately, due to the <I<foo>> style that looks nicer for other reasons,
we have to use the very verbose S<<< >>>.  Oh well.

(cherry picked from commit fc5acc01517260c661097cf84bddc359ca060bd3)

18 years agoSTABLE14-viced-client-refcount-leak-20060228
Jeffrey Altman [Wed, 1 Mar 2006 05:04:32 +0000]
STABLE14-viced-client-refcount-leak-20060228

SRXAFS_CallBackRxConnAddr calls h_FindClient_r which returns a
client with a refCount and the client->host held.  The call
to CallPostamble will release the host hold but not the client
refcount.

(cherry picked from commit 6f707d94064646762e7014d19840b5b2902b3a4e)

18 years agoSTABLE14-viced-host-hold-leak-20060228
Jeffrey Altman [Wed, 1 Mar 2006 04:09:41 +0000]
STABLE14-viced-host-hold-leak-20060228

fix a host hold leak although this one rarely occurs.

(cherry picked from commit 2bd46f8a3915a37720e68d10a56a0ec33f508f67)

18 years agoSTABLE14-html-style-todo-20060228
Russ Allbery [Wed, 1 Mar 2006 00:16:46 +0000]
STABLE14-html-style-todo-20060228

Some style sheet updates and lots of to-do updates based on feedback from
C. Alex North-Keys.

(cherry picked from commit fed1cdb02241f6cffee9cdcb5d334f227fd011bb)

18 years agoSTABLE14-html-link-fixes-20060228
Russ Allbery [Tue, 28 Feb 2006 23:48:45 +0000]
STABLE14-html-link-fixes-20060228

Make the mentions of subcommands in the fs command introduction links to
the relevant pages, and add to README a to-do note to do this for the rest
of the introductory pages.

Fix links to man pages that contain underscores by working around a bug
in Pod::Simple.

(cherry picked from commit 6321cca1a5bdda2c9e8d9688d220eff0edd850f9)

18 years agoSTABLE14-viced-panic-if-maxhosttables-exceeded-20060228
Jeffrey Altman [Tue, 28 Feb 2006 23:27:54 +0000]
STABLE14-viced-panic-if-maxhosttables-exceeded-20060228

Do not allow HTBlocks to allocate more blocks than will fit in
hosttablesptrs.  Doing so corrupts memory.   Panic instead until
we can get this fixed right.

(cherry picked from commit 2c825a859033574b714c00d0e16ce06f126e1d6d)

18 years agoSTABLE14-up-m-docs-20060228
Todd M. Lewis [Tue, 28 Feb 2006 23:12:30 +0000]
STABLE14-up-m-docs-20060228

Document the -m flag to up.

(cherry picked from commit 1705109815189f2c03323bc154feb639c76180ad)

18 years agoSTABLE14-amd64-linux26-fix-20060228
Russ Allbery [Tue, 28 Feb 2006 21:22:50 +0000]
STABLE14-amd64-linux26-fix-20060228

Restore the previous code for AMD64 under Linux 2.6, as the generic
Linux 2.6 code apparently does not work with all AMD64 kernels.

(cherry picked from commit 79a7ddac4da960e3337b7792f8a44fc82514f81d)

18 years agoSTABLE14-systm-h-header-inclusion-20060227
Chas Williams [Tue, 28 Feb 2006 00:19:20 +0000]
STABLE14-systm-h-header-inclusion-20060227

FIXES 24765

avoid implicit references by including the prototypes from the header except on linux

====================
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.
====================
FIXES 24765

avoid implicit references by including the prototypes from the header except on
linux

(cherry picked from commit c41253bda7340f19b5f16d009393bf32f30ad24c)

18 years agoSTABLE14-pod-updates-20060227
Chas Williams [Mon, 27 Feb 2006 20:47:42 +0000]
STABLE14-pod-updates-20060227

FIXES 26463

update pod files to deal with some section number changes

(cherry picked from commit 9243beff2b7677dbfc5259a534625b2252f0fc54)

18 years agoSTABLE14-tiger-updates-20060220
Chaskiel M Grundman [Mon, 27 Feb 2006 20:37:47 +0000]
STABLE14-tiger-updates-20060220

update lpioctl, setattr and free tuios

(cherry picked from commit ff1d11169bc19aeb451a97e8ccdc14e1109031e7)

18 years agoSTABLE14-darwin-bsd-flock-20060227
Chaskiel M Grundman [Mon, 27 Feb 2006 20:35:11 +0000]
STABLE14-darwin-bsd-flock-20060227

FIXES 25544

deal with posix flag in flock request on darwin

(cherry picked from commit 888b038c92c222f0ebb4b61f9f96bd56ce75dfed)

18 years agoSTABLE14-shut-up-fucking-whiner-20060227
Derrick Brashear [Mon, 27 Feb 2006 20:18:33 +0000]
STABLE14-shut-up-fucking-whiner-20060227

without further comment

(cherry picked from commit df0ebd8b903eb5f62fb7e34c198020068d144669)

18 years agoSTABLE14-rmtsys-up-limits-20060225
Jeffrey Hutzelman [Sat, 25 Feb 2006 06:45:29 +0000]
STABLE14-rmtsys-up-limits-20060225

FIXES 27095

raise limits of constants in rmtsys

(cherry picked from commit f800113c3b2cb921a818d8823950c2ffeb18815b)

18 years agoSTABLE14-vnop-remove-revised-lock-order-20060225
Hartmut Reuter [Sat, 25 Feb 2006 06:40:36 +0000]
STABLE14-vnop-remove-revised-lock-order-20060225

FIXES 27176

drop the tdc lock even rearlier

(cherry picked from commit 2024fe94cb331fe4eeeff3626617ab8090ce70ea)

18 years agoSTABLE14-softsig-thread-hack-not-on-nbsd30-20060223
Derrick Brashear [Thu, 23 Feb 2006 12:33:39 +0000]
STABLE14-softsig-thread-hack-not-on-nbsd30-20060223

based on comment from gendalia@iastate.edu

(cherry picked from commit d3113a14e81c02993749b8f3bf0421809793f46d)

18 years agoSTABLE14-windows-brl-fix-20060222
Jeffrey Altman [Wed, 22 Feb 2006 14:29:22 +0000]
STABLE14-windows-brl-fix-20060222

make sure that we obtain a LockWrite if AGRESSIVE_LOCKS is defined

18 years agoSTABLE14-rxkad-krb5-improvements-20060222
Jeffrey Altman [Wed, 22 Feb 2006 05:08:58 +0000]
STABLE14-rxkad-krb5-improvements-20060222

correct precedence of && and || in conditional to determine when
tkt_DecodeTicket5() should be called.

optimize order of ticket property evaluation to delay call to get_key()
which will require that a lock be obtained until after we know that
all of the other checks will succeed.

(cherry picked from commit a2530f03bacc9d9115782b49bda40fc01294a70d)

18 years agoSTABLE14-viced-log-get-key-failure-20060221
Jeffrey Altman [Wed, 22 Feb 2006 05:02:04 +0000]
STABLE14-viced-log-get-key-failure-20060221

log afsconf_GetKey() failure

(cherry picked from commit 9306554f9cc4198414e99eaec332703653b8d348)

18 years agoSTABLE14-server-rxmaxmtu-option-20060221
Jeffrey Altman [Wed, 22 Feb 2006 04:09:29 +0000]
STABLE14-server-rxmaxmtu-option-20060221

add -rxmaxmtu <bytes> to allow setting the max send and receive RX MTU size

(cherry picked from commit 0ef21914dad5ddda3aba8ec3f3f894261edc5c08)

18 years agoSTABLE14-cache-autotune-20060220
Derrick Brashear [Mon, 20 Feb 2006 21:49:41 +0000]
STABLE14-cache-autotune-20060220

put in defaults so an old afsd will still start ok.

(cherry picked from commit 10947ccc74b0bef53e152c7275760ab8873a176e)

18 years agoSTABLE14-viced-client-cps-race-fix-20060220
Jeffrey Altman [Mon, 20 Feb 2006 15:27:06 +0000]
STABLE14-viced-client-cps-race-fix-20060220

remove a race condition between h_TossStuff_r and SRXAFS_FlushCPS by
changing h_ID2Client to return the client with a refcount and then
release the refCount with PutClient.

when the CPS list is non-NULL and the viceid is ANONYMOUSID be sure
to set the prlist_val to NULL if the prlist_len is being set to 0
since all of the tests are performed on prlist_val

(cherry picked from commit 4808977d7d0e49e5d260a26113fd97cb48d5f844)

18 years agoSTABLE14-flushrec-prototype-20060217 openafs-stable-1_4_1-rc8
Derrick Brashear [Sat, 18 Feb 2006 04:59:31 +0000]
STABLE14-flushrec-prototype-20060217

add a prototype to shut up gcc4

(cherry picked from commit 9e3fdd9c3c2576ec9c5f465b2be936096ca20cd7)

18 years agoSTABLE14-vnode-ref-verification-20060217
Chaskiel M Grundman [Sat, 18 Feb 2006 04:54:50 +0000]
STABLE14-vnode-ref-verification-20060217

verify we got a ref when we call vnode_ref

(cherry picked from commit 591d9c76c8d935809625cbaab248ca7c2770c751)

18 years agoSTABLE14-openafs-stable-1_4_1-rc8-20060217
Derrick Brashear [Sat, 18 Feb 2006 04:31:56 +0000]
STABLE14-openafs-stable-1_4_1-rc8-20060217

1.4.1-rc8

18 years agoSTABLE14-qremove-set-null-20060217
Chaskiel M Grundman [Fri, 17 Feb 2006 21:58:33 +0000]
STABLE14-qremove-set-null-20060217

when we remove an object from a queue null its list pointers

(cherry picked from commit 55bdee41e635da3396ddd25234b3d5910921c1d5)

18 years agoSTABLE14-flushvolume-vhashq-consistency-20060217
Chaskiel M Grundman [Fri, 17 Feb 2006 21:53:21 +0000]
STABLE14-flushvolume-vhashq-consistency-20060217

avoid having vflushed vnodes in play

(cherry picked from commit c320fae82541d3026c9d2a89ffce60fd17ad5ca5)

18 years agoSTABLE14-windows-do-not-mark-servers-down-without-ping-20060216
Jeffrey Altman [Fri, 17 Feb 2006 21:44:39 +0000]
STABLE14-windows-do-not-mark-servers-down-without-ping-20060216

undo damage caused by an inadvertent pullup of code that caused all
servers to be marked down once every two hours.  They would remain
down for one CheckDownServersInterval after the first contact to the
cell.

18 years agoSTABLE14-hpux11-store-fd-sonner-20060217
Derrick Brashear [Fri, 17 Feb 2006 17:35:33 +0000]
STABLE14-hpux11-store-fd-sonner-20060217

FIXES 23112

based on report from   jbuehler@spirentcom.com

(cherry picked from commit a8f0d4a30f55ac506cad1d82a416b2847ace99e6)

18 years agoSTABLE14-darwin-x86-lwp-fix-20060217
Chaskiel M Grundman [Fri, 17 Feb 2006 17:27:54 +0000]
STABLE14-darwin-x86-lwp-fix-20060217

make lwp work on darwin x86

(cherry picked from commit 167819c0c55a258357ff36cede5e79399d470a23)

18 years agoSTABLE14-windows-notes-20060216
Jeffrey Altman [Fri, 17 Feb 2006 15:31:04 +0000]
STABLE14-windows-notes-20060216

notes for 1.4.1-rc8

(cherry picked from commit 3d1e5e29f7a7a53c2286b81a59d67a2e4463112a)

18 years agoSTABLE14-darwin-lost-wakeups-20060213
Chaskiel M Grundman [Fri, 17 Feb 2006 15:29:47 +0000]
STABLE14-darwin-lost-wakeups-20060213

eliminate the apparent lost wakeup problem in tiger

18 years agoSTABLE14-windows-version-20060216
Jeffrey Altman [Fri, 17 Feb 2006 15:27:44 +0000]
STABLE14-windows-version-20060216

1.4.1-rc8 = 1.4.0098

18 years agoSTABLE14-viced-has-as-member-locking-20060217
Klas Lindfors [Fri, 17 Feb 2006 14:48:58 +0000]
STABLE14-viced-has-as-member-locking-20060217

FIXES 26967

A crucial line was missing from DELTA viced-fix-check-rights-race-20060213

(cherry picked from commit 79cfa471a719b9b270f5d1fa1bbd25c1be8e1fd7)

18 years agoSTABLE14-windows-rx-wsaeconnreset-20060216
Jeffrey Altman [Thu, 16 Feb 2006 21:49:34 +0000]
STABLE14-windows-rx-wsaeconnreset-20060216

Deal with the fact that Windows returns WSAECONNRESET after an ICMP
port not reachable packet was returned in response to a packet previously
sent.

(cherry picked from commit e1f4dd1c26a1fedb637ed754644f8c141fa4c0db)

18 years agoSTABLE14-linux-inode-i-mutex-20060214
Derrick Brashear [Wed, 15 Feb 2006 21:03:38 +0000]
STABLE14-linux-inode-i-mutex-20060214

make i_sem become i_mutex

18 years agoSTABLE14-darwin-event-cleanup-20060215
Chaskiel M Grundman [Wed, 15 Feb 2006 20:55:11 +0000]
STABLE14-darwin-event-cleanup-20060215

clean up event resources added for deadlock avoidance

(cherry picked from commit cee042e2f9f3e22e3cdb0c9535b122eb1714b691)

18 years agoSTABLE14-windows-reg-fix-20060215
Jeffrey Altman [Wed, 15 Feb 2006 16:37:40 +0000]
STABLE14-windows-reg-fix-20060215

cleanup the back connection hostname code

(cherry picked from commit 658338b015fa6cd081726a6c96ab8c756857974a)

18 years agoSTABLE14-darwin80-mkdir-error-leak-fix-20060215
Chaskiel M Grundman [Wed, 15 Feb 2006 07:02:21 +0000]
STABLE14-darwin80-mkdir-error-leak-fix-20060215

avoid a potential refcount decrement "leak" (well, the opposite, really) when a mkdir fails

(cherry picked from commit 33d58440d1fa3938ff627e888537c367d06b1bf9)

18 years agoSTABLE14-openafs-1-4-1-rc7-20060214 openafs-stable-1_4_1-rc7
Derrick Brashear [Wed, 15 Feb 2006 00:52:42 +0000]
STABLE14-openafs-1-4-1-rc7-20060214

1.4.1-rc7

18 years agoSTABLE14-macos-dynroot-start-anyway-20060214
Adam Megacz [Wed, 15 Feb 2006 00:38:36 +0000]
STABLE14-macos-dynroot-start-anyway-20060214

start afsd if -dynroot specified

(cherry picked from commit f3137f9efc47d9b3365fd6076b05ebb5b907c306)

18 years agoSTABLE14-macos-afsdb-20060214
Adam Megacz [Wed, 15 Feb 2006 00:35:00 +0000]
STABLE14-macos-afsdb-20060214

enable afsdb by default

(cherry picked from commit 0ef6661fdcb452fc0ed2deb33560817c4b95674b)

18 years agoSTABLE14-linux-inode-i-mutex-20060214
Derrick Brashear [Wed, 15 Feb 2006 00:32:52 +0000]
STABLE14-linux-inode-i-mutex-20060214

new (2.6.16) kernerls have i_mutex instead of i_sem

18 years agoSTABLE14-lookup-checkcode-bulkstats-20060214
Chaskiel M Grundman [Tue, 14 Feb 2006 20:33:48 +0000]
STABLE14-lookup-checkcode-bulkstats-20060214

do error code analysis on bulkstat results also

(cherry picked from commit 848ed685c18e1fbdf550758c3e1d6c11e00d5239)

18 years agoSTABLE14-windows-notes-20060214
Jeffrey Altman [Tue, 14 Feb 2006 13:26:49 +0000]
STABLE14-windows-notes-20060214

latest notes for 1.4.1-rc7

(cherry picked from commit 328544bd38f65525dad7b38a52c2d1407ea4b84b)

18 years agoSTABLE14-solaris-afs-nfsrdwr-avoid-reading-past-end-of-file-20060213
Derrick Brashear [Mon, 13 Feb 2006 18:39:11 +0000]
STABLE14-solaris-afs-nfsrdwr-avoid-reading-past-end-of-file-20060213

FIXES 25747

avoid a panic when we attempt a read past the end of the file

(cherry picked from commit 63031c0b8b1a00711a043431cb5d1c98834ab0cc)

18 years agoSTABLE14-revert-bkg-disable-var-20060213
Derrick Brashear [Mon, 13 Feb 2006 18:31:13 +0000]
STABLE14-revert-bkg-disable-var-20060213

remove the bkg daemon disabling

(cherry picked from commit 0f9a5e3ad81a8583d486b3ee45aaebda50f6de06)

18 years agoSTABLE14-darwin-lost-wakeups-20060213
Chaskiel M Grundman [Mon, 13 Feb 2006 18:19:49 +0000]
STABLE14-darwin-lost-wakeups-20060213

eliminate the apparent lost wakeup problem in tiger

18 years agoSTABLE14-osi-audit-locking-fix-20060201
Tom Keiser [Mon, 13 Feb 2006 17:57:26 +0000]
STABLE14-osi-audit-locking-fix-20060201

FIXES 25955

fix aix builds

(cherry picked from commit 73f52f37e4c1be81fad5122787382a480c220af5)

18 years agoSTABLE14-audit-locking-20051113
Jeffrey Altman [Mon, 13 Feb 2006 17:56:49 +0000]
STABLE14-audit-locking-20051113

Add locks around writes to the audit log.  This ensures two writes
do not interleave.

(cherry picked from commit 6f82595a16750a3811526da9b4376a178e90bb49)

18 years agoSTABLE14-viced-fix-check-rights-race-20060213
Jeffrey Altman [Mon, 13 Feb 2006 17:10:15 +0000]
STABLE14-viced-fix-check-rights-race-20060213

FIXES 25869

acl_CheckRights() was generating core dumps because the client's prlist
was being invalidated by h_TossStuff_r() as part of freeing the associated
host.  This patch fixes the problem in probably redundant ways.
A missing hold on the host is now obtained.  refCounts on the client
are now preserved as part of GetClient()/PutClient().  Read/Write locks
are now obtained on the client when accessing/manipulating the prlist.

This patch adds the client parameter to GetVolumePackage() and
PutVolumePackage() and adds the new function PutClient().

This patch removes the need for the client X had conn Y stolen by X messages.
This is replaced by "deleted client X already had conn Y stolen by X.  If
we see this there is definitely a logic problem as the client should not
be deleted at this point.  We a no longer allowing the race condition that
would have resulted in the original message.

In addition, this patch fixes a problem with UAEs caused by the
inappropriate translation of VICE error into UAEs when there is overlap
between VICE error values and those in sys/errno.h.

(cherry picked from commit 6c7a2901b00ae2f7df0bdff23b19fdd3b7f35156)

18 years agoSTABLE14-windows-findacl-optimize-20060213
Jeffrey Altman [Mon, 13 Feb 2006 16:33:06 +0000]
STABLE14-windows-findacl-optimize-20060213

don't remove an entry from the queue and add it to the head if it already
is the head.

(cherry picked from commit bfdc909b5477e493656b3e9fb744fdf5cd16e179)

18 years agoSTABLE14-windows-new-server-ping-20060213
Jeffrey Altman [Mon, 13 Feb 2006 16:29:43 +0000]
STABLE14-windows-new-server-ping-20060213

when adding a new server, mark it down to start.
this will allow the Ping to use the short timeout when checking the real
status.

(cherry picked from commit 8a6bfc54e5ff81bea0b78b45986f5115b2978adc)

18 years agoSTABLE14-windows-off-to-the-races-20060211
Jeffrey Altman [Sun, 12 Feb 2006 06:24:27 +0000]
STABLE14-windows-off-to-the-races-20060211

several race conditions were introduced over the last couple of weeks.
let's fix them.

(cherry picked from commit d9d798f78617026349e3c087c714e474e9eb2b7f)

18 years agoSTABLE14-windows-vcp-fidsp-empty-20060210
Jeffrey Altman [Fri, 10 Feb 2006 18:44:17 +0000]
STABLE14-windows-vcp-fidsp-empty-20060210

protect against the case in which the vcp->fidsp list is empty
which de-queuing smb_fid_t objects

(cherry picked from commit 81cfded7dbdf25d774375719ce02ebbfe698d77c)

18 years agoSTABLE14-viced-probe-uuid-on-old-connection-20060210
Jeffrey Altman [Fri, 10 Feb 2006 17:12:25 +0000]
STABLE14-viced-probe-uuid-on-old-connection-20060210

When we have found an existing host via Uuid, send the probe to the
connection associated with the old host instead of the new one.  If
you send it to the new connection, we will fail to detect that the
old host is no longer responding and hence that it should be removed.
This should solve the 55 second delay problem seen from clients with
Uuids that move addresses or sit behind a NAT.

(cherry picked from commit 0c77d5332da76d223b007f8e85e8d81148b17737)

18 years agoSTABLE14-viced-log-typo-20060210
Jeffrey Altman [Fri, 10 Feb 2006 17:11:45 +0000]
STABLE14-viced-log-typo-20060210

missing % in format string causes crash at log level 125

(cherry picked from commit d2de9e69bc08e04c00083166a59847be246a9e8c)

18 years agoSTABLE14-viced-debug-port-numbers-20060210
Derrick Brashear [Fri, 10 Feb 2006 16:50:39 +0000]
STABLE14-viced-debug-port-numbers-20060210

fix port number printing to not print byteswapped port numbers

(cherry picked from commit 3416916228624b6b446b5106f40c4d7e5fbd8cb0)

18 years agoSTABLE14-windows-afslogon-20060209
Jeffrey Altman [Thu, 9 Feb 2006 15:29:41 +0000]
STABLE14-windows-afslogon-20060209

replace sizeof(opt) with sizeof(LogonOption_t)

add more debug statements

(cherry picked from commit 4b3c120e8e571f650e8274da553b1489cc34bd5e)

18 years agoSTABLE14-viced-host-nat-20060207
Jeffrey Altman [Tue, 7 Feb 2006 07:47:31 +0000]
STABLE14-viced-host-nat-20060207

When we discover a new address for an existing host we can take the
opportunity to cleanup the hash table and the interface list if the
new address differs from an existing address only by the port number.
In that case we know the client is communicating to us from behind a
NAT and the old addr/port number combination is no longer going to
be of use to us.

(cherry picked from commit e4c21e9c6fe4a030cf271b614d8e3d78130e4fc9)

18 years agoSTABLE14-viced-more-dbg-improvements-20060207
Jeffrey Altman [Tue, 7 Feb 2006 06:05:08 +0000]
STABLE14-viced-more-dbg-improvements-20060207

convert the rest of the addresses output in hex to dotted notation

(cherry picked from commit 6909509eca2a22b4b7003be60e0dbda75a30949c)

18 years agoSTABLE14-windows-winqual-20060206
Jeffrey Altman [Mon, 6 Feb 2006 07:07:08 +0000]
STABLE14-windows-winqual-20060206

Fix two bugs reported via Windows Crash Reporting:

 * Freelance initialization is somehow broken allowing the number of
   locally defined mountpoints to become negative.  Due to the use of
   != instead of < in loops, it is possible to read/write unallocated
   memory.

 * GetTextualSid() was not properly handling a NULL output buffer
   pointer as an indication that the desired size should be returned.

(cherry picked from commit 77de32ed745d912e35990c5602b4a69a1b654973)

18 years agoSTABLE14-windows-version-20060206
Jeffrey Altman [Mon, 6 Feb 2006 04:12:34 +0000]
STABLE14-windows-version-20060206

1.4.0097 == 1.4.1-rc7

18 years agoSTABLE14-windows-notes-20060206
Jeffrey Altman [Mon, 6 Feb 2006 04:08:25 +0000]
STABLE14-windows-notes-20060206

updates for 1.4.1-rc7

18 years agoSTABLE14-darwin-avoid-bogus-name-caching-20060205
Chaskiel M Grundman [Sun, 5 Feb 2006 18:26:48 +0000]
STABLE14-darwin-avoid-bogus-name-caching-20060205

FIXES 26225

avoid the possibility of creating bogus cached named vnodes

(cherry picked from commit f504df317572835718037fe177073e3202905753)

18 years agoSTABLE14-windows-mountpoints-20060205
Jeffrey Altman [Sun, 5 Feb 2006 17:47:49 +0000]
STABLE14-windows-mountpoints-20060205

 * if the mountpointstring is empty, return No Such Path; do not panic

(cherry picked from commit 3da66f26980d7cfcde54f6ba9c9a0114e23f6f40)

18 years agoSTABLE14-windows-afslogon-20060205
Jeffrey Altman [Sun, 5 Feb 2006 17:47:12 +0000]
STABLE14-windows-afslogon-20060205

 * AFS_Logoff_Event must destroy tokens even if integrated logon is not
   being used unless LogoffPreserveTokens is non-zero

(cherry picked from commit 18e7ef272ab4efbd599c5d10174f0afd87c57c2e)

18 years agoSTABLE14-windows-release-notes-20060204
Jeffrey Altman [Sun, 5 Feb 2006 08:14:16 +0000]
STABLE14-windows-release-notes-20060204

update release notes for 1.4.1

18 years agoSTABLE14-windows-afslogon-20060204
Jeffrey Altman [Sun, 5 Feb 2006 07:46:55 +0000]
STABLE14-windows-afslogon-20060204

 * fix LogoffPreserveTokens to work in the correct direction

 * modify behavior to avoid domain controller queries when integrated
   logon is disabled or the logon account is local

(cherry picked from commit f213588374ab92e27bb524cd747152270f9290ca)

18 years agoSTABLE14-windows-todays-bugs-20060203
Jeffrey Altman [Fri, 3 Feb 2006 23:05:26 +0000]
STABLE14-windows-todays-bugs-20060203

* cell names must be treated as case insensitive

* smb logoff messages do not mean the user is logging off the machine.
  do not use as an indication that tokens should be destroyed

* use the correct lock and avoid a deadlock when handling dead VCs

(cherry picked from commit 22b02189ecc70a94410fb1648da987d0964ddcaf)

18 years agoSTABLE14-viced-log-add-ports-20060202
Jeffrey Altman [Thu, 2 Feb 2006 21:48:39 +0000]
STABLE14-viced-log-add-ports-20060202

* add port numbers to Host addresses so we can distinguish clients behind
  NATs

* make messages consistent with regards to case and punctuation of
  "Host x.x.x.x:y"

* convert hex addresses to dotted notation

(cherry picked from commit 04c3d3cc3900914725c479b993a6313b0ef29e3f)

18 years agoSTABLE14-windows-notes-20060201
Jeffrey Altman [Thu, 2 Feb 2006 04:56:50 +0000]
STABLE14-windows-notes-20060201

notes for 1.4.1-rc6

18 years agoSTABLE14-windows-version-20060201
Jeffrey Altman [Thu, 2 Feb 2006 04:45:31 +0000]
STABLE14-windows-version-20060201

1.4.1-rc6

18 years agoSTABLE14-windows-more-cleanup-20060201
Jeffrey Altman [Wed, 1 Feb 2006 18:29:49 +0000]
STABLE14-windows-more-cleanup-20060201

missed one case where the vcpCounter wrapped fids at 0

(cherry picked from commit 57d3a8b72168bf03400ed42e8a8eab78ea75271c)

18 years agoSTABLE14-windows-more-cleanups-20060201
Jeffrey Altman [Wed, 1 Feb 2006 18:03:18 +0000]
STABLE14-windows-more-cleanups-20060201

* remove all references to 'dead_vcp'; cleanup smb_vc_t's as soon as
  we know they are dead

* add mx holds across the cm_cell_t updates

* add cm_FindSCacheParent() and remove duplicate code elsewhere

* add mx holds across scp->flags updates

* add cm_CleanFile()

* clear CM_SCACHEFLAG_CALLBACK when discarding callbacks

* fix smb fid wrapping.  wrap at 0xFFFF instead of 0 because 0xFFFF
  is -1 which is INVALID_HANDLE

* add missing mx holds around vcp->flags updates

(cherry picked from commit 8b39114d5b36f60904e5a615a16b43b7e65c3017)

18 years agoSTABLE14-bkg-disable-var-20060202 openafs-stable-1_4_1-rc6
Chaskiel M Grundman [Thu, 2 Feb 2006 08:28:42 +0000]
STABLE14-bkg-disable-var-20060202

don't extern this

(cherry picked from commit 40d1b796c1dca9c51811224c5ad80bbd2c62cdb1)

18 years agoSTABLE14-openafs-1-4-1-rc6-20060201
Derrick Brashear [Thu, 2 Feb 2006 04:37:45 +0000]
STABLE14-openafs-1-4-1-rc6-20060201

happy groundhog day?

18 years agoSTABLE14-getsomespace-r-rewrite-20060201
Jeffrey Altman [Wed, 1 Feb 2006 15:59:43 +0000]
STABLE14-getsomespace-r-rewrite-20060201

rewrite of GetSomeSpace_r to get rid of the brokenness we had before.

also make GetCapabilities work like other rpc stubs which don't need callbacks

(cherry picked from commit ecb9da5839e8e2ed0d52d87e426a728700bbd389)

18 years agoSTABLE14-windows-smb_fid_t-mx-20060130
Jeffrey Altman [Tue, 31 Jan 2006 09:09:59 +0000]
STABLE14-windows-smb_fid_t-mx-20060130

Fixup token deletion logic

Surround all references to smb_fid_t flags and other references
by obtaining and releasing the 'mx' lock.

(cherry picked from commit bceabce8498127c550bbe5a9a430c8589f76d162)

18 years agoSTABLE14-man-page-html-20060124
Russ Allbery [Mon, 30 Jan 2006 18:21:48 +0000]
STABLE14-man-page-html-20060124

Initial cut at an HTML conversion of the POD reference pages.  Requires
Pod::Simple be installed (version 3.0 or later, probably).  Also fix a POD
formatting bug in the afs(1) man page noticed while testing HTML output.

(cherry picked from commit 6eb9f473add1426b52861574c841b1fdfd80367b)

18 years agoSTABLE14-sparc64-linux-typo-20060114
Russ Allbery [Mon, 30 Jan 2006 18:20:46 +0000]
STABLE14-sparc64-linux-typo-20060114

XLDFLAGS64, not XLDFLAG64.

(cherry picked from commit ad207ee1134b42bd1a2204f7d91d0f4016a73c55)

18 years agoSTABLE14-sparc64-linux-20060113
Troy Benjegerdes [Mon, 30 Jan 2006 18:19:38 +0000]
STABLE14-sparc64-linux-20060113

Hopefully fix sparc64 Linux support with 2.6 kernels.

(cherry picked from commit 0b24f2d91a444c4bb11b3eaf8082356907b32d44)

18 years agoSTABLE14-simple-darwin-disable-bkg-20060128
Chaskiel M Grundman [Sat, 28 Jan 2006 19:22:30 +0000]
STABLE14-simple-darwin-disable-bkg-20060128

avoid potential hang by disabling bkg daemons on 10.4 for now

(cherry picked from commit 2e76a2450e06c93d7cdbc0fe07bd9302ac085952)

18 years agoSTABLE14-newvcache-dont-spin-20060128
Chaskiel M Grundman [Sat, 28 Jan 2006 18:06:37 +0000]
STABLE14-newvcache-dont-spin-20060128

make things so newvcache won't spin

(cherry picked from commit 29277d96bfade62e437b9206f885af307c74e3ca)

18 years agoSTABLE14-reclaim-defered-flush-fixes-20060128
Chaskiel M Grundman [Sat, 28 Jan 2006 18:04:04 +0000]
STABLE14-reclaim-defered-flush-fixes-20060128

fix side effect of reclaim lookaside

(cherry picked from commit bb576b462d1d26cd07f03965c734ae6d2c5bd132)

18 years agoSTABLE14-windows-64-bit-type-safety-20051105
Jeffrey Altman [Thu, 26 Jan 2006 20:58:47 +0000]
STABLE14-windows-64-bit-type-safety-20051105

this is only a partial pullup
64-bit type safety changes required for successful compilation
on Windows 64-bit systems with the VS 2005 compiler

====================
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.
====================

this is a partial pullup
64-bit type safety changes required for successful compilation
on Windows 64-bit systems with the VS 2005 compiler

18 years agoSTABLE14-linux-vcache-extra-ref-unneeded-20060126
Chas Williams [Thu, 26 Jan 2006 19:30:07 +0000]
STABLE14-linux-vcache-extra-ref-unneeded-20060126

FIXES 25829

the dynamic/system inode version of the linux client already keeps an
extra reference when the inode is on the vcache list. the inode/vnode
should not go away while we are trying to flush the dcache children.

(cherry picked from commit 78835720e0eac5897568f0ce32cd0ec20dc4c569)

18 years agoSTABLE14-macos-avoid-reclaim-hang-20060124
Derrick Brashear [Thu, 26 Jan 2006 16:04:49 +0000]
STABLE14-macos-avoid-reclaim-hang-20060124

FIXES 25686

based on chaskiel's suggestion, implement a lookaside reclaim list

(cherry picked from commit 532147e45588039e6db64ef7deccfc1d5d21d16d)

18 years agoSTABLE14-linux26-build-update-20060126
Chas Williams [Thu, 26 Jan 2006 15:58:35 +0000]
STABLE14-linux26-build-update-20060126

FIXES 25879

KBUILD_BASENAME will need to be set in 2.6.15 and later for configure to work usefully

(cherry picked from commit c7df78fd7f9c4a29f8af32e49217806ef352ea01)