5858 Commits

Author SHA1 Message Date
Jeffrey Altman
0cce65056a DEVEL15-windows-test-torture-stack-overflow-20090405
LICENSE MIT

avoid stack overflow.


(cherry picked from commit ac199c845e6771c627dfb5e7efc0cdd8c5356df9)
2009-04-05 13:54:40 +00:00
Jeffrey Altman
bedc8eedaf DEVEL15-windows-tests-torture-20090405
LICENSE MIT

replace the VOLSTAT online test with the PATH_AVAILABILITY
online test.  We do not care of the volume is offline on the file
server if the cache manager has current data to serve.


(cherry picked from commit 59945d1cb5f14baf9ab0008990079e1dde9a796d)
2009-04-05 06:25:20 +00:00
Jeffrey Altman
4d444392b0 DEVEL15-windows-smb-error-map-20090404
LICENSE MIT

For CM_ERROR_BADSHARENAME return BAD_NETWORK_PATH instead
of BAD_NETWORK_NAME.  The latter refers to the server name
and the former to the share name.   Returning BAD_NETWORK_NAME
will causes the smb redirector to break its connection to \\AFS.

For CM_ERROR_ALLOFFLINE and CM_ERROR_ALLDOWN return PATH_NOT_FOUND
instead of BAD_NETWORK_PATH.  We don't want the smb redirector
to tear down all open files just because some volume in the path
is inaccessible at the moment.


(cherry picked from commit ffe04f710b41120f1bbd843c73ee2d95bc179d9c)
2009-04-04 21:16:36 +00:00
Simon Wilkinson
4410712f6d DEVEL15-linux-key-alloc-no-pointer-arith-20090404
LICENSE IPL10

make the key_alloc configure test work


(cherry picked from commit 4ecaeaac97a48c36df3866f1f71eb8a95c8f6e51)
2009-04-04 17:44:02 +00:00
Jeffrey Altman
23d74b48ae DEVEL15-windows-afsd-no-more-ods-20090402
LICENSE MIT

Any use of OutputDebugString() in production can result in serious
delays in the execution of the thread that issues the call.  Remove
the last of the unprotected calls within afsd_service.


(cherry picked from commit f6b4902daeb731eb01de44464476cb0a3edb26b1)
2009-04-03 03:57:13 +00:00
Jeffrey Altman
e530a9a726 DEVEL15-windows-rx-xmit-20090402
LICENSE IPL10

permit compilation with Windows SDK v6.0/6.1 which hides
previously exposed XP symbols unless _WINNT_WIN32 is at
least 0x0501


(cherry picked from commit fc408da993e753d33336ab408167383a75ed97f0)
2009-04-02 08:45:00 +00:00
Jeffrey Altman
64e45102e8 DEVEL15-windows-src-makefile-two-20090402
LICENSE MIT

get the i386 case right


(cherry picked from commit 0700567eef0c52b1b8892454b72c5123fe0514b1)
2009-04-02 08:41:50 +00:00
Jeffrey Altman
13a83ff7d9 DEVEL15-windows-src-makefile-20090402
LICENSE MIT

remove extraneous echo command output

do not attempt to build NSIS target on non-x86 platforms
since support is not implemented


(cherry picked from commit 27aedf7a2cfb04f49b6b8f3c9cabc3d6cdb91c78)
2009-04-02 06:06:54 +00:00
Jeffrey Altman
e95508698c DEVEL15-windows-config-clean-20090402
LICENSE MIT

permit "nmake -f ntmakefile clean" to complete on a
clean source tree.


(cherry picked from commit 8673c0de48140b8cd148bf3ea47094968ffbda8b)
2009-04-02 06:04:57 +00:00
Asanka Herath
0f39a2e8cb DEVEL15-windows-install-loopback-20090401
LICENSE MIT

Define INCLUDE variable and reorder binary link order
to ensure compatibility with latest WDK/SDK combinations.


(cherry picked from commit d86247619136d3080eb6be08fd8c077bc2afc68b)
2009-04-01 23:56:29 +00:00
Jeffrey Altman
e3fcaa1e37 DEVEL15-windows-talocale-20090401
LICENSE MIT

perform proper casting to avoid a warning


(cherry picked from commit d8a8bfb5c3b49980135b9da26082fa668640ec0f)
2009-04-01 18:36:39 +00:00
Jeffrey Altman
d005729cb4 DEVEL15-windows-afsd-smb-logging-20090401
LICENSE MIT

