openafs.git
18 years agovnode-ref-verification-20060217
Chaskiel M Grundman [Sat, 18 Feb 2006 04:53:34 +0000]
vnode-ref-verification-20060217

verify we got a ref when we call vnode_ref

18 years agorx-dpf-20060216
Jeffrey Altman [Sat, 18 Feb 2006 04:11:30 +0000]
rx-dpf-20060216

when dpf is in use, log error codes from abort packets and perform
ntoh translation of addresses and port numbers.

18 years agoqremove-set-null-20060217
Chaskiel M Grundman [Fri, 17 Feb 2006 21:57:12 +0000]
qremove-set-null-20060217

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

18 years agoflushvolume-vhashq-consistency-20060217
Chaskiel M Grundman [Fri, 17 Feb 2006 21:43:42 +0000]
flushvolume-vhashq-consistency-20060217

avoid having vflushed vnodes in play

18 years agotest-heimdal-20060217
Jim Rees [Fri, 17 Feb 2006 17:58:21 +0000]
test-heimdal-20060217

Add a configure test for heimdal and use it to build asetkey or not.
Thanks to Derek Atkins for his helpful suggestions.

18 years agohpux11-store-fd-sonner-20060217
Derrick Brashear [Fri, 17 Feb 2006 17:34:15 +0000]
hpux11-store-fd-sonner-20060217

FIXES 23112

based on report from   jbuehler@spirentcom.com

18 years agodarwin-x86-lwp-fix-20060217
Chaskiel M Grundman [Fri, 17 Feb 2006 16:41:28 +0000]
darwin-x86-lwp-fix-20060217

make lwp work on darwin x86

18 years agowindows-notes-20060216
Jeffrey Altman [Fri, 17 Feb 2006 15:35:38 +0000]
windows-notes-20060216

1.5.0 development build

18 years agodarwin-lost-wakeups-20060213
Chaskiel M Grundman [Fri, 17 Feb 2006 15:22:24 +0000]
darwin-lost-wakeups-20060213

eliminate the apparent lost wakeup problem in tiger

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

FIXES 26967

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

18 years agowindows-optimize-find-uid-20060216
Jeffrey Altman [Thu, 16 Feb 2006 22:06:02 +0000]
windows-optimize-find-uid-20060216

Rename smb_GetUser to smb_GetUserFromVCP and add smb_GetUserFromUID.

Use calls to smb_GetUserFromUID to reduce the number of times that
the smb_user_t object is obtained and released during the processing
of an smb call.

18 years agowindows-server-ping-20060216
Jeffrey Altman [Thu, 16 Feb 2006 22:03:47 +0000]
windows-server-ping-20060216

add logging of server addresses, status and capabilities

prevent multiple threads from pinging the same server simultaneously.
instead, threads block and then use the result of the ping that was
already taking place.

18 years agowindows-daemon-check-registry-20060216
Jeffrey Altman [Thu, 16 Feb 2006 22:01:45 +0000]
windows-daemon-check-registry-20060216

Add registry values to allow the defaults for daemon checks to be altered
at startup.  Log values to afsd_init.log.

daemonCheckDownInterval
daemonCheckUpInterval
daemonCheckVolInterval
daemonCheckCBInterval
daemonCheckLockInterval
daemonCheckTokenInterval

18 years agowindows-lock-testing-20060216
Jeffrey Altman [Thu, 16 Feb 2006 21:59:19 +0000]
windows-lock-testing-20060216

turn on the support for backing byte range lock allocations with
afs file server locks.

18 years agowindows-rx-wsaeconnreset-20060216
Jeffrey Altman [Thu, 16 Feb 2006 21:48:50 +0000]
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.

18 years agolinux-inode-i-mutex-20060214
Derrick Brashear [Wed, 15 Feb 2006 21:01:49 +0000]
linux-inode-i-mutex-20060214

new (2.6.16) kernerls have i_mutex instead of i_sem

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

make i_sem become i_mutex

18 years agodarwin-event-cleanup-20060215
Chaskiel M Grundman [Wed, 15 Feb 2006 20:53:02 +0000]
darwin-event-cleanup-20060215

