2997 Commits

Author SHA1 Message Date
Chaskiel M Grundman
07cef953c3 STABLE14-remove-dead-prototype-20060116
remove dead prototype for osi_iput()


(cherry picked from commit 8d158c1b615ec2625756b8f124a9eaff94a67799)
2006-01-17 03:33:41 +00:00
Chaskiel M Grundman
85edef5b61 STABLE14-h-enumerate-r-fix-for-real-20060116
FIXES 24196

make this not simply wrong


(cherry picked from commit 93e1cee7046984a81f0339484713649aceb25f3a)
2006-01-16 21:16:33 +00:00
Jeffrey Altman
26c7361f2b STABLE14-windows-rx-ehostunreach-20060116
another location where EHOSTUNREACH can be returned
such that we can timeout the request immediately


(cherry picked from commit f7b9cd54e50e553486c2ad850df1a8ecaee0d954)
2006-01-16 16:23:33 +00:00
Jeffrey Altman
0eeab1d675 STABLE14-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


(cherry picked from commit 880a6b66a5477e092d5bb74febbf24639d786c64)
2006-01-16 02:06:58 +00:00
Jeffrey Altman
cdd514a350 STABLE14-windows-cmfinduserbyname-20060112
FIXES 25347

Fix invalid access after freeing newly allocated data structure


(cherry picked from commit af202cac551ad541a0a1ca4525b03c2ec05f6507)
2006-01-12 05:55:58 +00:00
Chas Williams
a74a50e10a STABLE14-linux-clean-up-stupidity-20060111
get some of an inadvertant misapplied patch, and get rid of a redundant check


(cherry picked from commit 3e8b96cfc4596c3e9c6c3802c1bdca1784f86271)
2006-01-11 21:38:30 +00:00
Jeffrey Altman
d8bc561755 STABLE14-afs-sysnames-20060110
move allocations for SYS_NAME_ID_amd64_w2k and  SYS_NAME_ID_i64_w2k to avoid
conflicts


(cherry picked from commit fb6d1dacfc256386f32f59fe4335b546a7d368c3)
2006-01-11 04:47:10 +00:00
Derrick Brashear
391c1eaaf0 STABLE14-openafs-stable-1_4_1-rc4-20060110
make 1.4.1-rc4
2006-01-11 04:36:10 +00:00
Chaskiel M Grundman
a699f8d3c1 STABLE14-macos-avoid-ref-leak-20060110
FIXES 25302

fix for the earlier fix


(cherry picked from commit ab7cfe62ec128b1205193ede1c769ddb369cc563)
2006-01-11 04:26:44 +00:00
Chaskiel M Grundman
8dcdef73e4 STABLE14-macos-reclaim-20060110
FIXES 25165

avoid a vnode cleaning pnaic during recycle


(cherry picked from commit 29924c8302431a25d4889ef4500fc5f0eeb97b2e)
2006-01-11 04:24:39 +00:00
Derrick Brashear
fb0850a382 STABLE14-remove-vnop-mem-leak-20060110
avoid leaking mvid when we use .__afsXXXX renaming in remove


(cherry picked from commit 8a1d347b2e129a6085fb605f706917d88aa054b7)
2006-01-10 15:11:08 +00:00
Derrick Brashear
43de10c9cb STABLE14-remove-vnop-lock-order-20060110
FIXES 25118

finegrained dcache lock order not obeyed


(cherry picked from commit 39b23a0dc16f2e26abf3b7df53bfadb98377748d)
2006-01-10 15:04:40 +00:00
Jeffrey Altman
29a68de93b STABLE14-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.


(cherry picked from commit a9df3ca715f483a31c14b72bae3f548a4c9291d4)
2006-01-10 13:28:01 +00:00
Jeffrey Altman
d06884e28b STABLE14-windows-version-20060108
1.4.1-rc4 == 1.4.0094
2006-01-09 05:36:52 +00:00
Jeffrey Altman
27f8315f8e STABLE14-windows-relnotes-20060108
updates 1.4.1-rc4
2006-01-09 05:29:23 +00:00
Asanka Herath
8f65c99214 STABLE14-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.


