3631 Commits

Author SHA1 Message Date
Derrick Brashear
df226431bd STABLE14-test-heimdal-revert-tsalv-20060508
rolled up a bit too much here
2006-05-08 20:14:30 +00:00
Jeffrey Altman
b20a5f7b37 STABLE14-viced-host-logging-20060505
another place where dotted notation and port numbers were not being used
in log output.


(cherry picked from commit ada9819fd630f6cbe6fb8d442e79326df1fcdcad)
2006-05-05 17:28:55 +00:00
Jeffrey Altman
6fd794a022 STABLE14-viced-hcps-logging-20060504
log whenever a client host does not have an hcps value.

log the host by dotted ip-addr and port number


(cherry picked from commit ea3ed375e8f706456afddd23bff5ebf906565d92)
2006-05-04 05:56:24 +00:00
Jeffrey Altman
42b1a27fd3 STABLE14-viced-store-data-validate-input-20060408
The old StoreData RPC is only supposed to be valid for files
smaller than 2GB.  When StoreData64 was added, StoreData and StoreData64
were implemented as calls to common_StoreData64.  This removed the bounds
checking on the old StoreData RPC making it possible for operations
beyond two 2GB to be requested even if the file server cannot support
them.  This patch adds a validity check to ensure that the requested
file operations remain below 2GB.  Failures return E2BIG.


(cherry picked from commit 9817af2a81eded29eeefcf8ef4445301a7d348ea)
2006-05-03 11:57:13 +00:00
Jeffrey Altman
60fdaf8406 STABLE14-windows-version-20060501
1.4.1a
2006-05-02 04:55:18 +00:00
Jeffrey Altman
ae7a614e26 STABLE14-windows-pthread-cleanup-20060424
A number of crash reports have been filed with Microsoft in afspthread.dll.
The crashes are occuring as the processes are terminating.  In order to
attempt to address this problem this patch adds support for a DllMain()
entry point that is used to cleanup Thread Local Storage and the various
RX queues.  One theory is that processes are loading and unloading DLLs
that are linked to afspthread.dll leaving the pthread data in a very
inconsistent state after each unload.  By cleaning up the static data
during the unload, if afspthread is loading again it will be forced to
initialize the data once again.


(cherry picked from commit edff1e8788a2cadfd6bb9e08f9cfdbfb491924a6)
2006-05-02 04:51:55 +00:00
Tommie Gannert
9353675a54 STABLE14-windows-ansi-filenames-fix-20060430
FIXES 31202

Remember to perform an OemToChar() conversion of the file name being
queried in Trans2QueryFileInfo


(cherry picked from commit 97a9d1964347e2b4b0f75e749b4d8f36d09fc876)
2006-04-30 06:00:31 +00:00
Tom Keiser
415672cc9c STABLE14-aix-make-install-20050815
FIXES 20827

make install was broken on aix. fix it.


(cherry picked from commit 45d144da14c39ed48ae8be4f89d78cfc12985056)
2006-04-27 18:35:19 +00:00
Jeffrey Altman
47eb71737f STABLE14-windows-deadlock-and-race-removal-20060427
This patch fixes:

* race conditions around cm_Lock() calls that were not protected
  by cm_SyncOp(LOCK) [asanka@secure-endpoints.com]

* deadlocks caused by obtaining smb_fid_t->mx after cm_scache_t->mx

* removes an extra Release smb_fid_t->mx that could result in
  releasing a mutex that is not currently held

* changes the log representation of several return codes and fids to
  be consistent with other output


(cherry picked from commit bf7404c3510d63b90c2cb15766f8455f79da90fe)
2006-04-27 16:55:38 +00:00
Tommie Gannert
adc1c2c3e7 STABLE14-vlserver-rxmaxmtu-fix-20060426
use 'index' as offset to argv


(cherry picked from commit 702e3346f36d448af8901d31c543d9d4b35bfa81)
2006-04-26 16:24:14 +00:00
Jeffrey Altman
58d47c889e STABLE14-linux-probe-missing-commas-20060426
FIXES 30977

Add missing commas for non-2.6 x86_64 platforms


