Commit Graph

3489 Commits

Author SHA1 Message Date
Jeffrey Altman
3d1e5e29f7 windows-notes-20060216
1.5.0 development build
2006-02-17 15:35:38 +00:00
Chaskiel M Grundman
ca4fb5f2d0 darwin-lost-wakeups-20060213
eliminate the apparent lost wakeup problem in tiger
2006-02-17 15:22:24 +00:00
Klas Lindfors
79cfa471a7 viced-has-as-member-locking-20060217
FIXES 26967

A crucial line was missing from DELTA viced-fix-check-rights-race-20060213
2006-02-17 14:48:09 +00:00
Jeffrey Altman
532bc6e84c 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.
2006-02-16 22:06:02 +00:00
Jeffrey Altman
424ae50d1f 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.
2006-02-16 22:03:47 +00:00
Jeffrey Altman
1e3c9a9a47 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
2006-02-16 22:01:45 +00:00
Jeffrey Altman
cc0e245b7a windows-lock-testing-20060216
turn on the support for backing byte range lock allocations with
afs file server locks.
2006-02-16 21:59:19 +00:00
Jeffrey Altman
e1f4dd1c26 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.
2006-02-16 21:48:50 +00:00
Derrick Brashear
21e0734259 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
2006-02-15 21:01:49 +00:00
Chaskiel M Grundman
cee042e2f9 darwin-event-cleanup-20060215
clean up event resources added for deadlock avoidance
2006-02-15 20:53:02 +00:00
Derrick Brashear
90d681405a asetkey-macos-20060215
make the same fix we do on aklog w.r.t com_err
2006-02-15 16:38:33 +00:00
Derrick Brashear
de53b41333 darwin-ifnet-flags-20060215
darwin (8.0) already has this
2006-02-15 16:32:42 +00:00
Jeffrey Altman
658338b015 windows-reg-fix-20060215
cleanup the back connection hostname code
2006-02-15 16:31:15 +00:00
Chaskiel M Grundman
33d58440d1 darwin80-mkdir-error-leak-fix-20060215
avoid a potential refcount decrement "leak" (well, the opposite, really) when a mkdir fails
2006-02-15 07:01:40 +00:00
Adam Megacz
f3137f9efc macos-dynroot-start-anyway-20060214
start afsd if -dynroot specified
2006-02-15 00:37:28 +00:00
Adam Megacz
0ef6661fdc macos-afsdb-20060214
enable afsdb by default
2006-02-15 00:33:45 +00:00
Chaskiel M Grundman
848ed685c1 lookup-checkcode-bulkstats-20060214
do error code analysis on bulkstat results also
2006-02-14 20:32:45 +00:00
Jim Rees
3828c257ae dead-code-and-prototyes-20060214
Remove dead code and add prototypes.
2006-02-14 16:58:13 +00:00
Jeffrey Altman
44514e9516 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.
2006-02-14 14:03:17 +00:00
Jeffrey Altman
328544bd38 windows-notes-20060214
updates
2006-02-14 13:25:10 +00:00
Chaskiel M Grundman
b4fdd2ec6f remove-recursive-vfs-getcontext-20060213
remove unused code
2006-02-13 18:51:55 +00:00
Derrick Brashear
63031c0b8b 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
2006-02-13 18:38:37 +00:00
Derrick Brashear
0f9a5e3ad8 revert-bkg-disable-var-20060213
remove the bkg daemon disabling
2006-02-13 18:29:26 +00:00
Jeffrey Altman
6c7a2901b0 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.
2006-02-13 17:09:36 +00:00
Jeffrey Altman
bfdc909b54 windows-findacl-optimize-20060213
don't remove an entry from the queue and add it to the head if it already
is the head.
2006-02-13 16:33:49 +00:00
Jeffrey Altman
8a6bfc54e5 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.
2006-02-13 16:28:59 +00:00
Jeffrey Altman
d9d798f786 windows-off-to-the-races-20060211
several race conditions were introduced over the last couple of weeks.
let's fix them.
2006-02-12 06:25:37 +00:00
Jeffrey Altman
81cfded7db windows-vcp-fidsp-empty-20060210
protect against the case in which the vcp->fidsp list is empty
which de-queuing smb_fid_t objects
2006-02-10 18:43:22 +00:00
Jeffrey Altman
0c77d5332d 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.
2006-02-10 17:10:44 +00:00
Jeffrey Altman
d2de9e69bc viced-log-typo-20060210
missing % in format string causes crash at log level 125
2006-02-10 17:07:43 +00:00
Derrick Brashear
3416916228 viced-debug-port-numbers-20060210
fix port number printing to not print byteswapped port numbers
2006-02-10 16:49:37 +00:00
Jeffrey Altman
4b3c120e8e windows-afslogon-20060209
replace sizeof(opt) with sizeof(LogonOption_t)

add more debug statements
2006-02-09 15:28:56 +00:00
Jeffrey Altman
e4c21e9c6f 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.
2006-02-07 07:46:55 +00:00
Jeffrey Altman
6909509eca viced-more-dbg-improvements-20060207
convert the rest of the addresses output in hex to dotted notation
2006-02-07 06:04:34 +00:00
Jim Rees
da0f2fdeca no-global-sunlock-20060206
Don't use global_sunlock on OpenBSD unless running smp kernel
2006-02-06 17:18:12 +00:00
Jeffrey Altman
77de32ed74 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.
2006-02-06 07:06:33 +00:00
Chaskiel M Grundman
f504df3175 darwin-avoid-bogus-name-caching-20060205
FIXES 26225

avoid the possibility of creating bogus cached named vnodes
2006-02-05 18:21:51 +00:00
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