openafs.git
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

18 years agoremove-dead-prototype-20060116
Chaskiel M Grundman [Tue, 17 Jan 2006 03:32:44 +0000]
remove-dead-prototype-20060116

remove dead prototype for osi_iput()

18 years agoh-enumerate-r-fix-for-real-20060116
Chaskiel M Grundman [Mon, 16 Jan 2006 21:15:21 +0000]
h-enumerate-r-fix-for-real-20060116

FIXES 24196

make this not simply wrong

18 years agowindows-rx-ehostunreach-20060116
Jeffrey Altman [Mon, 16 Jan 2006 16:22:27 +0000]
windows-rx-ehostunreach-20060116

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

18 years agowindows-vc-locks-and-more-20060115
Jeffrey Altman [Mon, 16 Jan 2006 02:05:27 +0000]
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

 * add new event log entries for unexpected session closures and
   send packet failures

18 years agowindows-ncb-error-strings-20060114
Jeffrey Altman [Sun, 15 Jan 2006 08:10:00 +0000]
windows-ncb-error-strings-20060114

consolidate the use of NCB error strings in one place

18 years agowindows-afsifs-20060114
Asanka Herath [Sun, 15 Jan 2006 08:04:59 +0000]
windows-afsifs-20060114

minor style change

18 years agowindows-eventlog-20051219
Jeffrey Altman [Sun, 15 Jan 2006 08:01:49 +0000]
windows-eventlog-20051219

More messages for the event log

18 years agosparc64-linux-typo-20060114
Russ Allbery [Sat, 14 Jan 2006 08:19:19 +0000]
sparc64-linux-typo-20060114

XLDFLAGS64, not XLDFLAG64.

18 years agosparc64-linux-20060113
Troy Benjegerdes [Sat, 14 Jan 2006 08:00:01 +0000]
sparc64-linux-20060113

Hopefully fix sparc64 Linux support with 2.6 kernels.

18 years agowindows-lock-data-versions-20060112
Asanka Herath [Thu, 12 Jan 2006 18:45:16 +0000]
windows-lock-data-versions-20060112

Add a lockDataVersion field to cm_scache_t.  This data version is
compared to the cm_scache_t dataVersion field in the following
circumstances:

 * lock upgrades from read to write in which the lock must be released
   given current file server rpcs

 * lock downgrades from write to read in which the lock must be released
   given current file server rpcs

 * lost locks due to network disconnect.  if the data version has not
   changed then re-obtaining the lock is safe to do

18 years agowindows-cmfinduserbyname-20060112
Jeffrey Altman [Thu, 12 Jan 2006 05:54:23 +0000]
windows-cmfinduserbyname-20060112

FIXES 25347

Fix invalid access after freeing newly allocated data structure

18 years agolinux-clean-up-stupidity-20060111
Chas Williams [Wed, 11 Jan 2006 21:37:06 +0000]
linux-clean-up-stupidity-20060111

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

18 years agoafs-sysnames-20060110
Jeffrey Altman [Wed, 11 Jan 2006 04:44:49 +0000]
afs-sysnames-20060110

move allocations for SYS_NAME_ID_amd64_w2k and  SYS_NAME_ID_i64_w2k to avoid
conflicts

18 years agomacos-reclaim-20060110
Chaskiel M Grundman [Wed, 11 Jan 2006 04:23:22 +0000]
macos-reclaim-20060110

FIXES 25165

avoid a vnode cleaning pnaic during recycle

18 years agomacos-avoid-ref-leak-20060110
Chaskiel M Grundman [Wed, 11 Jan 2006 04:21:11 +0000]
macos-avoid-ref-leak-20060110

FIXES 25302

fix for the earlier fix

18 years agoremove-vnop-mem-leak-20060110
Derrick Brashear [Tue, 10 Jan 2006 15:09:55 +0000]
remove-vnop-mem-leak-20060110

avoid leaking mvid when we use .__afsXXXX renaming in remove

18 years agoremove-vnop-lock-order-20060110
Derrick Brashear [Tue, 10 Jan 2006 15:03:26 +0000]
remove-vnop-lock-order-20060110

FIXES 25118

finegrained dcache lock order not obeyed

18 years agowindows-smb-username-refcount-20060110
Jeffrey Altman [Tue, 10 Jan 2006 13:26:41 +0000]
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.

18 years agowindows-tests-winflock-20060108
Asanka Herath [Mon, 9 Jan 2006 05:44:19 +0000]
windows-tests-winflock-20060108

Updates to locking tests

18 years agowindows-byte-range-locking-20060108
Asanka Herath [Mon, 9 Jan 2006 04:43:36 +0000]
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.

18 years agowindows-byte-range-locks-fix-20060107
Jeffrey Altman [Sun, 8 Jan 2006 04:17:18 +0000]
windows-byte-range-locks-fix-20060107

fix the SERVERLOCKS_ENABLED macro

18 years agowindows-enable-byte-range-locking-20060107
Jeffrey Altman [Sun, 8 Jan 2006 00:42:52 +0000]
windows-enable-byte-range-locking-20060107

re-enable byte range locking

18 years agowindows-byte-range-locking-20060107
Jeffrey Altman [Sun, 8 Jan 2006 00:38:32 +0000]
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