(cherry picked from commit 78c40badbd8c65d82f6c384fdff8056c03100b67)
2006-01-09 04:49:17 +00:00
Jeffrey Altman
5b7d5d3d08 STABLE14-windows-byte-range-locks-fix-20060107
fix the SERVERLOCKS_ENABLED macro


(cherry picked from commit 36596b93e0b45cb1074b554e57c5f71171350f62)
2006-01-08 04:18:53 +00:00
Jeffrey Altman
395170a5a0 STABLE14-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


(cherry picked from commit f057d9515c72609e4ca9e51ff96f658689679497)
2006-01-08 00:39:56 +00:00
Derrick Brashear
76c8adf14b STABLE14-macos-104-change-access-enforcement-20060105
don't improperly enforce read attribute restriction on child instead of parent
when it's a directory

avoid screwing ourselves on mode 0 files, also


(cherry picked from commit e07a781b20272a629f73cf8b2377ee8e3bd6cd99)
2006-01-06 03:03:26 +00:00
Russ Allbery
94dcb452cb STABLE14-retire-cat-pages-20051213
These can go now that we have POD versions of, in most cases, newer
versions of the same documentation.


(cherry picked from commit 5d2b5780c463af51ffa264386daff210c633263f)
2006-01-05 18:48:34 +00:00
Derrick Brashear
5382115a04 STABLE14-openafs-1_4_1-rc3-20060105
make 1.4.1-rc3
2006-01-05 06:24:39 +00:00
Chaskiel M Grundman
7d81ee9430 STABLE14-macos-vnode-get-fixes-20060105
The afs_pioctl.c change should fix a real crash (panic), but fs flushv isn't
that common an operation.
Other changes:
don't GUNLOCK() around vnode_get(). we weren't consistent about it, and it
doesn't appear to be strictly required.
handle vnode_get() failures in more cases
darwin_vn_hold will panic if vnode is terminating rather than mess up the
refcounts.


(cherry picked from commit 8b015a5e325b52969203d0647f67945ab7e402cc)
2006-01-05 05:57:55 +00:00
Jeffrey Altman
caf431b641 STABLE14-windows-version-20060104
1.4.1-rc3 == 1.4.0093
2006-01-05 04:43:40 +00:00
Asanka Herath
7121e5295f STABLE14-windows-vista-wix-install-20051230
Update the MSI to install the network provider without impersonation


(cherry picked from commit 40f151f5c47460927bcaa5b5a631057ae72790ad)
2005-12-30 22:41:49 +00:00
Jeffrey Altman
005f708a83 STABLE14-windows-process-detach-20051227
The procmgmt library replaces the C RunTime Library's signal handlers
but does not restore them on process detachment.  This leaves the
process with signal handlers pointing to invalid code that generates
an invalid access error during process termination if the library
was previously unloaded.


(cherry picked from commit 3875eec844609443710d3b98a2ac795d7f2d9121)
2005-12-27 16:18:53 +00:00
Chas Williams
d3babf4aa8 STABLE14-solaris-uniqtime32-20051223
FIXES 24445

afs really wants the 32 bit timeval/uniqtime stuff


(cherry picked from commit 5a238125533fc826e3e39250fbc02e59bf352ec4)
2005-12-24 01:09:52 +00:00
Chaskiel M Grundman
cc05eea7a0 STABLE14-darwin-dnlc-cache-purge-20051223
FIXES 22644

cache_purge() to hint to darwin that we changed something instead of letting it cache invalid data


