Commit Graph

5533 Commits

Author SHA1 Message Date
Mike Meffie
2290db5f16 linux-module-build-test-configure-fix-20090221
LICENSE IPL10
FIXES 124381

deal when the module link warning has extra characters
2009-02-21 15:36:39 +00:00
Jeffrey Altman
8382f8ccb1 windows-smb-misc-20090220
LICENSE MIT

Fix smb_FindFIDByScache() to avoid obtaining the smb_fid_t.mx and
smb_rctLock out of order.  Doing so requires obtaining references
on each smb_fid_t belonging to the smb_vc_t in order to prevent them
from being removed from the list while the list is being walked.

Reorder tests for CM_SCACHEFLAG_DELETED and smb_fid_t.scp to make
them more efficient and consistent.

When processing Tran2SetPathInfo do not fail because an smb_fid_t
cannot be found for the path object.  The PathInfo function is
being used because we do not have a file descriptor.  Most importantly
do not fail by returning success.
2009-02-21 04:26:43 +00:00
Jeffrey Altman
54a3c85ae4 windows-rename-cross-dir-invalid-handle-20090220
LICENSE MIT

Problems with the cm_Rename() functions:

 * when a rename occurs across directories, the file server allocates
   a new vnode which in turn alters the FID.  Since the new FID and
   potentially version number is unknown to the client, it is not
   possible to update the target directory with the new name and
   FID thereby avoiding reading the directory from the file server.

 * when the old vnode is removed, the callback is broken but the
   client did not discard the cm_scache_t object

In order to optimize the client cache AFS requires a RXAFS_RenameEx
rpc that is equivalent to the current RPC but returns the new FID
and status.  This would permit the cache manager to relabel the
data buffers and cm_scache_t that are known to contain valid data.
2009-02-21 04:19:23 +00:00
Asanka Herath
4eb808d26b smb-vc-reset-on-request-20090218
LICENSE MIT

When processing SMB_SESSION_SETUP_ANDX in smb_ReceiveV3SessionSetupX
it is possible that the smb client might indicate that it requires an
Mpx Count greater than we are configured to support.  If so, log it
to the Windows Event Log as a warning.

It is also possible that the client might specify that its maximum
receive buffer is smaller than the SMB_PACKETSIZE.  If so, log it
to the Windows Event Log as a warning.

Finally, if the client specifies a virtual circuit number of zero,
the client thinks this is its first time communicating with us.
In which case we should invalidate all prior virtual circuits.
We also log this request to the Windows Event Log as informational.
2009-02-19 04:04:24 +00:00
Simon Wilkinson
5bd86a09eb windows-64bit-printf-sanity-20090218
LICENSE IPL10
FIXES 124265

don't assume %lld works for 64 bit ints on windows
2009-02-18 17:48:39 +00:00
Peter Tripician
733794b4d8 vos-increment-offline-count-20090218
LICENSE IPL10
FIXES 124333

increment offline volume count, not pointer to it
2009-02-18 17:27:59 +00:00
Derrick Brashear
da8df5ea2c vldb-check-no-bogus-shadow-decl-20090217
LICENSE IPL10

unfussy compilers treat this as a shadow declare; others thankfully as an error
2009-02-17 14:34:18 +00:00
Derrick Brashear
8b74a85b97 aklog-524-vars-20090216
LICENSE IPL10

add missing variables
2009-02-17 14:27:48 +00:00
Jeffrey Altman
b9816e12f7 vclosevnodefiles-ihandle-leak-20090216
LICENSE IPL10
FIXES 124359

don't leak ihandles on close. this isn't a complete fix for the issue
2009-02-17 04:37:27 +00:00
Peter Tripician
846919700b bozo-corefile-timestamp-fix-20090216
LICENSE IPL10
FIXES 124340

output y2k-correct corefile names
2009-02-17 04:32:08 +00:00
Evan Broder
b1f9b4cb5d aklog-use-native-principal-conversion-20090216
LICENSE IPL10
FIXES 124338

use krb5_524_conv_principal instead of doing it potentially wrong ourselves
2009-02-17 04:28:53 +00:00
Chas Williams
8bc58a3d6d macos-10-6-support-20090216
LICENSE IPL10
FIXES 124288

support for (32 bit) macos 10.6. no pam yet
2009-02-17 04:25:10 +00:00
Steven Jenkins
43bcfaf9cc vldb-check-meaningful-return-codes-20090216
LICENSE IPL10
FIXES 124321

make vldb_check have meaningful return codes
2009-02-17 04:16:56 +00:00
Peter Tripician
52f3295d32 fs-lsm-parse-bug-20090226
LICENSE IPL10
FIXES 124319

print correct error on root directory
2009-02-17 03:59:28 +00:00
Marc Dionne
0e05505a89 linux26-bogus-param-define-20090216
LICENSE IPL10
FIXES 124324