Add more info about the smb request to the log entry
that is written to afsd_init.log if the request took
longer than 45 seconds to complete.


(cherry picked from commit 520fef4278bd43073782e1c75f67900f96fa6ddf)
2009-04-01 18:30:37 +00:00
Jeffrey Altman
f6bd0a22c2 DEVEL15-windows-afsd-priority-class-20090401
LICENSE MIT

Change the default priority class for afsd_service.exe to High.
This matches the priority class assigned to other system processes
that generate requests to afsd_service.exe.

Permit the ..\TransarcAFSDaemon\Parameters "PriorityClass"
registry value to be used to change the default.


(cherry picked from commit 37f582326c1c5d5363a988f7038af0b62d0fb3ea)
2009-04-01 18:29:24 +00:00
Jeffrey Altman
d8b3d2cb94 DEVEL15-windows-afsd-xdr-free-20090401
LICENSE MIT

make use of xdr_free() to release memory allocated within afsrpc.dll.
this prevents crashes when the library is built with a different
runtime library version than the application.

fix signed/unsigned warnings in the same code snippet


(cherry picked from commit 3d81394f9106b187c28e35328676e11b662025c6)
2009-04-01 17:39:08 +00:00
Jeffrey Altman
a4aab1e3a4 DEVEL15-xdr-free-20090401
LICENSE MIT

add xdr_free() and export it from afsrpc.dll.  This permits applications
to free memory allocated within the xdr routines with the same run time
library memory management routines as was used to allocate it.

This is necessary on Windows to prevent memory corruption.

VL_GetAddrsU() is an example where a xdr array is allocated in the
library and must be freed by the application.


(cherry picked from commit d7749751df230d919188546106b61bd2dbb8974c)
2009-04-01 17:38:13 +00:00
Derrick Brashear
da94bd9e0f DEVEL15-dynamic-vcache-no-printf-20090331
LICENSE IPL10

no printf in 1.4.9


(cherry picked from commit 84871adb4bb3f8d1d50127255da75629e2167977)
2009-03-31 13:41:37 +00:00
Marc Dionne
5eaf9017bd DEVEL15-linux-2630-maybe-20090331
LICENSE IPL10
FIXES 124560

hopefully support 2.6.30 when it's released


(cherry picked from commit d0a166bdffce2d2498cab54cc458d9489d05c299)
2009-03-31 13:16:30 +00:00
Jeffrey Altman
66fe37746e DEVEL15-windows-version-20090329
LICENSE MIT

1.5.58
2009-03-29 18:16:07 +00:00
Jeffrey Altman
fc2a798003 DEVEL15-windows-release-notes-20090329
LICENSE MIT

1.5.58
2009-03-29 18:13:04 +00:00
Jeffrey Altman
0975d5a9f7 DEVEL15-windows-notes-20090329
LICENSE MIT

1.5.58
2009-03-29 18:09:10 +00:00
Jeffrey Altman
0b7daceafd DEVEL15-windows-afsd-log-smb-mid-20090328
LICENSE MIT

For each SMB transation log the 'mid' field of the smb packet.
The 'mid' field can be used as a reference against the mrxsmb request
logging for debugging purposes.


(cherry picked from commit 07c187c84384635413e6353dc9913a8826f25bb5)
2009-03-28 23:26:17 +00:00
Jeffrey Altman
4e07b9d6b2 DEVEL15-windows-remove-reset-all-vcs-event-20090328
LICENSE MIT

remove the smb reset all VCs message.  duplicates the
reportSessionStartups functionality.


(cherry picked from commit 4bc36a697fffe78cc0ec93cb9cf98772aeadfcb6)
2009-03-28 23:17:44 +00:00
Jeffrey Altman
512b04457e DEVEL15-windows-afsd-symlink-20090327
LICENSE MIT

Increase max symlink limit to 64 and remove the repeated fid
recursion test.  Breaks too many things.


(cherry picked from commit 27609fe288eb20f30e1f17a709a07468a74372eb)
2009-03-27 17:58:19 +00:00
Jeffrey Altman
90d5fa38b0 DEVEL15-volser-new-is-special-20090324
LICENSE IPL10

Do not permit the word "new" to be used for a field name as it is
special.  Our headers get pulled into C++ compilations.


