3936 Commits

Author SHA1 Message Date
Derrick Brashear
fa6683d81a DEVEL15-afsdb-resolver-reinit-20061228
as reported by Adam Megacz, but my own version of the fix


(cherry picked from commit fe649aac819839d84e6cecdbccdc5becc36fa968)
2006-12-28 20:37:21 +00:00
Derrick Brashear
4af968426a DEVEL15-macos-installer-fix-20061227
make the installer build correctly again


(cherry picked from commit c454508d396fd361565f5e62da4ded7c735f5074)
2006-12-27 15:49:02 +00:00
Jeffrey Altman
0b80c0547b DEVEL15-windows-notes-20061226
more notes for 1.5.13
2006-12-26 20:31:40 +00:00
Jeffrey Altman
5dd0db13fe DEVEL15-windows-version-20061226
1.5.1301 == 1.5.13
2006-12-26 20:28:32 +00:00
Jeffrey Altman
e812ef26a6 DEVEL15-windows-server-config-20061226
Reformat the entire directory.

Add Freelance mode awareness.

Map the root.afs volume starting from Z: and work down.


(cherry picked from commit 2a9d3e91d0edd9e5afe43793bf8ced5dd6b2701a)
2006-12-26 20:22:28 +00:00
Jeffrey Altman
0b4090a7c5 DEVEL15-windows-optimize-smb-dir-search-if-no-wildcard-20061226
fix the computation of the ShortName.  Take into account the network
byte order of the cm_dirFid_t fields.

send error packets from within the function as needed.  do not return
the error to the caller.


(cherry picked from commit 432bede1e52245b6565c8970e96ee83c14e135fc)
2006-12-26 20:18:30 +00:00
Derrick Brashear
9dbff7b232 DEVEL15-bosserver-avoid-bosconfig-truncation-20061221
why the heck would it be a good idea to rewrite the BosConfig while we are starting, exactly?

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

why the heck would it be a good idea to rewrite the BosConfig while we are start
ing, exactly?


(cherry picked from commit b2601916f6b3a95d5adcaf0091232acc759870df)
2006-12-22 06:48:50 +00:00
Derrick Brashear
1015890346 DEVEL15-split-cache-update-20061220
move closer to 1.4 implementation esp when split cache is turned off


(cherry picked from commit 04208276307d407c3e14828e6c8402345f6c0592)
2006-12-20 21:18:11 +00:00
Dale Ghent
239d541ee9 DEVEL15-solaris10-avoid-direct-cred-access-20061220
avoid a panic after we muck with groups by being less evil


(cherry picked from commit c1c2a80c1bc34b23507bf80a6fb12a672c94097c)
2006-12-20 20:08:32 +00:00
Jeffrey Altman
0e7766b1c2 DEVEL15-windows-afslogon-20061219
Initialize Winsock from within afslogon.c so that ka_UserAuth will
work again.


(cherry picked from commit ea60a4dd395d0b14db1da2e5fec7d8dea48b2e70)
2006-12-19 17:56:30 +00:00
Derrick Brashear
d7d14e4821 DEVEL15-openafs-1-5-13-20061218
make 1.5.13
2006-12-19 04:55:13 +00:00
Hartmut Reuter
ffaa6a86a3 DEVEL15-volser-dumpstuff-20061218
FIXES 46937

"vos release" per default does an incremental dump.
volser-dump-validate-input-20060417 ends up with keeping dead vnodes and
data in the remote RO-volume.  This patch corrects the behavior for
RO-volumes.

See ticket for extensive discussion.


(cherry picked from commit 7a2d34be17d3ea1a24ab1362698de212c7d8008d)
2006-12-19 04:50:46 +00:00
Derrick Brashear
73b0df6cf6 DEVEL15-kernel-endianness-test-fix-20061218
FIXES 47893

ok, so, when we're in the kernel, do something


(cherry picked from commit d229d72fa7719b947460674cdba203aab0c2a548)
2006-12-19 04:31:30 +00:00
Derrick Brashear
e1ec5fff5c DEVEL15-openafs-kernel-src-fix-20061218
FIXES 44573

ok, so, we need to emit Makefile.version when we build openafs-kernel


(cherry picked from commit 8a7e66fb28b96888eeb9c36d27b855caa178566f)
2006-12-19 04:20:09 +00:00
Jeffrey Altman
558e5837f0 DEVEL15-volser-undo-cleanup-20061218
uncommit an inappropriate commit

  DELTA volser-cleanup-xx-20061128