clean up event resources added for deadlock avoidance

18 years agoasetkey-macos-20060215
Derrick Brashear [Wed, 15 Feb 2006 16:38:33 +0000]
asetkey-macos-20060215

make the same fix we do on aklog w.r.t com_err

18 years agodarwin-ifnet-flags-20060215
Derrick Brashear [Wed, 15 Feb 2006 16:32:42 +0000]
darwin-ifnet-flags-20060215

darwin (8.0) already has this

18 years agowindows-reg-fix-20060215
Jeffrey Altman [Wed, 15 Feb 2006 16:31:15 +0000]
windows-reg-fix-20060215

cleanup the back connection hostname code

18 years agodarwin80-mkdir-error-leak-fix-20060215
Chaskiel M Grundman [Wed, 15 Feb 2006 07:01:40 +0000]
darwin80-mkdir-error-leak-fix-20060215

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

18 years agomacos-dynroot-start-anyway-20060214
Adam Megacz [Wed, 15 Feb 2006 00:37:28 +0000]
macos-dynroot-start-anyway-20060214

start afsd if -dynroot specified

18 years agomacos-afsdb-20060214
Adam Megacz [Wed, 15 Feb 2006 00:33:45 +0000]
macos-afsdb-20060214

enable afsdb by default

18 years agolookup-checkcode-bulkstats-20060214
Chaskiel M Grundman [Tue, 14 Feb 2006 20:32:45 +0000]
lookup-checkcode-bulkstats-20060214

do error code analysis on bulkstat results also

18 years agodead-code-and-prototyes-20060214
Jim Rees [Tue, 14 Feb 2006 16:58:13 +0000]
dead-code-and-prototyes-20060214

Remove dead code and add prototypes.

18 years agowindows-build-sys_name-20060214
Jeffrey Altman [Tue, 14 Feb 2006 14:03:17 +0000]
windows-build-sys_name-20060214

Add the sys_name to the dest and obj directories in order to allow
both 32-bit and 64-bit builds to be built from the same directory
tree.

18 years agowindows-notes-20060214
Jeffrey Altman [Tue, 14 Feb 2006 13:25:10 +0000]
windows-notes-20060214

updates

18 years agoremove-recursive-vfs-getcontext-20060213
Chaskiel M Grundman [Mon, 13 Feb 2006 18:51:55 +0000]
remove-recursive-vfs-getcontext-20060213

remove unused code

18 years agosolaris-afs-nfsrdwr-avoid-reading-past-end-of-file-20060213
Derrick Brashear [Mon, 13 Feb 2006 18:38:37 +0000]
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

18 years agorevert-bkg-disable-var-20060213
Derrick Brashear [Mon, 13 Feb 2006 18:29:26 +0000]
revert-bkg-disable-var-20060213

remove the bkg daemon disabling

18 years agoviced-fix-check-rights-race-20060213
Jeffrey Altman [Mon, 13 Feb 2006 17:09:36 +0000]
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.

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

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

18 years agowindows-new-server-ping-20060213
Jeffrey Altman [Mon, 13 Feb 2006 16:28:59 +0000]
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.

18 years agowindows-off-to-the-races-20060211
Jeffrey Altman [Sun, 12 Feb 2006 06:25:37 +0000]
windows-off-to-the-races-20060211

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

18 years agowindows-vcp-fidsp-empty-20060210
Jeffrey Altman [Fri, 10 Feb 2006 18:43:22 +0000]
windows-vcp-fidsp-empty-20060210

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

18 years agoviced-probe-uuid-on-old-connection-20060210
Jeffrey Altman [Fri, 10 Feb 2006 17:10:44 +0000]
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.

18 years agoviced-log-typo-20060210
Jeffrey Altman [Fri, 10 Feb 2006 17:07:43 +0000]
viced-log-typo-20060210

missing % in format string causes crash at log level 125

18 years agoviced-debug-port-numbers-20060210
Derrick Brashear [Fri, 10 Feb 2006 16:49:37 +0000]
viced-debug-port-numbers-20060210

fix port number printing to not print byteswapped port numbers