remove orphaned define
2009-02-17 03:43:37 +00:00
Tony D'Amato
4817a4a98f redhat-rpms-kernel24-20090216
LICENSE IPL10
FIXES 102673

rewrite make rule for 2.4 kernels
2009-02-17 03:29:22 +00:00
Marc Dionne
f3080eb7c7 rx-head-build-error-20090216
LICENSE IPL10
FIXES 124323

include header so mutex&atomic macros exist
2009-02-17 03:23:27 +00:00
Jeffrey Altman
8e3b67b953 windows-smb-fidp-scp-race-20090212
LICENSE MIT
FIXES 124293

As evident in a crash dump, there is a race surrounding access to the
scp field of the smb_fid_t object.  Not all access was protected by
the smb_fid_t mx and the cm_scache_t object was not always being
reference counted within the accessing function.

This patch ensures that all initial references to the scp object
are performed under the smb_fid_t mx mutex and that the cm_scache_t
is prevented from being recycled by obtaining a local reference.

Finally, CM_ERROR_BADFD is returned as an error if a request begins
after the smb_fid_t scp field has already been cleared by a smb_CloseFID()
call as part of a concurrent request.
2009-02-12 21:44:47 +00:00
Jeffrey Altman
8bb35234aa windows-vmoved-vnovol-failover-20090212
LICENSE MIT
FIXES 124276

A readonly volume with multiple instances was being marked alldown
when one of the instances resulted in VNOVOL because the vldb and
the indicated file server were out of sync.  The cache manager would
then attempt to re-obtain the volume location info from the vldb
for the entire timeout period.

This patch:

adds trace logging to cm_Analyze indicating which server references
are being deleted and which remain in response to a VNOVOL/VMOVED error.

adds trace logging to cm_UpdateVolumeStatusInt showing how the
new volume status value is determined.

corrects cm_Analyze() so that it doesn't corrupt the server reference
list during cm_FreeServerList() calls; doesn't orphan the server reference
list by setting *serverpp to NULL; and only re-obtains the volume info
list once per request.
2009-02-12 21:30:03 +00:00
Jeffrey Altman
1050049411 fix-tsfpq-20090210
LICENSE BSD

avoid transferring more than the number of packets in a queue
2009-02-10 22:42:40 +00:00
Derrick Brashear
c12e2fa019 restore-unix-rxdebug-20090210
LICENSE IPL10

stale fixes from my sandbox
2009-02-10 22:39:58 +00:00
Marc Dionne
c4d5f0a702 rx-atomic-20090209
LICENSE IPL10
FIXES 124322

add parens
2009-02-09 23:15:13 +00:00
Jeffrey Altman
0edbc512b5 rx-writevproc-wrong-type-20090207
LICENSE BSD

In rxi_WritevProc the queueScan that sets RX_PKTFLAG_TQ on the packet
really needs to cast the queue objects to rx_packet instead of rx_call.
Trashing random fields is not a good idea.
2009-02-07 17:22:26 +00:00
Asanka Herath
b842ee3ea5 windows-netidmgr-progress-20090205
LICENSE MIT

add progress reporting to the provider.
2009-02-06 03:13:38 +00:00
Jeffrey Altman
ffdc7c7088 windows-freelance-20090204
LICENSE MIT

set the correct fid vnode/unique values when adding new symlnks and
mount points.
2009-02-05 00:23:54 +00:00
Mike Meffie
58a924fd50 upclient-cleanup-temp-files-20090203
LICENSE IPL10
FIXES 124221

remove tempfiles in the event of a fetching error
2009-02-03 19:44:27 +00:00
Simon Wilkinson
1811577fca rename-internal-gettimeofday-refs-20090203
LICENSE IPL10
FIXES 124259

switch to using fasttime, instead of wrapper
2009-02-03 19:42:14 +00:00
Simon Wilkinson
0ac1e74178 redhat-packaging-non-stable-branches-20090203
LICENSE IPL10
FIXES 124273

make rpm stuff work for other than 1.4.x
2009-02-03 19:37:41 +00:00
Simon Wilkinson
fe3779411e redhat-packaging-updates-20090203
LICENSE IPL10
FIXES 124272

adds fc10, fc11 support
2009-02-03 19:34:10 +00:00
Russ Allbery
d476340465 man-page-salvager-fixes-20090201
LICENSE BSD

Fix the -parallel example in the main description text: "5all" should be
"all5".  Reword the description a bit to hopefully make it clearer that
there are two separate values set here.  Note under the option description
of -parallel that multiple partitions on the same device are normally
processed serially.
2009-02-02 01:19:00 +00:00
Russ Allbery
f204e4e37f man-page-vos-examine-copy-date-20090201
LICENSE BSD

Document the Copy field of vos examine output.
2009-02-02 01:12:02 +00:00
Jeffrey Altman
7f371c5309 windows-tests-torture-enforce-querypath-info-errors-20090201
LICENSE BSD