(cherry picked from commit 13cc6c5c376878f0ebbe86cae1fa2849d0aafd2f)
2006-12-19 03:42:21 +00:00
Derrick Brashear
e5371b9157 DEVEL15-rx-globals-avoid-INIT-reuse-20061218
FIXES 45515

avoid calling our macro INIT


(cherry picked from commit acca80fd673b2d4bbf39dec6231d08f2373f518e)
2006-12-19 03:19:08 +00:00
Jeffrey Hutzelman
fc08290445 DEVEL15-volume-dont-artificially-untimeout-vlservers-20061218
FIXES 48959

remove synthetic event to undo timeouts of vlservers we "haven't talked to yet"


(cherry picked from commit c4adc63872d720b43d2ff99fd780046a4ba9883b)
2006-12-19 02:34:05 +00:00
Chas Williams
dc7093b8ce DEVEL15-linux-osi-cred-pool-byebye-20061218
ok, unneeded abstraction removed.


(cherry picked from commit 01c0e029f7eea96f2892df9dd570f019660cfd8b)
2006-12-19 02:29:39 +00:00
Jeffrey Altman
ac0bf268cd DEVEL15-windows-afslogon-20061218
test for the existence of the mutex and not the bInit flag
during the DLL attach


(cherry picked from commit 8a1debde84c7bacb103bb1a9c3d82a1f352f441f)
2006-12-18 23:57:04 +00:00
Jeffrey Altman
fa9b572a07 DEVEL15-windows-notes-20061218
updates for 1.5.13
2006-12-18 23:40:25 +00:00
Jeffrey Altman
3f6982c472 DEVEL15-windows-version-20061218
1.5.1300 == 1.5.13
2006-12-18 23:31:25 +00:00
Jeffrey Altman
c21725d4b7 DEVEL15-windows-release-notes-20061218
update information on afs server installs for 1.5.13
2006-12-18 23:20:57 +00:00
Asanka Herath
f440509af2 DEVEL15-windows-install-wix-20061218
remove the AFS Server wizard shortcut

add AFS Server dependencies (tcpip and PNP_TDI)


(cherry picked from commit a1c31b6637fe44f2a2ebd4be491b71cc4e0fa922)
2006-12-18 22:34:24 +00:00
Jeffrey Altman
e2dd3faa96 DEVEL15-windows-nsis-20061218
remove the autorun for the AFS Server Wizard

remove the shortcut to the AFS Server Wizard

update the service dependencies for the bosctlsvc (tcpip and PNP_TDI)


(cherry picked from commit a7ea1f2efd616149b2419bb394f54d4828d316b9)
2006-12-18 21:45:26 +00:00
Asanka Herath
cf947bfcc1 DEVEL15-windows-optimize-smb-dir-search-if-no-wildcard-20061217
When performing a SMB FindFirst/FindNext/FindClose operation if there
are no wildcards involved, we can optimize the case and turn it from
O(n) to O(1) where 'n' is the number of entries in the directory.
This can be done by performing a cm_Lookup() and if it succeeds,
constructing the appropriate response instead of parsing the contents
of each buffer associated with the directory looking for matches.

Without this optimization, FindFirst operations on directories containing
thousands of entries can take a large number of seconds to complete.


(cherry picked from commit a57531592bfab0b36a4d7fb58b556b848e6f75c8)
2006-12-17 21:07:22 +00:00
Jeffrey Altman
2b1d85b592 DEVEL15-rx-fix-lock-init-20061216
When rxBind was added it made an assumption that rx_GetIFInfo could be
called before rx_InitXYZ.  This is true on non-Windows platforms, but
on Windows rxGetIFInfo relies on an initialized mutex.  This patch adds
a DllMain for Windows in order to initialize the mutex object upon DLL
load.


(cherry picked from commit 5b56a0b8ebbdfffa46b90d45b06253c3c6fade15)
2006-12-17 01:23:30 +00:00
Derrick Brashear
813ad97ae6 DEVEL15-ubik-better-debug-logging-in-remote-20061215
log when we get errors doing remote sync what it was, rather than covering it up


(cherry picked from commit 35fae890e298b6d43990c2bccfe2a67c9d555ec3)
2006-12-15 16:39:46 +00:00
Jeffrey Altman
d914f91a6e DEVEL15-windows-release-hotes-20061212
updates for 1.5.13
2006-12-13 04:28:01 +00:00
Jeffrey Altman
e9436399ca DEVEL15-windows-custom-control-subclassing-bis-20061212
Do not link to both talocale.lib and taafsapplib.lib.

If you do, then there are duplicate functions in both the .EXE and
the TaAfsAppLib.DLL.