18 years agowindows-afslogon-20060209
Jeffrey Altman [Thu, 9 Feb 2006 15:28:56 +0000]
windows-afslogon-20060209

replace sizeof(opt) with sizeof(LogonOption_t)

add more debug statements

18 years agoviced-host-nat-20060207
Jeffrey Altman [Tue, 7 Feb 2006 07:46:55 +0000]
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.

18 years agoviced-more-dbg-improvements-20060207
Jeffrey Altman [Tue, 7 Feb 2006 06:04:34 +0000]
viced-more-dbg-improvements-20060207

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

18 years agono-global-sunlock-20060206
Jim Rees [Mon, 6 Feb 2006 17:18:12 +0000]
no-global-sunlock-20060206

Don't use global_sunlock on OpenBSD unless running smp kernel

18 years agowindows-winqual-20060206
Jeffrey Altman [Mon, 6 Feb 2006 07:06:33 +0000]
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.

18 years agodarwin-avoid-bogus-name-caching-20060205
Chaskiel M Grundman [Sun, 5 Feb 2006 18:21:51 +0000]
darwin-avoid-bogus-name-caching-20060205

FIXES 26225

avoid the possibility of creating bogus cached named vnodes

18 years agowindows-mountpoints-20060205
Jeffrey Altman [Sun, 5 Feb 2006 17:45:34 +0000]
windows-mountpoints-20060205

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

18 years agowindows-afslogon-20060205
Jeffrey Altman [Sun, 5 Feb 2006 17:44:41 +0000]
windows-afslogon-20060205

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

18 years agowindows-afslogon-20060204
Jeffrey Altman [Sun, 5 Feb 2006 07:44:50 +0000]
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

18 years agowindows-todays-bugs-20060203
Jeffrey Altman [Fri, 3 Feb 2006 23:21:04 +0000]
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

18 years agoviced-log-add-ports-20060202
Jeffrey Altman [Thu, 2 Feb 2006 21:47:37 +0000]
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

18 years agowindows-more-cleanup-20060201
Jeffrey Altman [Wed, 1 Feb 2006 18:28:58 +0000]
windows-more-cleanup-20060201

missed one case where the vcpCounter wrapped fids at 0

18 years agobkg-disable-var-20060202
Chaskiel M Grundman [Thu, 2 Feb 2006 08:27:16 +0000]
bkg-disable-var-20060202

don't extern this

18 years agowindows-more-cleanups-20060201
Jeffrey Altman [Wed, 1 Feb 2006 18:02:29 +0000]
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

18 years agoaix-prototyping-fixes-20060201
Tom Keiser [Wed, 1 Feb 2006 16:20:07 +0000]
aix-prototyping-fixes-20060201

FIXES 26102

fix some prototypes and enable prototype enforcement for aix

18 years agoosi-audit-locking-fix-20060201
Tom Keiser [Wed, 1 Feb 2006 16:09:01 +0000]
osi-audit-locking-fix-20060201

FIXES 25955

fix aix builds

18 years agogetsomespace-r-rewrite-20060201
Jeffrey Altman [Wed, 1 Feb 2006 15:58:30 +0000]
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

18 years agowindows-smb_fid_t-mx-20060130
Jeffrey Altman [Tue, 31 Jan 2006 09:13:11 +0000]
windows-smb_fid_t-mx-20060130

*Includes the changes from STABLE14-windows-smb_fid_t-audit-20060125
 as well:

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

Fixup token deletion logic

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

18 years agomerge-up-fixes-rxtcp-20060130
Ken Hornstein [Mon, 30 Jan 2006 22:11:40 +0000]
merge-up-fixes-rxtcp-20060130

Merge in fixes to up from the rxtcp branch.

18 years agosimple-darwin-disable-bkg-20060128
Chaskiel M Grundman [Sat, 28 Jan 2006 19:20:44 +0000]
simple-darwin-disable-bkg-20060128

avoid potential hang by disabling bkg daemons on 10.4 for now

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

make things so newvcache won't spin

18 years agoreclaim-defered-flush-fixes-20060128
Chaskiel M Grundman [Sat, 28 Jan 2006 18:02:40 +0000]
reclaim-defered-flush-fixes-20060128

fix side effect of reclaim lookaside

