Commit Graph

3489 Commits

Author SHA1 Message Date
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
Jeffrey Altman
d921ee381a 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.
2006-01-17 21:43:25 +00:00
Chaskiel M Grundman
47d2ab2285 darwin-use-kthreads-20060117
FIXES 25542

use kernel threads for afsd processes instead of forked pids
2006-01-17 17:08:34 +00:00
Chaskiel M Grundman
b81d0cf8af macos-locking-behavior-20060117
FIXES 25543

F_UNLCK is send as a command, remap to F_SETLK like everyone else
2006-01-17 17:05:31 +00:00
Chaskiel M Grundman
ebf35c3f88 tiger-sysctl-20060117
FIXES 25327

implementation of sysctl for tiger
2006-01-17 16:06:56 +00:00
Peter Somogyi
c19324c857 newvcache-can-fail-now-20060116
FIXES 22260

allow newvcache to fail without ooping

sort of nasty, if you want more vcaches, say so.
2006-01-17 04:59:11 +00:00
Jeffrey Altman
4bb334ef6e windows-afsmap-20060116
strcpy -> strncpy
2006-01-17 03:57:19 +00:00
Chaskiel M Grundman
8d158c1b61 remove-dead-prototype-20060116
remove dead prototype for osi_iput()
2006-01-17 03:32:44 +00:00
Chaskiel M Grundman
93e1cee704 h-enumerate-r-fix-for-real-20060116
FIXES 24196

make this not simply wrong
2006-01-16 21:15:21 +00:00
Jeffrey Altman
f7b9cd54e5 windows-rx-ehostunreach-20060116
another location where EHOSTUNREACH can be returned
such that we can timeout the request immediately
2006-01-16 16:22:27 +00:00
Jeffrey Altman
880a6b66a5 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
2006-01-16 02:05:27 +00:00
Jeffrey Altman
9435d0e973 windows-ncb-error-strings-20060114
consolidate the use of NCB error strings in one place
2006-01-15 08:10:00 +00:00
Asanka Herath
36fd6d30cb windows-afsifs-20060114
minor style change
2006-01-15 08:04:59 +00:00
Jeffrey Altman
0a7b86c2bf windows-eventlog-20051219
More messages for the event log
2006-01-15 08:01:49 +00:00