(cherry picked from commit 04daebb95ebc15ece05f6f42aec1a3a7e9bd1bbf)
2006-12-13 00:26:35 +00:00
Jeffrey Altman
64db905c80 DEVEL15-windows-custom-control-subclassing-20061212
While investigating the reasons behind the Drive Mapping listbox
failing to permit entries 2 or above to be edited or removed and
the text string being truncated to two characters (on some systems)
I discovered that the subclasses were being recompiled into each
application instead of linking against the DLL that contains the
controls.

The custom controls have been renamed to address name space issues.

The "Drive X:" label changed to "X:" to permit single character item
selection within the listbox.

Still have no idea what is really going on.  Spy++ shows the Windows
messages being sent to the correct Windows.  However, the getcount
message never obtains a value other than 0 or 1.  This is probably
why the selection code is broken.  Still working on it.


(cherry picked from commit 70c350c6d04176a9f58fa7ab00c92511f3ca039b)
2006-12-12 20:40:52 +00:00
Jeffrey Altman
b32f926492 DEVEL15-windows-sleep-when-out-of-buffers-20061212
When there are no free buffers, don't loop continuously.
Sleep so that the other threads that are holding the buffers
can grab the global buffer lock and release them.


(cherry picked from commit f126802236bb059b8f0e804c76aef1031beb8a44)
2006-12-12 17:04:41 +00:00
Jeffrey Altman
cc075047dc DEVEL15-STABLE15-windows-afsd-20061211
(1) Power Management improvements.  Maintain a global flag that
    specifies whether or not the service is in a suspend state.
    Do not panic if Netbios() returns NRC_BRIDGE meaning that the
    lana is no longer valid.  Instead, stop the listener threads
    and if all listener threads are stopped, reset the lana_list.
    Allow the cm_Daemon() thread to periodically check the state
    of the smb listeners.  If they are all stopped and the service
    is not suspended, attempt to restart them.  If there are no valid
    lanas, return to the stopped state.

(2) CreateX and NTCreateX use cm_CheckNTOpen() to test whether or not
    the user is permitted to obtain read or write locks.  This function
    would obtain the lock and then drop it returning whether or not
    the lock could be obtained.  If the lock was in fact required,
    CreateX/NTCreateX would then obtain it with cm_Lock().  The problem
    of course being that this pattern results in three RPCs to the
    file server (lock, unlock, lock).  This is reduced to one RPC by
    implementing cm_CheckNTOpenDone() which frees the allocated byte
    range lock from cm_CheckNTOpen() after the cm_Lock() call is
    performed.

(3) Remove unused code.

(4) Add debugging to SMB Directory Search functions.

(5) Increase the SMB Ioctl MaxData size
2006-12-12 04:01:26 +00:00
Derrick Brashear
1fc0a4ead1 DEVEL15-rx-preparesendpacket-avoid-double-free-20061205
wow, this is special

existed forever but only when we stopped leaking packets did it become a problem

anyway, don't free packets and forget to reduce the number of packets in play


(cherry picked from commit 112604e9c31cba4f9605b6b53918aafa8cac77d0)
2006-12-05 19:41:34 +00:00
Derrick Brashear
07bdea44a6 DEVEL15-openafs-1-5-12-20061201
1.5.12
openafs-devel-1_5_12
2006-12-01 20:45:28 +00:00
Derrick Brashear
87d1b77521 DEVEL15-give-s390x-syscall-table-the-big-hammer-20061201
Neale Ferguson contributed the assembler.

The false illusion of security some people want to play under is usually good for wasting a few hours; it was here. making the sys_call_table read nly for real of course fixes it, let's just hope keyrings come along before then on such platforms.


(cherry picked from commit b81763506fdf29f3df66d811e2d299cc4c9acec0)
2006-12-01 18:50:51 +00:00
Derrick Brashear
1b380abd7e DEVEL15-redhat-packaging-updates-20061201
updates from derek

updates for s390x

updates to handle suse


(cherry picked from commit 9ba1d32b4ba8aac1d7e2c7f7489739e0e4ca5475)
2006-12-01 18:35:33 +00:00
Derrick Brashear
b33c56651c DEVEL15-redhat-initscripts-update-for-suse-20061201
suse lacks /etc/init.d/functions


(cherry picked from commit af6af0bbc4d874a42f0640eaafd762ebfc1bc872)
2006-12-01 13:00:44 +00:00
Jeffrey Altman
5008a98763 DEVEL15-windows-notes-20061130
updates for 1.5.12
2006-11-30 06:50:58 +00:00
Jeffrey Altman
a403f8d778 DEVEL15-STABLE15-windows-version-20061130
1.5.1200 = 1.5.12
2006-11-30 06:46:28 +00:00
Jeffrey Altman
4d84f9c988 DEVEL15-windows-release-notes-20061129
1.5.12 Release Notes
2006-11-30 04:40:07 +00:00
Derrick Brashear
bc0a3bc062 DEVEL15-cprivate-ticketlen-is-32-not-16-20061129
everyone else thinks ticketLen is 32 bits. contrary to what arby's says, different is not necessarily better.