(cherry picked from commit 977674dfb0470de693e5e7700c614c3b68317efa)
2009-03-25 01:16:14 +00:00
Jeffrey Altman
f9029089ad DEVEL15-vol-split-warnings-no-win-20090324
LICENSE IPL10

remove many warnings

disable on Windows since there are missing dependencies in ntops.c


(cherry picked from commit db844c458457a0bbcff81e9dbff362784db6958a)
2009-03-24 22:36:25 +00:00
Derrick Brashear
761165fea6 DEVEL15-openafs-1-5-58-20090329
LICENSE IPL10

make 1.5.58
openafs-devel-1_5_58
2009-03-29 23:31:38 +00:00
Mike Meffie
47a6a095cb DEVEL15-uss-kvno-warning-fix-20090327
LICENSE IPL10
FIXES 124220

suppress bogus kvno warning in uss


(cherry picked from commit a523710780d54b27fc61db0fd1a561f789871046)
2009-03-27 15:47:32 +00:00
Chaskiel M Grundman
ae8f720266 DEVEL15-linux-flushpages-call-truncate-inode-pages-after-all-20090327
LICENSE IPL10

in this case we're discarding just the data in case it's stale, so this is
correct


(cherry picked from commit 9243308990dc93ef3f42b9d024b9b02568881468)
2009-03-27 15:45:38 +00:00
Garry Zacheiss
dc7355bea2 DEVEL15-bucoord-update-kvno-check-20090327
LICENSE IPL10

update kvno check in bucoord to match what it is elsewhere


(cherry picked from commit 3fcbdab1889f2674f1229cb551afeafc6f06b66a)
2009-03-27 13:46:01 +00:00
Simon Wilkinson
bd7a4ff106 DEVEL15-vol-proto-do-not-break-dafs-20090326
LICENSE IPL10
FIXES 12540

Reenable prototype of VolumeExternalName_r for dafs


(cherry picked from commit 4ced67ca980218e27aa4033f31a9d238590919d5)
2009-03-26 23:42:13 +00:00
Andrew Deason
48a5f73c9b DEVEL15-state-analyzer-usage-20090326
LICENSE IPL10
FIXES 124539

fix usage for state-analyzer


(cherry picked from commit 8cc60f4931f1b62c84d0a74d0fbbbfd0ea582a91)
2009-03-26 21:33:59 +00:00
Derrick Brashear
3e7f35284d DEVEL15-return-values-missing-fix-20090326
LICENSE IPL10
FIXES 124194

add return values for functions missing them


(cherry picked from commit d4359ad72aee9839ee019165a3fb37c9cfae3b4d)
2009-03-26 14:30:25 +00:00
Chaskiel M Grundman
498485a58e DEVEL15-cbr-free-what-you-alloc-20090325
LICENSE IPL10
FIXES 124531

dequeue and free items as alloc'd


(cherry picked from commit 80494f5096d231e1e032229732f2d94ba569718e)
2009-03-25 19:34:48 +00:00
Derrick Brashear
df46bd2b92 DEVEL15-shutdown-vcache-avoid-null-deref-20090324
LICENSE IPL10

avoid potential null pointer deref at shutdown


(cherry picked from commit 4162ff9d4d733afc788b3c002adc57aac78a3282)
2009-03-24 22:40:14 +00:00
Derrick Brashear
0b71649f69 DEVEL15-ia64-linux26-ucontext-20090325
LICENSE IPL10

use ucontext lwp, like we do on 1.4 and head
2009-03-25 19:05:59 +00:00
Simon Wilkinson
505d989110 DEVEL15-redhat-spec-update-20090325
LICENSE IPL10
FIXES 123650

install afszcm.cat, update CellServDB


(cherry picked from commit cc0922c26fcbeebe73d4df422db65a550a9c6bf8)
2009-03-25 18:42:34 +00:00
Rainer Toebbicke
a369eb1d5a DEVEL15-copyonwrite-optimization-fix-20090325
LICENSE IPL10

update to do tail case


(cherry picked from commit 78e29484eb67deb8c19e4549eabaa27a3527fcf6)
2009-03-25 14:34:47 +00:00
Derrick Brashear
fdc7026e91 DEVEL15-volser-split-namei-only-20090324
LICENSE IPL10

make vos split be namei-only