change nb_qpathinfo() 'Flag' to a thread local storage variable
'EnforcePathInfoErrors'.

Add new 'Type' values that permit the enforcement to be turned on and off
as needed by the test script.

Populate the IoBuffer with the low byte of the pid value.

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

Verified the state of every file's existence at every Query Path Info
call in the script.  Added 'Type' == 1 (Does not Exist) as needed.
Removed the use of 'Type' == 1111 to disable enforcement part way through.
2009-02-01 21:57:10 +00:00
Jeffrey Altman
652c361054 windows-tests-torture-scripts-20090131
LICENSE MIT

Add some additional example scripts
2009-02-01 00:26:40 +00:00
Jeffrey Altman
3769240ac4 windows-tests-torture-source-20090131
LICENSE MIT

Do not unload afsrpc.dll as it cannot clean up after itself and
become safe to reload.

Instead of reporting that the AFS client is off-line, report the
path that is unreachable.
2009-02-01 00:18:26 +00:00
Jeffrey Altman
5981379dea windows-tests-torture-20090131
LICENSE MIT

rename torture.exe to wintorture.exe to match the name expected by stress.exe

increase length of "Locker" to permit longer paths

do not strip \\afs unc server name.  treat all unc paths equal

add GetLastError values to logged error messages

clarify error messages when missing input params

print all errors on a single line.  quote paths and command strings

fix the initialization of the IoBuffer for writes.  initialize the
whole buffer not just the sizeof(pointer)

remove the static declaration of Flag in nb_qpathinfo()

obtain real HANDLEs for directories.  Do not fake them.
2009-01-31 17:05:02 +00:00
Jeffrey Altman
1e01bdc8e1 windows-tests-20090130
LICENSE BSD

build all of the tests
2009-01-31 06:42:39 +00:00
Jeffrey Altman
7c4ceecbd9 windows-tests-torture-20090130
LICENSE MIT

Port to Win64

Integrate with OpenAFS build environment

Build without warnings

Add nb_flush() implementation
2009-01-31 06:39:48 +00:00
Jeffrey Altman
e01ffce669 windows-tests-largefiles-20090130
LICENSE BSD

permit the largefiles test to build under the openafs build system
2009-01-31 03:42:29 +00:00
Jeffrey Altman
b557da03d5 windows-test-winflock-20090130
LICENSE BSD

permit winflock to build under the openafs build system
2009-01-31 03:37:18 +00:00
Asanka Herath
a9bc4bf32c windows-tests-nm-20090130
LICENSE BSD

A test application that produces verifiable random test files.

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

make it build in the openafs build tree
2009-01-31 03:08:55 +00:00
Simon Wilkinson
175393288d linux-vmtruncate-20090130
LICENSE IPL10
FIXES 124128

use linux's vmtruncate feature instead of doing a somewhat-right internal version
2009-01-30 14:36:13 +00:00
Tom Keiser
ff795a12c5 dafs-vnode-close-race-20090129
LICENSE IPL10
FIXES 124223

address race between VCloseVnodeFiles_r and VGetFreeVnode_r
2009-01-29 17:06:41 +00:00
Derrick Brashear
47e99e36fd discon-diskslot-linux-20090129
LICENSE IPL10

build in the linux case on non-disconnected
2009-01-29 16:05:05 +00:00
Derrick Brashear
df139845e9 discon-remove-fix-20090128
LICENSE IPL10

fix my own error
2009-01-28 22:39:04 +00:00
Jeffrey Altman
35cc76c21e rx-no-more-register-20090128
LICENSE BSD

kill off use of register in rx
2009-01-28 22:33:17 +00:00
Jeffrey Altman
226cf894b6 rx-pthread-mutex-protects-threadcount-20090128
LICENSE BSD

add protection of previously unprotected thread count variables
2009-01-28 21:34:33 +00:00
Simon Wilkinson
7cd7bcdc4c discon-avoid-looping-on-replay-20090128
LICENSE IPL10
FIXES 124203

don't defer based on a shadow copy
2009-01-28 21:13:58 +00:00
Simon Wilkinson
cc2f0d2bc5 disconnected-reply-no-locking-yet-20090128
LICENSE IPL10
FIXES 124202

don't lock files before replaying changes yet
2009-01-28 21:02:16 +00:00
Jeffrey Altman
1cca08960b rx-atomic-macros-and-variables-20090127
LICENSE BSD

adds macros to support accessing some variables as atomics, when atomic
support is available; otherwise falls back to mutex-protected access.
2009-01-28 20:35:50 +00:00
Derrick Brashear
af61732e4a disconnected-deal-with-unlink-while-open-20090127
LICENSE IPL10
FIXES 124178

treat something as unlinked until a rename suceeds, then let that win
2009-01-28 15:52:42 +00:00