(cherry picked from commit 45425b2f222d5c0a8dd56695587b6cdeba581b6a)
2006-11-29 21:25:09 +00:00
Jeffrey Altman
a9ea20c271 DEVEL15-windows-dirty-buffer-optimization-20061128
The old dirty buffer synchronization algorithm had a buf_IncrSyncer
thread walking the all buffer list periodically searching for dirty
buffers to write to the file server.  This had several negative
results.  The alogirithm ate up ever increasing amounts of CPU time
even when AFS is idle as the size of the cache increases.  Also,
buffers were written to the file server in an order based upon the
original buffer allocation which has nothing to do with the order
in which the buffers became dirty.

The new algorithm maintains a dirty buffer list.  Items are added
when the buffer is originally marked dirty.  A buffer is only
removed from the list by the buf_IncrSyncer when the buffer is no
longer dirty.  If the list is empty the thread goes back to thread
immediately without additional processing requirements.


(cherry picked from commit d253bde4574e34ee08cf326ec4c481b57c230476)
2006-11-29 06:23:44 +00:00
Jeffrey Altman
f1938e51a3 DEVEL15-volser-cleanup-20061128
cleanup the return code handling from

  DELTA volser-dump-validate-input-20060417
2006-11-28 09:29:28 +00:00
Jeffrey Altman
e10ac6392b DEVEL15-windows-smb-dont-crash-vista-20061128
Unlike previous versions of the OS, Vista performs a shutdown on
the Microsoft Loopback adapter just like it would on a real adapter.
This causes the smb_Listener threads to trigger a panic during a
suspend/hibernate power event.

The fix is to unbind from the network adapters in response to a
suspend/hibernate power event and then rebind to the adapters
when a resume power event is received.  Note that the resume events
are not reliably delivered so it is possible the afs service will
not be accessible.  However, this is the best we can do.


(cherry picked from commit 1ed0460435ec05150526c951d1ff32dd3b5a9c39)
2006-11-28 09:17:14 +00:00
Jeffrey Altman
2e8fa4db1f DEVEL15-windows-conn-analyze-20061128
force an rx connection reset if VICECONNBAD or VICETOKENDEAD are
received


(cherry picked from commit cb1997aad8a62b31f1e890dfe093a2d4845e0086)
2006-11-28 09:08:04 +00:00
Jeffrey Altman
1f404be09a DEVEL15-windows-afslogon-dont-modify-environment-20061128
don't allow environment variables we set to be inherited by child
processes


(cherry picked from commit 97733f8dcfd08968da5173ceb5976143728b5eab)
2006-11-28 09:01:14 +00:00
Russ Allbery
6e44366e4f DEVEL15-thiscell-whitespace-20061120
Be more liberal when parsing ThisCell.  Accept and ignore leading and
trailing whitespace and anything after the first whitespace character on
the first line.  Return an error for a read error or for an empty cell
name.


(cherry picked from commit 769f4e49b60b15b27eb2898a5b28c2d99fc0238c)
2006-11-21 00:56:56 +00:00
Russ Allbery
e80c3a3034 DEVEL15-relative-path-canonicalization-20061120
Path canonicalization for commands such as bos getlog was only applied for
absolute paths; relative paths were still constructed relative to the
canonical directory.  Modify the path canonicalization routines to also
canonicalize the base directory for relative paths.


(cherry picked from commit 778e2d5f18c1d0c93a073c137bb36e56f64747ef)
2006-11-20 23:49:18 +00:00
Jeffrey Altman
27774b5112 DEVEL15-windows-netidmgr-plugin-vista-vs2005-20061120
Define _USE_32BIT_TIME_T since that is what tokens contain.

Use cflagsdll instead of cflagsmt to avoid multiply defined entry points


(cherry picked from commit 848d2f1caa8d196831a1fe599694fdce0018136d)
2006-11-20 18:54:31 +00:00
Jeffrey Altman
b04ef79ec1 DEVEL15-windows-remove-unused-libs-20061120
rpcndr.lib and largeint.lib are no longer used.
rpcndr.lib no longer exists in the Vista SDK.


(cherry picked from commit 4a3482f9e6b5fdac731da45cc4f4179fd5db7046)
2006-11-20 18:04:53 +00:00