3602 Commits

Author SHA1 Message Date
Jeffrey Altman
3da66f2698 windows-mountpoints-20060205
* if the mountpointstring is empty, return No Such Path; do not panic
2006-02-05 17:45:34 +00:00
Jeffrey Altman
18e7ef272a windows-afslogon-20060205
* AFS_Logoff_Event must destroy tokens even if integrated logon is not
   being used unless LogoffPreserveTokens is non-zero
2006-02-05 17:44:41 +00:00
Jeffrey Altman
f213588374 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
2006-02-05 07:44:50 +00:00
Jeffrey Altman
22b02189ec 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
2006-02-03 23:21:04 +00:00
Jeffrey Altman
04c3d3cc39 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
2006-02-02 21:47:37 +00:00
Jeffrey Altman
57d3a8b721 windows-more-cleanup-20060201
missed one case where the vcpCounter wrapped fids at 0
2006-02-01 18:28:58 +00:00
Chaskiel M Grundman
40d1b796c1 bkg-disable-var-20060202
don't extern this
2006-02-02 08:27:16 +00:00
Jeffrey Altman
8b39114d5b 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
2006-02-01 18:02:29 +00:00
Tom Keiser
3aa14478bf aix-prototyping-fixes-20060201
FIXES 26102

fix some prototypes and enable prototype enforcement for aix
2006-02-01 16:20:07 +00:00
Tom Keiser
73f52f37e4 osi-audit-locking-fix-20060201
FIXES 25955

fix aix builds
2006-02-01 16:09:01 +00:00
Jeffrey Altman
ecb9da5839 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
2006-02-01 15:58:30 +00:00
Jeffrey Altman
bceabce849 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.
2006-01-31 09:13:11 +00:00
Ken Hornstein
fbdd66aeef merge-up-fixes-rxtcp-20060130
Merge in fixes to up from the rxtcp branch.
2006-01-30 22:11:40 +00:00
Chaskiel M Grundman
2e76a2450e simple-darwin-disable-bkg-20060128
avoid potential hang by disabling bkg daemons on 10.4 for now
2006-01-28 19:20:44 +00:00
Chaskiel M Grundman
29277d96bf newvcache-dont-spin-20060128
make things so newvcache won't spin
2006-01-28 18:06:06 +00:00
Chaskiel M Grundman
bb576b462d reclaim-defered-flush-fixes-20060128
fix side effect of reclaim lookaside
2006-01-28 18:02:40 +00:00
Derrick Brashear
90ceee2d37 up-cleanup-20060126
FIXES 25863

subsumes todd's fix
2006-01-26 21:24:39 +00:00
Tom Keiser
a6a330b360 osi-panic-revert-to-kandr-20060126
FIXES 25924

avoid prototype issue for now
2006-01-26 20:34:50 +00:00
Chas Williams
78835720e0 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.
2006-01-26 18:55:18 +00:00
Jim Rees
42f24a53f5 remove-spurious-var-20060126
Remove unused local variable "lock".
2006-01-26 18:13:06 +00:00
Jim Rees
1fb654e0c0 cast-pointer-20060126
Cast pointer to long for printf.
"%p" would be a better fix, but is it supported on all platforms?
2006-01-26 18:11:23 +00:00
Derrick Brashear
532147e455 macos-avoid-reclaim-hang-20060124
FIXES 25686

based on chaskiel's suggestion, implement a lookaside reclaim list
2006-01-26 16:03:03 +00:00
Chas Williams
f84de8044a more-rxglock-cleanup-20060126
FIXES 23321

more rx glock cleanup. eval for pullup after 1.4.1
2006-01-26 16:00:34 +00:00
Chas Williams
c7df78fd7f linux26-build-update-20060126
FIXES 25879

KBUILD_BASENAME will need to be set in 2.6.15 and later for configure to work usefully
2006-01-26 15:56:41 +00:00
Tom Keiser
27c42be1b9 ukernel-rx-knet-deref-20060126
FIXES 25927