(cherry picked from commit a88cb6c662d7fc0daed043ba40d971f4b5d2a05a)
2006-04-26 14:58:34 +00:00
Jeffrey Altman
759b355e72 STABLE14-volser-dump-validate-input-20060417
This patch adds code to perform return code error checking for all calls
to the ReadXyz() routines.  If the rx connection was lost or if the dump
format being parsed was incorrect there was an opportunity for data to
the processed after an error had already been detected.  In the best case
this would have simply resulted in additional work being performed when
it was not necessary but there was also the potential for modifying return
values which would later be used as input to later operations.  Better
to simply catch the error when it initially occurs and be done with it.

The ReadString() function had the potential to write into one byte prior
to the start of the input array.

ProcessIndex() would not properly close Fdhandle nor the StreamHandle
if an error was detected.

RestoreVolume() had a problem with the processing of incremental dumps.
Originally AFS supported a concept of incrementals dumps which when
restored would simply add their contents to the existing volume.  One
of the distinctions between the incremental and full dumps is that full
dump processing is responsible for removing any vnode entries from the
volume that are not present in the dump file headers.  When the incremental
dump support was removed, the RestoreVolume() function was broken.  If
a dump file contains multiple Dump Headers, then only the vnode entries
in the first Dump Header would be marked as being restored.  Any vnode
entries restored from subsequent Dump Headers would be deleted when the
RestoreVolume() function reached the end.  By removing the assignment
of 'tdelo = -1' within the loop that processes the Dump Headers, this
bug is resolved.  Although RestoreVolume is only called with the
'incremental' parameter == 0 at the current time, the check for non-zero
values is restored and the "remove unrestored vnodes" functionality is
disabled when a non-zero value is provided.

The ReadVnodes() function did not perform error checking.


(cherry picked from commit 8074632d6938e965d3f02cc07359d85276c25dbc)
2006-04-17 16:22:26 +00:00
Andrew Deason
e868d830b1 STABLE14-vos-date-parse-errmsg-20060417
FIXES 30218

use the correct index value when printing the invalid date string


(cherry picked from commit f8103d800d8136d9f19fc880497741da859ff830)
2006-04-17 16:00:46 +00:00
Jeffrey Altman
89ed3896c9 STABLE14-relnotes-20060414
windows notes
2006-04-14 20:54:06 +00:00
Derrick Brashear
723f6e5666 STABLE14-openafs-relnotes-1_4_1-20060414
1.4.1 release notes
2006-04-14 20:23:23 +00:00
Rainer Toebbicke
a07129d8a7 STABLE14-backup-dump-parameter-fix-20060411
this is a pointer, not an int, pass in NULL not 0


(cherry picked from commit 9ebf2fed4a1af7134fa86d09c865802b05ed27d1)
2006-04-11 20:28:20 +00:00
Tom Keiser
13e6b42831 STABLE14-aix-build-fix-20060413
FIXES 30089

don't include this other than in kernel


(cherry picked from commit c77421ff087d059b8723b8e44f19a87e860d5593)
openafs-stable-1_4_1
2006-04-14 14:13:49 +00:00
Derrick Brashear
dd4059cf13 STABLE14-irix-ifnet-flags-20060413
make ifnet_flags b e defined for irix also


(cherry picked from commit bbf4620d2d5c0d80d01f737b5bdda794453dd4ad)
2006-04-13 22:09:55 +00:00
Derrick Brashear
ee338a68f2 STABLE14-inode-64bit-type-20060411
use a 64 bit type for 64 bit inode size with inode fileserver


(cherry picked from commit 4d91ee63efb8b00dd2e6a1a50072928a94673175)
2006-04-11 20:41:33 +00:00
Derrick Brashear
d94aeb329e STABLE14-openafs-1-4-1-20060410
make OpenAFS 1.4.1
2006-04-10 21:29:30 +00:00
Jeffrey Altman
de60742535 STABLE14-windows-remove-active_vcp-20060410
The 'active_vcp' variable is no longer being used for any useful
purpose and is the center of a race condition that could lead to
an undercount of references to 'vcp' objects.  Remove it.