18 years agoup-cleanup-20060126
Derrick Brashear [Thu, 26 Jan 2006 21:24:39 +0000]
up-cleanup-20060126

FIXES 25863

subsumes todd's fix

18 years agoosi-panic-revert-to-kandr-20060126
Tom Keiser [Thu, 26 Jan 2006 20:34:50 +0000]
osi-panic-revert-to-kandr-20060126

FIXES 25924

avoid prototype issue for now

18 years agolinux-vcache-extra-ref-unneeded-20060126
Chas Williams [Thu, 26 Jan 2006 18:55:18 +0000]
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.

18 years agoremove-spurious-var-20060126
Jim Rees [Thu, 26 Jan 2006 18:13:06 +0000]
remove-spurious-var-20060126

Remove unused local variable "lock".

18 years agocast-pointer-20060126
Jim Rees [Thu, 26 Jan 2006 18:11:23 +0000]
cast-pointer-20060126

Cast pointer to long for printf.
"%p" would be a better fix, but is it supported on all platforms?

18 years agomacos-avoid-reclaim-hang-20060124
Derrick Brashear [Thu, 26 Jan 2006 16:03:03 +0000]
macos-avoid-reclaim-hang-20060124

FIXES 25686

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

18 years agomore-rxglock-cleanup-20060126
Chas Williams [Thu, 26 Jan 2006 16:00:34 +0000]
more-rxglock-cleanup-20060126

FIXES 23321

more rx glock cleanup. eval for pullup after 1.4.1

18 years agolinux26-build-update-20060126
Chas Williams [Thu, 26 Jan 2006 15:56:41 +0000]
linux26-build-update-20060126

FIXES 25879

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

18 years agoukernel-rx-knet-deref-20060126
Tom Keiser [Thu, 26 Jan 2006 15:52:37 +0000]
ukernel-rx-knet-deref-20060126

FIXES 25927

pass correct parameter to avoid type mismatch

18 years agosol10-vnode-cleanup-20060126
Derrick Brashear [Thu, 26 Jan 2006 15:49:05 +0000]
sol10-vnode-cleanup-20060126

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

18 years agoregen-no-doc-noise-20060125
Jim Rees [Wed, 25 Jan 2006 19:44:15 +0000]
regen-no-doc-noise-20060125

Don't say we're building man pages if we're not.

18 years agoman-page-html-20060124
Russ Allbery [Wed, 25 Jan 2006 05:59:38 +0000]
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.

18 years agomacos-avoid-reclaim-hang-20060124
Derrick Brashear [Wed, 25 Jan 2006 04:45:00 +0000]
macos-avoid-reclaim-hang-20060124

FIXES 25686

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

18 years agorelease-avoid-negative-time-20060124
Jeffrey Hutzelman [Wed, 25 Jan 2006 03:49:25 +0000]
release-avoid-negative-time-20060124

avoid any possibility of time going negative when releasing incrementally

18 years agoimplement-vpeek-for-listvol-20060124
Derrick Brashear [Wed, 25 Jan 2006 03:24:25 +0000]
implement-vpeek-for-listvol-20060124

roll back for listonevolume (only)

18 years agousebuffer-macros-20060124
Chas Williams [Tue, 24 Jan 2006 17:40:11 +0000]
usebuffer-macros-20060124

FIXES 25819

get rid of usebuffers macro usage warning

18 years agowindows-continued-refcount-cleanup-20060124
Jeffrey Altman [Tue, 24 Jan 2006 23:22:00 +0000]
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.

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

rollback unintended commit

18 years agoviced-grow-h_maxSlots-20060123
Chaskiel M Grundman [Mon, 23 Jan 2006 21:23:16 +0000]
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.

18 years agocheck-host-optimize-20060123
Jeffrey Altman [Mon, 23 Jan 2006 21:13:19 +0000]
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.

18 years agofs-getfid-20060123
Derrick Brashear [Mon, 23 Jan 2006 21:04:31 +0000]
fs-getfid-20060123

add a fs subcommand to get a fid

18 years agowindows-smb-logoff-or-abandonment-detection-20060121
Jeffrey Altman [Sat, 21 Jan 2006 21:37:04 +0000]
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