(cherry picked from commit 518bebb032c410a520a8923a16263e605370d60c)
2005-12-24 00:29:11 +00:00
Chaskiel M Grundman
48d58aa4a6 STABLE14-tiger-fixes-20051215
potential reclaim in progress fix, and per Chaskiel,
"I don't remember why I put it there, but the fact that
it gets triggered means that we're leaking a vcache object lock. It looks
like the "rename to .__afsXXXX" codepath is responsible (as afsrename does
not use the fact that adp (or aodp) is locked by afs_remove, and locks it
again. I'm surprised it's not deadlocking)" so i coded up a fix

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

chaskiel says
The RHS shouldn't be a double negative...
       There's no bug (other than the assert itself)


(cherry picked from commit 97ebc776712b455b1e85df598b61ba6c847ca0a6)
2005-12-24 00:21:45 +00:00
Chaskiel M Grundman
36b5ae8ba5 STABLE14-darwin-lost-wakeups-20051223
FIXES 24492

rewrite for tiger to avoid losing wakeups


(cherry picked from commit 856f5288e761e9dfaf720eb38a9bd4e7a053cb0d)
2005-12-24 00:10:02 +00:00
Björn Torkelsson
701b5e043e STABLE14-linux-writepage-rename-20051218
The ocfs2 patch renames WRITEPAGE_ACTIVE to AOP_WRITEPAGE_ACTIVE, and
Ubuntu has applied that patch to their version of the kernel.  Allow for
either.


(cherry picked from commit 37147a406e5a44d762c976773d7f3bd01154460a)
2005-12-19 03:29:58 +00:00
Jeffrey Altman
3765a95183 STABLE14-windows-no-fds-20051217
when collecting rx statistics in response to an RPC query, the rx library
attempts to enumerate the number file descriptors in use.  This is fine
except that file descriptors are a C Run Time Library concept on Windows
and are not related to networking.  In Visual Studio 8, the run time library
will assert() if an invalid file descriptor is passed to fstat() which is
the test used to determine if a file descriptor is valid.

This patch simply returns 0 for the number of file descriptors in use
because that is what would have been returned anyway with the existing
code.  What we probably want to return is the number of open socket
handles.


(cherry picked from commit 8c3cf4b89445d969c9f85e929d5e030f53773f81)
2005-12-17 17:28:31 +00:00
Jeffrey Altman
bc0c902792 STABLE14-viced-multiple-ports-per-client-20051208
this patch replaces the single address in the Interface structure
with an AddrPort structure.  This enables the servers to send
messages to the correct port if the port on the Interface does not
match the port stored in the client itself.


(cherry picked from commit 71f9628a437e0ac7b9b9754d71c06ca5c3408061)
2005-12-16 13:29:38 +00:00
Jeffrey Hutzelman
a1c8cad6ef STABLE14-vos-restore-parent-id-patch-20051215
avoid making broken readonlies when when you restore them


(cherry picked from commit e5c8042e72a077bfcb05232c918995e9e965b7c2)
2005-12-16 04:26:40 +00:00
Chas Williams
a28a2ba052 STABLE14-linux-dentry-multiple-mounts-20051215
avoid triggering BUG() when a volume is multiply mounted


(cherry picked from commit 1fe17bc36513fffe745df2445754a19d3c0f9863)
2005-12-16 03:37:23 +00:00
Tom Keiser
348aaa7128 STABLE14-freedatabufs-mark-free-20051215
avoid an error with marking data packets free


(cherry picked from commit 914ac9204801982e1b1b9e827a92cd519ef18bfd)
2005-12-16 03:33:08 +00:00
Tom Keiser
e1af3105de STABLE14-multibreak-rework-avoiding-race-20051215
avoid a potential race finding the correct connection during
MultiBreakCallBack_r


(cherry picked from commit b34223345b07b16008e3b4253c2572bea25fca55)
2005-12-16 03:29:18 +00:00
Rainer Toebbicke
4ac384dde6 STABLE14-rx-osi_alloc-prototype-20051215
FIXES 24267

must provide prototype for osi_Alloc() on systems with 64-bit pointers
and 32-bit int