(cherry picked from commit f1ef60c020feffb73b2aee4c1871afba039afb67)
2006-04-10 18:56:30 +00:00
Jeffrey Altman
26d813f1c7 STABLE14-xstat_fs-fix-20060407
as pointed out by cg2v@andrew.cmu.edu the addition of performance
collection data for the GetCapabilities RPC broke backward compatibility
with previous builds because it altered the size of the data structure
sent on the wire.

Instead we count the number of GetCapabilties calls but do not gather
performance timing data as this can be done using spare fields.


(cherry picked from commit 78bb852509767ff32547c8dc90c385a4c503e0f9)
2006-04-10 16:46:46 +00:00
Jeffrey Altman
f7d266f864 STABLE14-STABLE-windows-vs2005-compat-20060409
correct the makefile so it is compatible with the latest nmake
2006-04-09 08:52:50 +00:00
Jeffrey Altman
8bbdc84fb0 STABLE14-windows-notes-20060409
updates for 1.4.1-rc11
2006-04-09 08:32:54 +00:00
Jeffrey Altman
4f166f64e4 STABLE14-windows-getvolstatus-20060408
don't prevent all calls to getvolstatus, just the ones that are
not AFS pioctl calls.


(cherry picked from commit 632d0c701b31877b4d74f5f3849a5a8054f7326a)
2006-04-09 08:29:37 +00:00
Jeffrey Altman
6b36fa3de4 STABLE14-windows-version-20060408
1.4.0101 == 1.4.1-rc11
2006-04-09 06:01:58 +00:00
Jeffrey Altman
86ec92d807 STABLE14-windows-protect-against-vcp-undercount-20060408
An undercount has been detected of the smb_vc_t objects stored
in the smb_allVCsp list.  Unfortunately, we have yet to be able
to find the cause of the undercount so this patch adds logic to
protect against the side effects until such time as the cause
can be identified.


(cherry picked from commit b9f22f0b7b9bf9aa746d3ef8ea63465b1cdadb97)
2006-04-09 05:56:36 +00:00
Chaskiel M Grundman
369a377945 STABLE14-linux24-fix-osi-probe-20060407
linux-updates-20060331 broke 2.4 kernels


(cherry picked from commit 714df786894e6a9572e93d77b68384706abb02f0)
2006-04-07 06:23:11 +00:00
Jim Rees
9c15deec15 STABLE14-test-heimdal-20060217
Add a configure test for heimdal and use it to build asetkey or not.
Thanks to Derek Atkins for his helpful suggestions.
2006-04-05 16:42:13 +00:00
Russ Allbery
3fb5f17243 STABLE14-man-page-asetkey-20060329
Add a man page for asetkey.


(cherry picked from commit 5b20ed35114473061015d3ff1904c12d0790c7ea)
2006-04-03 20:48:08 +00:00
Derrick Brashear
27b8ae96d9 STABLE14-asetkey-macos-20060215
make the same fix we do on aklog w.r.t com_err


(cherry picked from commit 90d681405a744816435949c1c70a5f33d86ff12d)
2006-04-03 20:42:05 +00:00
Ken Hornstein
07bbd29d62 STABLE14-integrate-asetkey-20051029
Add asetkey to the OpenAFS tree.


(cherry picked from commit 6b042d4edb7f26358523da9dcdb565ed023e00da)
2006-04-03 20:39:50 +00:00
Jeffrey Altman
7225c251b5 STABLE14-windows-minidump-20060402
change minidump default to include data segments


(cherry picked from commit 0fd8768c859b549c2294dcb4dc4cb315deb7caad)
2006-04-03 00:56:06 +00:00
Chaskiel M Grundman
a0b14d6b3f STABLE14-linux-updates-20060331
FIXES 29122 29110 29112

fc5 and 2.6.16 updates


(cherry picked from commit ea59126e31672e3a1ed2958ea10ef5dbad24813e)
2006-03-31 06:52:59 +00:00
Derrick Brashear
0e17939eb6 STABLE14-viced-gethostcps-byte-order-20060328
don't call GetHostCPS after swapping away from net byte order


(cherry picked from commit d387dba5efc88b14696b72e6b18cfb1af264be04)
2006-03-30 17:29:22 +00:00
Russ Allbery
5b6a55daa9 STABLE14-man-page-kaserver-fix-20060329
SYNOPSIS was mislabelled DESCRIPTION and the man page was therefore missing
the HTML formatting fixes.