pass correct parameter to avoid type mismatch
2006-01-26 15:52:37 +00:00
Derrick Brashear
ad86f80fc2 sol10-vnode-cleanup-20060126
Because we use a private pool of vnodes, it's up to us to trigger cleanup.
here we do so.
2006-01-26 15:49:05 +00:00
Jim Rees
9352092dfd regen-no-doc-noise-20060125
Don't say we're building man pages if we're not.
2006-01-25 19:44:15 +00:00
Russ Allbery
6eb9f473ad 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.
2006-01-25 05:59:38 +00:00
Derrick Brashear
1649de2234 macos-avoid-reclaim-hang-20060124
FIXES 25686

based on chaskiel's suggestion, implement a lookaside reclaim list
2006-01-25 04:45:00 +00:00
Jeffrey Hutzelman
179b4c31d9 release-avoid-negative-time-20060124
avoid any possibility of time going negative when releasing incrementally
2006-01-25 03:49:25 +00:00
Derrick Brashear
feccc2a987 implement-vpeek-for-listvol-20060124
roll back for listonevolume (only)
2006-01-25 03:24:25 +00:00
Chas Williams
1c53d7f34d usebuffer-macros-20060124
FIXES 25819

get rid of usebuffers macro usage warning
2006-01-24 17:40:11 +00:00
Jeffrey Altman
97304b84f7 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
2006-01-24 23:22:00 +00:00
Chaskiel M Grundman
4a5dda8417 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.
2006-01-23 21:23:16 +00:00
Jeffrey Altman
ff40c87da3 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.
2006-01-23 21:13:19 +00:00
Derrick Brashear
db98b697fe fs-getfid-20060123
add a fs subcommand to get a fid
2006-01-23 21:04:31 +00:00
Jeffrey Altman
7fde756a2c 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
2006-01-21 21:37:04 +00:00
Jeffrey Altman
96100b6dea h_gethost_r-hold-fix-20060121
fix hold errors
2006-01-21 21:22:47 +00:00
Jim Rees
5790bf7cd0 host-cpu-20060120
Introduce @HOST_CPU@ and use it to find correct headers for FreeBSD build.
2006-01-20 16:40:24 +00:00
Jeffrey Altman
1afcbc9441 windows-notes-20060120
more notes for 1.4.1-rc5
2006-01-20 06:22:46 +00:00
Chaskiel M Grundman
a784c13170 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
2006-01-20 05:19:47 +00:00
Tom Keiser
f3a7aabbc5 aix-vm-rdwr-fix-20060120
FIXES 25650

avoid a loop in vm_rdwr on aix. also fix ifnet_flags macro
2006-01-20 05:05:35 +00:00
Derrick Brashear
e367b6934d cmdebug-no-zero-pad-output-20060119
length, dv and refcnt no longer 0 padded
2006-01-20 00:00:18 +00:00
Jeffrey Altman
70b76b3a1c 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.
2006-01-19 23:07:50 +00:00
Jim Rees
5832d839f5 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)
2006-01-19 16:57:07 +00:00
Jim Rees
5112c06e8a fbsd-opts-20060118
add -mno-mmx -mno-3dnow -mno-sse -mno-sse2 to kernel cc flags
2006-01-18 22:31:22 +00:00
Jim Rees
f59f69ea9f ifnet-flags-20060118
#define ifnet_flags to fix build on bsd
2006-01-18 16:03:28 +00:00
Derrick Brashear
0806f60ab8 linux-vrefcount-macro-fix-20060118
thanks to jhutz@cmu.edu for making me consider this
2006-01-18 06:26:15 +00:00
Derrick Brashear
93efc4ae47 linux-kernel-bug-macro-inline-20060117
force oops inline instead of calling bug, so we can printk
2006-01-18 02:21:00 +00:00
Jim Rees
a02c04684d regen-doc-20060117
slightly better documentation of regen.sh
2006-01-17 22:25:51 +00:00