(cherry picked from commit d00359b24139753b8f6a62c6a9137c8f8ccd3b7e)
2005-12-15 15:16:45 +00:00
Rainer Toebbicke
98feefa7ab STABLE14-rx-osi_alloc-prototype-20051214
FIXES 24267

include rx.h in order to safely include rx_prototypes.h in order
to obtain a prototype for osi_Alloc() in order to prevent pointer
truncation on systems with 64-bit pointers and 32-bit int.


(cherry picked from commit f75b0075a79807eaae4e071ea4d0f3bd60d7f547)
2005-12-15 05:57:12 +00:00
Jeffrey Altman
f9c98f804e STABLE14-windows-rpc-warning-20051214
If osi_InitDebug() fails due to RPC_S_NO_PROTSEQS, log to the afsd_init.log
file a warning indicating that the registry should be examined for a
misconfiguration of Windows.


(cherry picked from commit 8204b5968c0181e094f8369b94c5a4cf1a9de04a)
2005-12-14 05:33:46 +00:00
Jeffrey Altman
9e7ae6f02d STABLE14-windows-fs-setserverpref-vldb-20051214
prevent a panic condition if "fs setserverprefs -vlserver" is executed
more than once before the vlserver is associated with a cell.


(cherry picked from commit b99bd38da60f374a03382090fdaae906a00c8428)
2005-12-14 05:30:53 +00:00
Tracy Di Marco White
8fe768d5be STABLE14-netbsd-statvfs-20051211
FIXES 22905

NetBSD 2.1 doesn't have statvfs, but the version numbering scheme changed
so the test was getting this wrong.


(cherry picked from commit cd6e2b99298bbb12d09b92b6b86de7f811f4e803)
2005-12-11 19:00:19 +00:00
Jim Rees
31f8e23349 STABLE14-libafssetpag-bsd-20051101
bsd only:
make a real syscall.o (but with no code)
build libafssetpag


(cherry picked from commit eb39935d4b3bdad5ee64afa0b50deea09a18333c)
2005-12-11 06:34:33 +00:00
Chas Williams
35fabe1f37 STABLE14-linux-srcdir-mapfile-20051210
FIXES 23317

Look for the shared library mapfile in ${srcdir} on Linux to allow for out
of srcdir builds.


(cherry picked from commit 77d0369d3bdeab78b02f306644ddb6133e1a1484)
2005-12-10 18:45:39 +00:00
Jeffrey Altman
61f9832c38 STABLE14-windows-afsd-service-20051121
improvements to VNOVNODE fix
2005-12-07 12:02:41 +00:00
Derrick Brashear
c106b5ffe6 STABLE14-linux-26-390x-update-20051201
add linux26 version for symlinks


(cherry picked from commit 78bc041fe6349136bf186e90a727566892584210)
2005-12-01 15:19:38 +00:00
Derrick Brashear
cfe30b16fa STABLE14-macos-103-20051201
last fixes i swear


(cherry picked from commit 49f0f7bb0ee04b6f80a4f84dbfd00dbf8f274ac2)
2005-12-01 07:37:21 +00:00
Derrick Brashear
9c5b505ed9 STABLE14-macos103-20051201
one more fix


(cherry picked from commit 3cccddb31f04deefbc20a52f95aabfa9e12853e5)
2005-12-01 05:43:14 +00:00
Derrick Brashear
13592e7fc6 STABLE14-macos-103-packaging-20051201
fix packaging script for 10.3


(cherry picked from commit 72e221c0c164557d4eac98d982370ca925085f96)
2005-12-01 05:19:49 +00:00
Russ Allbery
083d886768 STABLE14-shlibafssetpag-20051015
FIXES 18745

implement {sh,}libafssetpag
2005-12-01 05:16:31 +00:00
Derrick Brashear
ae198065fc STABLE14-volume-callback-fix-20051201
fix rainer toebbicke's callbacks vanishing issue. this was probably my fault merging


(cherry picked from commit 05db09ada10f83666a8d46e734d26656e99397f2)
2005-12-01 05:10:55 +00:00