(cherry picked from commit 5f70d9bb3ce0d1bb5db6604a53c52f483449e0d3)
2006-03-29 21:41:55 +00:00
Derrick Brashear
2f61c586b5 STABLE14-viced-client-keep-conn-ref-20060329
FIXES 28966

keep a ref on the conn the client has a pointer to


(cherry picked from commit 2c96a91ba42674e35ca7d54c0c20a1725b733e37)
2006-03-29 06:29:35 +00:00
Derrick Brashear
331c83c3cc STABLE14-viced-gethostcps-byte-order-20060328
don't call GetHostCPS after swapping away from net byte order


(cherry picked from commit 1904db3fa3a0765f63ae4ecac23a8464818f1e9c)
2006-03-29 05:16:36 +00:00
Garry Zacheiss
a50f089d5d STABLE14-afsdb-len-signed-20060328
in order for -1 to ever be returned, it's gotta be signed...


(cherry picked from commit a4f24472aa7abee6500188c6bb3acabcf96377bc)
2006-03-28 19:42:57 +00:00
Derrick Brashear
c01ac24c97 STABLE14-debian-updates-20060323
from russ and sam


(cherry picked from commit 1db522b6ac7df1d5f569d4cd654ead4dcbea91b4)
2006-03-23 21:07:50 +00:00
Derrick Brashear
175ac3a96a STABLE14-build-system-updates-20060323
config.sub config.guess and some other scripting updates


(cherry picked from commit 5a1bd817b82ad613b1b63738dfa4a08746531a96)
2006-03-23 20:11:50 +00:00
Derrick Brashear
f800ebc77b STABLE14-cmdebug-no-zero-pad-output-20060119
length, dv and refcnt no longer 0 padded
2006-03-23 16:45:53 +00:00
Jim Rees
30e1609509 STABLE14-print-64-20051117
On non-Windows use %llu for 64 bit printf.
Thanks to Brent Graveland for pointing this out.


(cherry picked from commit d3f9842bd4897b1b5c580858c3cb17326900548c)
2006-03-23 16:43:28 +00:00
Derrick Brashear
506e92c7ba STABLE14-macos-packaging-fixes-20060323
update to make sure we have a cellservdb, that we shut down afs before an upgrade, and install the universal binary build script


(cherry picked from commit bb96daf441402cb6def2c20cc20f51d3d160b6e1)
2006-03-23 16:08:34 +00:00
Derrick Brashear
0d37c854c6 STABLE14-afsd-fs-check-20060323
from debian, modified slightly. tell people why their filesystem sucks


(cherry picked from commit a1041136186dba50f035ddc9b97fbfb86469b504)
2006-03-23 15:40:10 +00:00
Russ Allbery
f73d99f149 STABLE14-man-page-todo-20060322
More to-do items for the documentation.


(cherry picked from commit db8d1da77aa792e0d042bf5dbe041c534350b277)
2006-03-23 05:51:23 +00:00
Derrick Brashear
c12f072da9 STABLE14-sunos-dos2unix-20060322
dumbest change ever


(cherry picked from commit c0ce1b880a48661ac307477317091a63e9763623)
2006-03-22 20:14:35 +00:00
Derrick Brashear
b84b10e48e STABLE14-parisc-linux-lwp-20060322
pulled in from debian


(cherry picked from commit 681419e6eda37488fee938c8abc1a59bbf2764c9)
2006-03-22 19:58:25 +00:00
Jeffrey Altman
9711c8a1ff STABLE14-another-time_t-pointer-fix-20060320
do not pass in pointers to 32-bit values as pointers to 64-bit values


(cherry picked from commit e6f0c0c68f6b4d415484eed556dd65bcaacc9585)
2006-03-20 13:39:11 +00:00
Jeffrey Altman
e1ec085f99 STABLE14-another-time_t-pointer-bug-20060320
do not pass pointers to 32-bit values as pointers to 64-bit values.
this results in memory corruption


(cherry picked from commit 1b2fbe5fa9384eb5e1b19487eb6b0d201bea975e)
2006-03-20 13:28:38 +00:00