18 years agoh_gethost_r-hold-fix-20060121
Jeffrey Altman [Sat, 21 Jan 2006 21:22:47 +0000]
h_gethost_r-hold-fix-20060121

fix hold errors

18 years agohost-cpu-20060120
Jim Rees [Fri, 20 Jan 2006 16:40:24 +0000]
host-cpu-20060120

Introduce @HOST_CPU@ and use it to find correct headers for FreeBSD build.

18 years agowindows-notes-20060120
Jeffrey Altman [Fri, 20 Jan 2006 06:22:46 +0000]
windows-notes-20060120

more notes for 1.4.1-rc5

18 years agocached-lookup-mtpt-20060120
Chaskiel M Grundman [Fri, 20 Jan 2006 05:19:47 +0000]
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

18 years agoaix-vm-rdwr-fix-20060120
Tom Keiser [Fri, 20 Jan 2006 05:05:35 +0000]
aix-vm-rdwr-fix-20060120

FIXES 25650

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

18 years agocmdebug-no-zero-pad-output-20060119
Derrick Brashear [Fri, 20 Jan 2006 00:00:18 +0000]
cmdebug-no-zero-pad-output-20060119

length, dv and refcnt no longer 0 padded

18 years agowindows-integrated-logon-hack-fix-for-proper-refcounts-20060119
Jeffrey Altman [Thu, 19 Jan 2006 23:07:50 +0000]
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.

18 years agobozo-log-fix-20060119
Jim Rees [Thu, 19 Jan 2006 16:57:07 +0000]
bozo-log-fix-20060119

don't fclose(NULL) (found by ober@linbsd.org)
fflush after printf instead of before
add missing trailing newline in WARNING message
consolidate the logic to make it clearer
make tdate bigger (26 chars plus '\0'; not sure this is needed)

18 years agofbsd-opts-20060118
Jim Rees [Wed, 18 Jan 2006 22:31:22 +0000]
fbsd-opts-20060118

add -mno-mmx -mno-3dnow -mno-sse -mno-sse2 to kernel cc flags

18 years agoifnet-flags-20060118
Jim Rees [Wed, 18 Jan 2006 16:03:28 +0000]
ifnet-flags-20060118

#define ifnet_flags to fix build on bsd

18 years agolinux-vrefcount-macro-fix-20060118
Derrick Brashear [Wed, 18 Jan 2006 06:26:15 +0000]
linux-vrefcount-macro-fix-20060118

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

18 years agolinux-kernel-bug-macro-inline-20060117
Derrick Brashear [Wed, 18 Jan 2006 02:21:00 +0000]
linux-kernel-bug-macro-inline-20060117

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

18 years agoregen-doc-20060117
Jim Rees [Tue, 17 Jan 2006 22:25:51 +0000]
regen-doc-20060117

slightly better documentation of regen.sh

18 years agowindows-truncate-after-lock-check-20060116
Jeffrey Altman [Tue, 17 Jan 2006 21:43:25 +0000]
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.

18 years agodarwin-use-kthreads-20060117
Chaskiel M Grundman [Tue, 17 Jan 2006 17:08:34 +0000]
darwin-use-kthreads-20060117

FIXES 25542

use kernel threads for afsd processes instead of forked pids

18 years agomacos-locking-behavior-20060117
Chaskiel M Grundman [Tue, 17 Jan 2006 17:05:31 +0000]
macos-locking-behavior-20060117

FIXES 25543

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

18 years agotiger-sysctl-20060117
Chaskiel M Grundman [Tue, 17 Jan 2006 16:06:56 +0000]
tiger-sysctl-20060117

FIXES 25327

implementation of sysctl for tiger

18 years agonewvcache-can-fail-now-20060116
Peter Somogyi [Tue, 17 Jan 2006 04:59:11 +0000]
newvcache-can-fail-now-20060116

FIXES 22260

allow newvcache to fail without ooping

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

18 years agowindows-afsmap-20060116
Jeffrey Altman [Tue, 17 Jan 2006 03:57:19 +0000]
windows-afsmap-20060116

strcpy -> strncpy