]> git.michaelhowe.org Git - packages/o/openafs.git/log
packages/o/openafs.git
19 years agoSTABLE14-osi-audit-locking-fix-20060201
Tom Keiser [Mon, 13 Feb 2006 17:57:26 +0000 (17:57 +0000)]
STABLE14-osi-audit-locking-fix-20060201

FIXES 25955

fix aix builds

(cherry picked from commit 73f52f37e4c1be81fad5122787382a480c220af5)

19 years agoSTABLE14-audit-locking-20051113
Jeffrey Altman [Mon, 13 Feb 2006 17:56:49 +0000 (17:56 +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)

19 years agoSTABLE14-viced-fix-check-rights-race-20060213
Jeffrey Altman [Mon, 13 Feb 2006 17:10:15 +0000 (17:10 +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)

19 years agoSTABLE14-windows-findacl-optimize-20060213
Jeffrey Altman [Mon, 13 Feb 2006 16:33:06 +0000 (16:33 +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)

19 years agoSTABLE14-windows-new-server-ping-20060213
Jeffrey Altman [Mon, 13 Feb 2006 16:29:43 +0000 (16:29 +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)

19 years agoSTABLE14-windows-off-to-the-races-20060211
Jeffrey Altman [Sun, 12 Feb 2006 06:24:27 +0000 (06:24 +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)

19 years agoSTABLE14-windows-vcp-fidsp-empty-20060210
Jeffrey Altman [Fri, 10 Feb 2006 18:44:17 +0000 (18:44 +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)

19 years agoSTABLE14-viced-probe-uuid-on-old-connection-20060210
Jeffrey Altman [Fri, 10 Feb 2006 17:12:25 +0000 (17:12 +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)

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

missing % in format string causes crash at log level 125

(cherry picked from commit d2de9e69bc08e04c00083166a59847be246a9e8c)

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

fix port number printing to not print byteswapped port numbers

(cherry picked from commit 3416916228624b6b446b5106f40c4d7e5fbd8cb0)

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

replace sizeof(opt) with sizeof(LogonOption_t)

add more debug statements

(cherry picked from commit 4b3c120e8e571f650e8274da553b1489cc34bd5e)

19 years agoSTABLE14-viced-host-nat-20060207
Jeffrey Altman [Tue, 7 Feb 2006 07:47:31 +0000 (07:47 +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)

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

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

(cherry picked from commit 6909509eca2a22b4b7003be60e0dbda75a30949c)

19 years agoSTABLE14-windows-winqual-20060206
Jeffrey Altman [Mon, 6 Feb 2006 07:07:08 +0000 (07:07 +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)

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

1.4.0097 == 1.4.1-rc7

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

updates for 1.4.1-rc7

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

FIXES 26225

avoid the possibility of creating bogus cached named vnodes

(cherry picked from commit f504df317572835718037fe177073e3202905753)

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

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

(cherry picked from commit 3da66f26980d7cfcde54f6ba9c9a0114e23f6f40)

19 years agoSTABLE14-windows-afslogon-20060205
Jeffrey Altman [Sun, 5 Feb 2006 17:47:12 +0000 (17:47 +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)

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

update release notes for 1.4.1

19 years agoSTABLE14-windows-afslogon-20060204
Jeffrey Altman [Sun, 5 Feb 2006 07:46:55 +0000 (07:46 +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)

19 years agoSTABLE14-windows-todays-bugs-20060203
Jeffrey Altman [Fri, 3 Feb 2006 23:05:26 +0000 (23:05 +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)

19 years agoSTABLE14-viced-log-add-ports-20060202
Jeffrey Altman [Thu, 2 Feb 2006 21:48:39 +0000 (21:48 +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)

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

notes for 1.4.1-rc6

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

1.4.1-rc6

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

missed one case where the vcpCounter wrapped fids at 0

(cherry picked from commit 57d3a8b72168bf03400ed42e8a8eab78ea75271c)

19 years agoSTABLE14-windows-more-cleanups-20060201
Jeffrey Altman [Wed, 1 Feb 2006 18:03:18 +0000 (18:03 +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)

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

don't extern this

(cherry picked from commit 40d1b796c1dca9c51811224c5ad80bbd2c62cdb1)

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

happy groundhog day?

19 years agoSTABLE14-getsomespace-r-rewrite-20060201
Jeffrey Altman [Wed, 1 Feb 2006 15:59:43 +0000 (15:59 +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)

19 years agoSTABLE14-windows-smb_fid_t-mx-20060130
Jeffrey Altman [Tue, 31 Jan 2006 09:09:59 +0000 (09:09 +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)

19 years agoSTABLE14-man-page-html-20060124
Russ Allbery [Mon, 30 Jan 2006 18:21:48 +0000 (18:21 +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)

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

XLDFLAGS64, not XLDFLAG64.

(cherry picked from commit ad207ee1134b42bd1a2204f7d91d0f4016a73c55)

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

Hopefully fix sparc64 Linux support with 2.6 kernels.

(cherry picked from commit 0b24f2d91a444c4bb11b3eaf8082356907b32d44)

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

avoid potential hang by disabling bkg daemons on 10.4 for now

(cherry picked from commit 2e76a2450e06c93d7cdbc0fe07bd9302ac085952)

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

make things so newvcache won't spin

(cherry picked from commit 29277d96bfade62e437b9206f885af307c74e3ca)

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

fix side effect of reclaim lookaside

(cherry picked from commit bb576b462d1d26cd07f03965c734ae6d2c5bd132)

19 years agoSTABLE14-windows-64-bit-type-safety-20051105
Jeffrey Altman [Thu, 26 Jan 2006 20:58:47 +0000 (20:58 +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

19 years agoSTABLE14-linux-vcache-extra-ref-unneeded-20060126
Chas Williams [Thu, 26 Jan 2006 19:30:07 +0000 (19:30 +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)

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

FIXES 25686

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

(cherry picked from commit 532147e45588039e6db64ef7deccfc1d5d21d16d)

19 years agoSTABLE14-linux26-build-update-20060126
Chas Williams [Thu, 26 Jan 2006 15:58:35 +0000 (15:58 +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)

19 years agoSTABLE14-ukernel-rx-knet-deref-20060126
Tom Keiser [Thu, 26 Jan 2006 15:53:36 +0000 (15:53 +0000)]
STABLE14-ukernel-rx-knet-deref-20060126

FIXES 25927

pass correct parameter to avoid type mismatch

(cherry picked from commit 27c42be1b9dced92f578664d57f2dd92aa21c8a0)

19 years agoSTABLE14-sol10-vnode-cleanup-20060126
Derrick Brashear [Thu, 26 Jan 2006 15:50:08 +0000 (15:50 +0000)]
STABLE14-sol10-vnode-cleanup-20060126

Because we use a private pool of vnodes, it's up to us to trigger cleanup.
here we do so.

(cherry picked from commit ad86f80fc2a7c02452d4bf280236f4c5df317fe9)

19 years agoSTABLE14-aix5-warning-error-cleanup-20051102
Niklas Edmundsson [Thu, 26 Jan 2006 15:45:51 +0000 (15:45 +0000)]
STABLE14-aix5-warning-error-cleanup-20051102

FIXES 22855

aix 5.1 and 5.2 should also build

(cherry picked from commit 6792431d289a8bd5cc035907247c3d7b31a9b98c)

19 years agoSTABLE14-windows-smb_fid_t-audit-20060125
Jeffrey Altman [Thu, 26 Jan 2006 06:09:47 +0000 (06:09 +0000)]
STABLE14-windows-smb_fid_t-audit-20060125

Further testing revealed that some smb_vc_t objects could not be freed
because the associated smb_fid_t objects never reached a zero refcount.
Additional auditing uncovered cases in which there were holds not being
released and others in which they were released to many times.  This
patch fixes the problems and improves auditability by modifying the
behavior of the smb_IoctlXXX() functions to not release a reference
that was obtained by the caller.  Now the caller releases the reference.

19 years agoSTABLE14-macos-avoid-reclaim-hang-20060124 openafs-stable-1_4_1-rc5
Derrick Brashear [Wed, 25 Jan 2006 04:47:11 +0000 (04:47 +0000)]
STABLE14-macos-avoid-reclaim-hang-20060124

FIXES 25686

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

(cherry picked from commit 1649de223462f5290974b7f05d09a41f9ff29bde)

19 years agoSTABLE14-release-avoid-negative-time-20060124
Jeffrey Hutzelman [Wed, 25 Jan 2006 03:49:53 +0000 (03:49 +0000)]
STABLE14-release-avoid-negative-time-20060124

avoid any possibility of time going negative when releasing incrementally

(cherry picked from commit 179b4c31d93b511a5762c818a47cddc0e364c9d3)

19 years agoSTABLE14-implement-vpeek-for-listvol-20060124
Derrick Brashear [Wed, 25 Jan 2006 03:25:49 +0000 (03:25 +0000)]
STABLE14-implement-vpeek-for-listvol-20060124

roll back for listonevolume (only)

(cherry picked from commit feccc2a98770fd48eee58d380671539e4bc1fdfb)

19 years agoSTABLE14-usebuffer-macros-20060124
Chas Williams [Tue, 24 Jan 2006 17:41:20 +0000 (17:41 +0000)]
STABLE14-usebuffer-macros-20060124

FIXES 25819

get rid of usebuffers macro usage warning

(cherry picked from commit 1c53d7f34db626f6f44821844912e7f7012e5bfb)

19 years agoSTABLE14-windows-notes-20060124
Jeffrey Altman [Tue, 24 Jan 2006 17:19:09 +0000 (17:19 +0000)]
STABLE14-windows-notes-20060124

more updates for 1.4.1-rc5

19 years agoSTABLE14-windows-continued-refcount-cleanup-20060124
Jeffrey Altman [Tue, 24 Jan 2006 17:16:05 +0000 (17:16 +0000)]
STABLE14-windows-continued-refcount-cleanup-20060124

* re-enable LogoffTokenTransferTimeout and LogoffTokenTransfer.
  Tokens are now destroyed at logoff based upon the values specified
  here.  Default is ON and 120 seconds.  Setting this to OFF will
  result in tokens never being destroyed.  This will leak memory.

* protect global queues with mutexes and avoid a variety of race
  conditions.

(cherry picked from commit 97304b84f76154d067717e3b34a3525abebc0cf7)

19 years agoSTABLE14-viced-grow-h_maxSlots-20060123
Chaskiel M Grundman [Mon, 23 Jan 2006 21:30:18 +0000 (21:30 +0000)]
STABLE14-viced-grow-h_maxSlots-20060123

and jhutz@cs.cmu.edu

The size of h_maxSlots as computed based upon the value of
MAX_FILESERVER_THREAD is too small.   It is possible for h_lwpIndex
(in the pthread case) to have produce the same Slot value for multiple
threads.  In that case it is possible for the following to occur:

       X: h_Hold_r(host)
       X: H_UNLOCK
       ...
       E: H_LOCK
       E: Check h_Held_r(host); it is true, so don't hold
       E: H_UNLOCK
       X: H_LOCK
       X: h_Release_r(host)
       X: h_TossStuff_r(host)  [called by h_Release_r]
       X: H_UNLOCK
       E: CheckHost(host)

The end result would be a crash due to a reference to a null field
in the host processed by CheckHost.

This patch is a bit of a hack in that it solves the problem by increasing
the number of slots for threads and does not determine the correct number
of threads the process should be allowed to produce.

(cherry picked from commit 4a5dda84178842e3eaa61d03fecc96149333dd13)

19 years agoSTABLE14-check-host-optimize-20060123
Jeffrey Altman [Mon, 23 Jan 2006 21:28:43 +0000 (21:28 +0000)]
STABLE14-check-host-optimize-20060123

There should never be a case where h_Enumerate calls CheckHost with a
host whose callback_rxcon that is NULL.  However, due to a bug it ended up
being the case that it happened.  An examination of the CheckHost code
showed that the check for the HOSTDELETED flag should take place before
a reference to callback_rxcon is obtained.  If HOSTDELETED were set, the
code would simply release the reference immediately.  However, the process
of obtaining and releasing the reference required dropping and obtaining
locks that would be a performance hit.

(cherry picked from commit ff40c87da3ce4c6a7a58c08eaa223e8760dc8f73)

19 years agoSTABLE14-fs-getfid-20060123
Derrick Brashear [Mon, 23 Jan 2006 21:07:42 +0000 (21:07 +0000)]
STABLE14-fs-getfid-20060123

add a fs subcommand to get a fid

(cherry picked from commit db98b697fe4e1b38ac5e73d60dd101b2506e12a4)

19 years agoSTABLE14-windows-smb-logoff-or-abandonment-detection-20060121
Jeffrey Altman [Sat, 21 Jan 2006 23:40:36 +0000 (23:40 +0000)]
STABLE14-windows-smb-logoff-or-abandonment-detection-20060121

This patch:

(1) removes the rest of the dead logoff code that was originally
    stripped of any meaning by DELTA
    winnt-win2000-win98-afs-client-updates-20010623.

(2) gives new meaning to smb_TokenTransfer and smb_TokenTransferTimeout.
    these variables now control how long a smb_username_t and its
    associated cm_user_t and its cm_cellinfo_t (including tokens)
    will be preserved after a logoff.

(3) adds logic to detect logoff conditions

(4) adds cm_CheckVCs().  This function probes the SMB client with a ECHO
    response to determine if the associated SMB virtual circuit is still
    valid.   This is executed once every five minutes by smb_Daemon()
    and whenever the machine's IP addresses change.  This allows
    abandoned VCs to be detected and the associated user credentials,
    file handles, and locks to be cleaned up.  This will also prevent
    the exhaustion of the limited number of SMB sessions.

====================
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 remember to mark the session dead so it can be re-used

====================

fix an error caused by patch conflict during pullup

(cherry picked from commit 7fde756a2c6f17e6a3b0db7659c6edcc2eaa0bd7)

19 years agoSTABLE14-windows-notes-20060121
Jeffrey Altman [Sat, 21 Jan 2006 21:40:36 +0000 (21:40 +0000)]
STABLE14-windows-notes-20060121

more notes for 1.4.1-rc5

19 years agoSTABLE14-h_gethost_r-hold-fix-20060121
Jeffrey Altman [Sat, 21 Jan 2006 21:24:16 +0000 (21:24 +0000)]
STABLE14-h_gethost_r-hold-fix-20060121

fix hold errors

(cherry picked from commit 96100b6dea66ea5053956e545ada6228aabe2e4a)

19 years agoSTABLE14-openafs-stable-1_4_1-rc5-20060120
Derrick Brashear [Fri, 20 Jan 2006 06:32:22 +0000 (06:32 +0000)]
STABLE14-openafs-stable-1_4_1-rc5-20060120

make 1.4.1-rc5

19 years agoSTABLE14-cached-lookup-mtpt-20060120
Chaskiel M Grundman [Fri, 20 Jan 2006 05:21:02 +0000 (05:21 +0000)]
STABLE14-cached-lookup-mtpt-20060120

FIXES 25647

don't do lookups on the wrong vnode, if it's a mvstat=1 vnode, it's not useful

(cherry picked from commit a784c131709a8252fa1e8cb4ce49cb0c655dd7aa)

19 years agoSTABLE14-aix-vm-rdwr-fix-20060120
Tom Keiser [Fri, 20 Jan 2006 05:06:57 +0000 (05:06 +0000)]
STABLE14-aix-vm-rdwr-fix-20060120

FIXES 25650

avoid a loop in vm_rdwr on aix. also fix ifnet_flags macro

(cherry picked from commit f3a7aabbc523cc3e90b4cc11788523cc72e72822)

19 years agoSTABLE14-cmdebug-no-zero-pad-output-20060119
Derrick Brashear [Fri, 20 Jan 2006 00:03:10 +0000 (00:03 +0000)]
STABLE14-cmdebug-no-zero-pad-output-20060119

length, dv and refcnt no longer 0 padded

19 years agoSTABLE14-windows-integrated-logon-hack-fix-for-proper-refcounts-20060119
Jeffrey Altman [Thu, 19 Jan 2006 23:08:44 +0000 (23:08 +0000)]
STABLE14-windows-integrated-logon-hack-fix-for-proper-refcounts-20060119

The Integrated Logon hack of setting a token for a smb name different
than the one associated with the current smb session fails when smb
virtual circuits, sessions and username objects are properly reference
counted.  When refcounts are not leaked the constructed smb_username_t
is destroyed immediately after the token is set since there are not
references to it from a current session.

The fix is to mark the smb_username_t object with a flag indicating that
it was created by the Network Provider.  This flag prevents the destruction
when the refcount is zero so that it will be available at the time the
smb session is created (just a moment or two later.)  During the binding
of the smb_username_t to the smb_vc_t the flag is cleared allowing the
tokens to be destroyed when the smb session is closed.

(cherry picked from commit 70b76b3a1cff1dabe9b10b8222cd84fc207b6704)

19 years agoSTABLE14-linux-vrefcount-macro-fix-20060118
Derrick Brashear [Wed, 18 Jan 2006 06:27:18 +0000 (06:27 +0000)]
STABLE14-linux-vrefcount-macro-fix-20060118

thanks to jhutz@cmu.edu for making me consider this

(cherry picked from commit 0806f60ab8d3cdd092449126eb0102a0fcd5edd0)

19 years agoSTABLE14-linux-kernel-bug-macro-inline-20060117
Derrick Brashear [Wed, 18 Jan 2006 02:22:19 +0000 (02:22 +0000)]
STABLE14-linux-kernel-bug-macro-inline-20060117

force oops inline instead of calling bug, so we can printk

(cherry picked from commit 93efc4ae47cc942164c2dfee175df0760fbfca03)

19 years agoSTABLE14-windows-truncate-after-lock-check-20060116
Jeffrey Altman [Tue, 17 Jan 2006 21:45:12 +0000 (21:45 +0000)]
STABLE14-windows-truncate-after-lock-check-20060116

In smb_ReceiveNTCreateX the lock check, cm_CheckNTOpen(), must take place
before we allow the file to be truncated.

(cherry picked from commit d921ee381aa46e4385524f0c31ca5ad606aa920a)

19 years agoSTABLE14-darwin-use-kthreads-20060117
Chaskiel M Grundman [Tue, 17 Jan 2006 17:09:47 +0000 (17:09 +0000)]
STABLE14-darwin-use-kthreads-20060117

FIXES 25542

use kernel threads for afsd processes instead of forked pids

(cherry picked from commit 47d2ab228517deb7c3097ca4c5f46afd84e26098)

19 years agoSTABLE14-macos-locking-behavior-20060117
Chaskiel M Grundman [Tue, 17 Jan 2006 17:06:42 +0000 (17:06 +0000)]
STABLE14-macos-locking-behavior-20060117

FIXES 25543

F_UNLCK is send as a command, remap to F_SETLK like everyone else

(cherry picked from commit b81d0cf8af1c5788de399b630545945004f65345)

19 years agoSTABLE14-tiger-sysctl-20060117
Chaskiel M Grundman [Tue, 17 Jan 2006 16:08:20 +0000 (16:08 +0000)]
STABLE14-tiger-sysctl-20060117

FIXES 25327

implementation of sysctl for tiger

(cherry picked from commit ebf35c3f884b40616700b4b0b2462731cda290ae)

19 years agoSTABLE14-newvcache-can-fail-now-20060116
Peter Somogyi [Tue, 17 Jan 2006 05:00:21 +0000 (05:00 +0000)]
STABLE14-newvcache-can-fail-now-20060116

FIXES 22260

allow newvcache to fail without ooping

sort of nasty, if you want more vcaches, say so.

(cherry picked from commit c19324c8574c66f18cd18f2df4beb486460205aa)

19 years agoSTABLE14-windows-notes-20060116
Jeffrey Altman [Tue, 17 Jan 2006 04:20:11 +0000 (04:20 +0000)]
STABLE14-windows-notes-20060116

updates for 1.4.1-rc5

19 years agoSTABLE14-windows-version-20060116
Jeffrey Altman [Tue, 17 Jan 2006 04:00:46 +0000 (04:00 +0000)]
STABLE14-windows-version-20060116

1.4.1-rc5

19 years agoSTABLE14-windows-afsmap-20060116
Jeffrey Altman [Tue, 17 Jan 2006 03:58:05 +0000 (03:58 +0000)]
STABLE14-windows-afsmap-20060116

strcpy -> strncpy

(cherry picked from commit 4bb334ef6e40250630aec96b319de8db72619134)

19 years agoSTABLE14-remove-dead-prototype-20060116
Chaskiel M Grundman [Tue, 17 Jan 2006 03:33:41 +0000 (03:33 +0000)]
STABLE14-remove-dead-prototype-20060116

remove dead prototype for osi_iput()

(cherry picked from commit 8d158c1b615ec2625756b8f124a9eaff94a67799)

19 years agoSTABLE14-h-enumerate-r-fix-for-real-20060116
Chaskiel M Grundman [Mon, 16 Jan 2006 21:16:33 +0000 (21:16 +0000)]
STABLE14-h-enumerate-r-fix-for-real-20060116

FIXES 24196

make this not simply wrong

(cherry picked from commit 93e1cee7046984a81f0339484713649aceb25f3a)

19 years agoSTABLE14-windows-rx-ehostunreach-20060116
Jeffrey Altman [Mon, 16 Jan 2006 16:23:33 +0000 (16:23 +0000)]
STABLE14-windows-rx-ehostunreach-20060116

another location where EHOSTUNREACH can be returned
such that we can timeout the request immediately

(cherry picked from commit f7b9cd54e50e553486c2ad850df1a8ecaee0d954)

19 years agoSTABLE14-windows-vc-locks-and-more-20060115
Jeffrey Altman [Mon, 16 Jan 2006 02:06:58 +0000 (02:06 +0000)]
STABLE14-windows-vc-locks-and-more-20060115

This patch fixes several issues:

 * the smb virtual circuits can be active and/or dead.   this patch
   improves the handling of vc's making the transition from active
   to dead

 * correct the refcounts on the smb_user_t and smb_vc_t objects

 * replace the deprecated GetCurrentTime() with GetTickCounts() which
   is the new name.  This function needs to be replaced with something
   else because its return value wraps after 49.7 days

 * hold the correct locks when adjusting the scp->fileLocksH queue

(cherry picked from commit 880a6b66a5477e092d5bb74febbf24639d786c64)

19 years agoSTABLE14-windows-cmfinduserbyname-20060112
Jeffrey Altman [Thu, 12 Jan 2006 05:55:58 +0000 (05:55 +0000)]
STABLE14-windows-cmfinduserbyname-20060112

FIXES 25347

Fix invalid access after freeing newly allocated data structure

(cherry picked from commit af202cac551ad541a0a1ca4525b03c2ec05f6507)

19 years agoSTABLE14-linux-clean-up-stupidity-20060111
Chas Williams [Wed, 11 Jan 2006 21:38:30 +0000 (21:38 +0000)]
STABLE14-linux-clean-up-stupidity-20060111

get some of an inadvertant misapplied patch, and get rid of a redundant check

(cherry picked from commit 3e8b96cfc4596c3e9c6c3802c1bdca1784f86271)

19 years agoSTABLE14-windows-stable-20060110 openafs-stable-1_4_1-rc4
Jeffrey Altman [Wed, 11 Jan 2006 04:49:19 +0000 (04:49 +0000)]
STABLE14-windows-stable-20060110

updates for 1.4.1-rc4

19 years agoSTABLE14-afs-sysnames-20060110
Jeffrey Altman [Wed, 11 Jan 2006 04:47:10 +0000 (04:47 +0000)]
STABLE14-afs-sysnames-20060110

move allocations for SYS_NAME_ID_amd64_w2k and  SYS_NAME_ID_i64_w2k to avoid
conflicts

(cherry picked from commit fb6d1dacfc256386f32f59fe4335b546a7d368c3)

19 years agoSTABLE14-openafs-stable-1_4_1-rc4-20060110
Derrick Brashear [Wed, 11 Jan 2006 04:36:10 +0000 (04:36 +0000)]
STABLE14-openafs-stable-1_4_1-rc4-20060110

make 1.4.1-rc4

19 years agoSTABLE14-macos-avoid-ref-leak-20060110
Chaskiel M Grundman [Wed, 11 Jan 2006 04:26:44 +0000 (04:26 +0000)]
STABLE14-macos-avoid-ref-leak-20060110

FIXES 25302

fix for the earlier fix

(cherry picked from commit ab7cfe62ec128b1205193ede1c769ddb369cc563)

19 years agoSTABLE14-macos-reclaim-20060110
Chaskiel M Grundman [Wed, 11 Jan 2006 04:24:39 +0000 (04:24 +0000)]
STABLE14-macos-reclaim-20060110

FIXES 25165

avoid a vnode cleaning pnaic during recycle

(cherry picked from commit 29924c8302431a25d4889ef4500fc5f0eeb97b2e)

19 years agoSTABLE14-remove-vnop-mem-leak-20060110
Derrick Brashear [Tue, 10 Jan 2006 15:11:08 +0000 (15:11 +0000)]
STABLE14-remove-vnop-mem-leak-20060110

avoid leaking mvid when we use .__afsXXXX renaming in remove

(cherry picked from commit 8a1d347b2e129a6085fb605f706917d88aa054b7)

19 years agoSTABLE14-remove-vnop-lock-order-20060110
Derrick Brashear [Tue, 10 Jan 2006 15:04:40 +0000 (15:04 +0000)]
STABLE14-remove-vnop-lock-order-20060110

FIXES 25118

finegrained dcache lock order not obeyed

(cherry picked from commit 39b23a0dc16f2e26abf3b7df53bfadb98377748d)

19 years agoSTABLE14-windows-smb-username-refcount-20060110
Jeffrey Altman [Tue, 10 Jan 2006 13:28:01 +0000 (13:28 +0000)]
STABLE14-windows-smb-username-refcount-20060110

the smb_username_t objects are reference counted but they were never
released on their own accord.  Instead the smb_uid_t objects when
released were also cleaning up the smb_username_t.  Since the smb_username_t
is reused, now that smb_user_t objects are being cleaned up, this was
a problem.

(cherry picked from commit a9df3ca715f483a31c14b72bae3f548a4c9291d4)

19 years agoSTABLE14-windows-version-20060108
Jeffrey Altman [Mon, 9 Jan 2006 05:36:52 +0000 (05:36 +0000)]
STABLE14-windows-version-20060108

1.4.1-rc4 == 1.4.0094

19 years agoSTABLE14-windows-relnotes-20060108
Jeffrey Altman [Mon, 9 Jan 2006 05:29:23 +0000 (05:29 +0000)]
STABLE14-windows-relnotes-20060108

updates 1.4.1-rc4

19 years agoSTABLE14-windows-notes-20060108
Jeffrey Altman [Mon, 9 Jan 2006 05:26:35 +0000 (05:26 +0000)]
STABLE14-windows-notes-20060108

1.4.1-rc4

19 years agoSTABLE14-windows-byte-range-locking-20060108
Asanka Herath [Mon, 9 Jan 2006 04:49:17 +0000 (04:49 +0000)]
STABLE14-windows-byte-range-locking-20060108

When SMB sessions are prematurely terminated as part of the tear down
of the virtual circuit we must clean up any remaining file handles,
tree connections, and user sessions.

(cherry picked from commit 78c40badbd8c65d82f6c384fdff8056c03100b67)

19 years agoSTABLE14-windows-byte-range-locks-fix-20060107
Jeffrey Altman [Sun, 8 Jan 2006 04:18:53 +0000 (04:18 +0000)]
STABLE14-windows-byte-range-locks-fix-20060107

fix the SERVERLOCKS_ENABLED macro

(cherry picked from commit 36596b93e0b45cb1074b554e57c5f71171350f62)

19 years agoSTABLE14-windows-byte-range-locking-20060107
Jeffrey Altman [Sun, 8 Jan 2006 00:39:56 +0000 (00:39 +0000)]
STABLE14-windows-byte-range-locking-20060107

* Update architectural documentation

* Allow locks to be obtained as soon as it is possible instead of
  enforcing a requirement that locks be granted in order.

* Fix other bugs

* Disable byte range lock processing

(cherry picked from commit f057d9515c72609e4ca9e51ff96f658689679497)

19 years agoSTABLE14-macos-104-change-access-enforcement-20060105
Derrick Brashear [Fri, 6 Jan 2006 03:03:26 +0000 (03:03 +0000)]
STABLE14-macos-104-change-access-enforcement-20060105

don't improperly enforce read attribute restriction on child instead of parent
when it's a directory

avoid screwing ourselves on mode 0 files, also

(cherry picked from commit e07a781b20272a629f73cf8b2377ee8e3bd6cd99)

19 years agoSTABLE14-man-page-rxgen-cmdebug-20051227
Russ Allbery [Thu, 5 Jan 2006 18:55:43 +0000 (18:55 +0000)]
STABLE14-man-page-rxgen-cmdebug-20051227

Add man pages for rxgen and cmdebug.  The cmdebug man page was written from
scratch based on the source code.  The rxgen man page is a conversion of an
old TeX document to POD.

(cherry picked from commit 8863143052cb1a60de4fe90c1617df0bb3eca931)

19 years agoSTABLE14-man-page-misc-improvements-20051221
Russ Allbery [Thu, 5 Jan 2006 18:55:18 +0000 (18:55 +0000)]
STABLE14-man-page-misc-improvements-20051221

Add new man pages for livesys and voldump.  Fix the man page for sys to say
what it actually does, rather than implying that it works like livesys, and
to recommend livesys instead.  Fix a path error in the NetInfo
documentation.  Update the README for the current status, including
listing all installed commands that don't have man pages.  (There may still
be some subcommands that don't have man pages but aren't listed.)

(cherry picked from commit 90bc5c0092652b047c4eabffb5577e05859c80f4)

19 years agoSTABLE14-man-page-installation-20051221
Russ Allbery [Thu, 5 Jan 2006 18:54:50 +0000 (18:54 +0000)]
STABLE14-man-page-installation-20051221

On installation, substitute the configured paths into the man pages,
replacing the Transarc paths.  Also fix a problem with the way that
pinstall was being used to install man pages.  (Silly me, I was assuming
it had the same behavior as install.)

This is just a quick first pass.  Longer term, it's probably better to
replace all paths in the man pages with unambiguous tokens and then
replace those tokens instead of assuming that the man pages use Transarc
paths and replacing those paths specifically.  The current method has a
few minor problems, such as not being able to distinguish between the
various paths that make up /usr/afs/bin.  Still, the results of this method
are good enough to start with.

(cherry picked from commit 5fde2994348d1c7f6239f98aac355011125b06ad)

19 years agoSTABLE14-man-page-whitespace-20051220
Russ Allbery [Thu, 5 Jan 2006 18:54:17 +0000 (18:54 +0000)]
STABLE14-man-page-whitespace-20051220

Remove all trailing whitespace while we have the chance and there are no
merge issues yet.

(cherry picked from commit 160854bd2bd9994b615216c566473598e871d13b)

19 years agoSTABLE14-man-page-generation-20051220
Russ Allbery [Thu, 5 Jan 2006 18:53:20 +0000 (18:53 +0000)]
STABLE14-man-page-generation-20051220

Move man page generation out into a separate script that's just invoked
from regen.sh, so that someone can run that separate script later if they
wish.  Make that script more robust against problems such as empty podN
directories.  Diagnose a missing pod2man and warn about old versions of
Pod::Man.

Also, remove the old programs used to do the initial conversion from HTML.
Enough post-conversion editing was done that they're no longer necessary
except for historical curiosity, and for that purpose they can be pulled
out of CVS.

(cherry picked from commit 0b21e24d0a96401033d55d3c079c954138b7c50e)

19 years agoSTABLE14-retire-cat-pages-20051213
Russ Allbery [Thu, 5 Jan 2006 18:48:34 +0000 (18:48 +0000)]
STABLE14-retire-cat-pages-20051213

These can go now that we have POD versions of, in most cases, newer
versions of the same documentation.

(cherry picked from commit 5d2b5780c463af51ffa264386daff210c633263f)

19 years agoSTABLE14-man-merge-cleanup-20060105
Russ Allbery [Thu, 5 Jan 2006 18:39:25 +0000 (18:39 +0000)]
STABLE14-man-merge-cleanup-20060105

Add package_test.pod on the stable branch; for some reason the delta pullup
didn't add it properly.