(cherry picked from commit 5e770d6d18eacd5e4e70dd95853e4f1d99c54df2)
2009-03-24 18:20:33 +00:00
Derrick Brashear
88b6b2f3eb DEVEL15-vol-split-nearino-20090324
LICENSE IPL10

add nearInode hint


(cherry picked from commit 1f83528147ee47addd926ae729ee36520d1e82e5)
2009-03-24 17:55:58 +00:00
Derrick Brashear
8eb5aee119 DEVEL15-vfsck-needs-fd-t-defn-20090324
LICENSE IPL10

make vfsck build again


(cherry picked from commit 9a697699b487066f04783194771774db42ecfba9)
2009-03-24 14:24:07 +00:00
Derrick Brashear
fe76b2607a DEVEL15-volser-prototype-cleanup-20090324
LICENSE IPL10

make prototypes and return values etc match


(cherry picked from commit 4df81d17bfbc1e2437883260c350be2631002ec0)
2009-03-24 14:22:05 +00:00
Hartmut Reuter
5a2771be8b DEVEL15-volserver-split-volume-functionality-20090324
LICENSE IPL10
FIXES 124520

implement the server side of vos split


(cherry picked from commit ba742892e2102cf545157e9c97df10799a58403e)
2009-03-24 13:36:35 +00:00
Derrick Brashear
41546ff01a DEVEL15-fssync-enum-syntax-20090324
LICENSE IPL10

no trailing comma


(cherry picked from commit 71a73608b1393a5f7f333cb680608d8a1f03a3f6)
2009-03-24 12:43:16 +00:00
Derrick Brashear
1c6aed0974 DEVEL15-fd-t-definition-fun-20090323
LICENSE IPL10

make FD_t be defined everywhere we need it


(cherry picked from commit 63b0d495cfc6362bced7b2492310cf1a0bf684b0)
2009-03-24 12:41:37 +00:00
Derrick Brashear
16582c9f50 DEVEL15-iced-threadnum-return-cast-20090323
LICENSE IPL10

cast return type from threadNum
2009-03-24 03:44:14 +00:00
Jeffrey Altman
cde1fb287c DEVEL15-vol-lock-fd-type-20090323
LICENSE IPL10

the lock_fd field of DiskPartition[64] is a file descriptor.
On Windows this is a HANDLE and on *nix platforms an int.
OpenAFS uses the FD_t type to provide platform specific type
info for file descriptors.  Use it for the lock_fd field and
the salvageLock in ObtainsSalvageLock().

Finally, the on the wire diskPartition[64] struct in volser/volint.xg
also contains a lock_fd field.  This is an on the wire field and
must be left at a fixed width of 32-bits.  Since a file descriptor
is not portable across machines we truncate the 64-bit HANDLE value
to fit in the 32-bit lock_fd field when necessary.


(cherry picked from commit a209012f1a3f83959f9df14ebad4aa2b50bacae0)
2009-03-23 22:47:47 +00:00
Jeffrey Altman
b7a6c26421 DEVEL15-vol-fssync-server-socket-20090323
LICENSE IPL10

GetHandler() sets up a fdset and returns the max socket fd
which is used with select().  Windows ignores the numfd param
(first param) of select() and therefore computing the max fd
value is meaningless.  We can avoid a number of casts by
not attempting to treat this value as osi_socket.


(cherry picked from commit aa8d735b8707e2bf9142699fd25034655c821f96)
2009-03-23 22:42:59 +00:00
Jeffrey Altman
3354c15e58 DEVEL15-libadmin-vos-ihandle-20090323
LICENSE IPL10

include afs/ihandle.h in order to gain access to the FD_t definition


(cherry picked from commit 1d4542f93bae6b59e7d4321c23a2551fa43416ba)
2009-03-23 22:38:27 +00:00
Derrick Brashear
aefaca423f DEVEL15-volser-fcn-return-types-20090323
LICENSE IPL10

make internal functions have correct return types


(cherry picked from commit 4d9f5731c9ec6c50154da9784df0631a65dd9a9d)
2009-03-23 19:53:55 +00:00
Derrick Brashear
494fb57504 DEVEL15-printf-sanity-args-20090323
LICENSE IPL10

fix type specifier for correct arg


(cherry picked from commit 3e15ed48d305a5fedb1af552459cf5bbe1b95a40)
2009-03-23 19:40:58 +00:00