5785 Commits

Author SHA1 Message Date
Tony D'Amato
29ce678676 DEVEL15-redhat-rpms-kernel24-20090216
LICENSE IPL10
FIXES 102673

rewrite make rule for 2.4 kernels


(cherry picked from commit 4817a4a98fe9ccc61c90d8bbc769790ad067339b)
2009-02-17 03:29:37 +00:00
Jeffrey Altman
55f05917e6 DEVEL15-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.


(cherry picked from commit 8e3b67b9537097928b4fc13844db09d429ac9bed)
2009-02-12 21:45:00 +00:00
Jeffrey Altman
cc092d7bfe DEVEL15-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.


(cherry picked from commit 8bb35234aa8469ba93a2171fced503a875c2f1f6)
2009-02-12 21:30:16 +00:00
Jeffrey Altman
d43ca50135 DEVEL15-fix-tsfpq-20090210
LICENSE BSD

avoid transferring more than the number of packets in a queue


(cherry picked from commit 1050049411d1fc47441220c33e6353436fc586e7)
2009-02-10 22:42:50 +00:00
Derrick Brashear
38da9ef09d DEVEL15-restore-unix-rxdebug-20090210
LICENSE IPL10

stale fixes from my sandbox


(cherry picked from commit c12e2fa01912e7950570354c6d059588028c086c)
2009-02-10 22:40:13 +00:00
Jeffrey Altman
c85a24fa0e DEVEL15-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.


(cherry picked from commit 0edbc512b52848f076525ede5ff166f3785128a7)
2009-02-07 17:22:46 +00:00
Asanka Herath
174cd9d781 DEVEL15-windows-netidmgr-progress-20090205
LICENSE MIT

add progress reporting to the provider.


(cherry picked from commit b842ee3ea521a196652ff2d09d468ca008cececc)
2009-02-06 03:14:21 +00:00
Jeffrey Altman
a529552f51 DEVEL15-windows-freelance-20090204
LICENSE MIT

set the correct fid vnode/unique values when adding new symlnks and
mount points.


(cherry picked from commit ffdc7c70889386dca37e207a91791d5d0728d2d7)
2009-02-05 00:24:42 +00:00
Mike Meffie
073fb89d2c DEVEL15-upclient-cleanup-temp-files-20090203
LICENSE IPL10
FIXES 124221

remove tempfiles in the event of a fetching error


(cherry picked from commit 58a924fd50e96c827fc6dd3dcea48328b6abe4be)
2009-02-03 19:44:39 +00:00
Simon Wilkinson
848db9a002 DEVEL15-rename-internal-gettimeofday-refs-20090203
LICENSE IPL10
FIXES 124259

switch to using fasttime, instead of wrapper


(cherry picked from commit 1811577fca393c4433de64ea6e1cd5a8d13521a3)
2009-02-03 19:42:27 +00:00
Simon Wilkinson
4b997f0067 DEVEL15-redhat-packaging-non-stable-branches-20090203
LICENSE IPL10
FIXES 124273

make rpm stuff work for other than 1.4.x


(cherry picked from commit 0ac1e741783e0d5b0cbb8ec665e0acab132f6265)
2009-02-03 19:37:50 +00:00
Simon Wilkinson
ee2175a020 DEVEL15-redhat-packaging-updates-20090203
LICENSE IPL10
FIXES 124272

adds fc10, fc11 support


(cherry picked from commit fe3779411ea025d5ecf40687d5c21649e6daabdc)
2009-02-03 19:34:20 +00:00
Russ Allbery
82f25debf9 DEVEL15-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.


(cherry picked from commit d4763404655e27098eb4340eca8777b63d8a5847)
2009-02-02 01:23:06 +00:00
Russ Allbery
31bb6b0120 DEVEL15-man-page-vos-examine-copy-date-20090201
LICENSE BSD

Document the Copy field of vos examine output.


(cherry picked from commit f204e4e37f39fa15beabf68e68dce1f6425f7513)
2009-02-02 01:22:34 +00:00
Simon Wilkinson
fc7717096a DEVEL15-linux-vmtruncate-20090130
LICENSE IPL10
FIXES 124128

use linux's vmtruncate feature instead of doing a somewhat-right internal versio
n


(cherry picked from commit 175393288df30ca88178ee98cdfff364bffbabb7)
2009-01-30 14:36:24 +00:00
Tom Keiser
ede2cb1feb DEVEL15-dafs-vnode-close-race-20090129
LICENSE IPL10
FIXES 124223

address race between VCloseVnodeFiles_r and VGetFreeVnode_r


(cherry picked from commit ff795a12c50d0fa59d2b3ad0b383309b9a4e939d)
2009-01-29 17:06:52 +00:00
Derrick Brashear
328fffda8b DEVEL15-discon-diskslot-linux-20090129
LICENSE IPL10

build in the linux case on non-disconnected


(cherry picked from commit 47e99e36fd40c55be7a5d947fb096d6f6f2c0ae4)
2009-01-29 16:05:16 +00:00
Derrick Brashear
aa7be50728 DEVEL15-discon-remove-fix-20090128
LICENSE IPL10

fix my own error


(cherry picked from commit df139845e9f83cd15f3b0ab8dcbb27781c811642)
2009-01-28 22:39:13 +00:00
Jeffrey Altman
2ed1c68c04 DEVEL15-rx-no-more-register-20090128
LICENSE BSD

kill off use of register in rx


(cherry picked from commit 35cc76c21ebb48a2257254798a57afac083896ee)
2009-01-28 22:33:28 +00:00
Jeffrey Altman
2e7e916a18 DEVEL15-rx-pthread-mutex-protects-threadcount-20090128
LICENSE BSD

add protection of previously unprotected thread count variables


(cherry picked from commit 226cf894b65c62225785180dfeeed0ec1c1a160b)
2009-01-28 21:34:51 +00:00
Simon Wilkinson
64e47bb98b DEVEL15-discon-avoid-looping-on-replay-20090128
LICENSE IPL10
FIXES 124203

don't defer based on a shadow copy


(cherry picked from commit 7cd7bcdc4ca6787e19c12485f70fabb8f4f9f00b)
2009-01-28 21:14:32 +00:00
Simon Wilkinson
cbb930673a DEVEL15-disconnected-reply-no-locking-yet-20090128
LICENSE IPL10
FIXES 124202

don't lock files before replaying changes yet


(cherry picked from commit cc2f0d2bc52e980c376188888faa27cd37b0eccc)
2009-01-28 21:02:28 +00:00
Derrick Brashear
8a81664b9e DEVEL15-disconnected-deal-with-unlink-while-open-20090127
LICENSE IPL10
FIXES 124178

treat something as unlinked until a rename suceeds, then let that win


(cherry picked from commit af61732e4aaac8e09369addde0ec31a88fad8964)
2009-01-28 15:52:52 +00:00
Jeffrey Altman
0c2d43b5f6 DEVEL15-rx-windows-debugging-20090127
LICENSE MIT

separate rx debugging from cache manager debugging.
assign bit 5 of the TraceOption registry value to activation of
rx debug output via DebugOutputString().


(cherry picked from commit 50d57f6c7b325cb9576f33845cac60e1523f661e)
2009-01-27 17:49:15 +00:00
Jeffrey Altman
1ac9ac2cd4 DEVEL15-windows-libafsrpc-20090127
LICENSE MIT

confirmed that rx_ReadvProc, rx_WritevProc, and rx_WritevAlloc are
properly implemented for Windows.  Add them to the public export list.

Add rx_ReadProc32 and rx_WriteProc32 to the public export list.


(cherry picked from commit 306a7761b3f2f7ec0d2909e1048ecd39e9c9cfd7)
2009-01-27 17:09:38 +00:00
Jeffrey Altman
028cf5da91 DEVEL15-windows-dcache-20090127
LICENSE MIT

Use the optimized rx_Read32 call instead of the slower rx_Read when
reading 32-bit integer values.


(cherry picked from commit bc558c75dcad12c7f45443c8e191b554b5d0c887)
2009-01-27 17:06:23 +00:00
Mike Meffie
6f7011b335 DEVEL15-dafs-vol-offline-race-20090127
LICENSE IPL10
FIXES 124215

avoid race when taking volumes offline in dafs


(cherry picked from commit 72d502be69ea3208634bb0665fd37e990d1fa38e)
2009-01-27 14:24:33 +00:00
Jeffrey Altman
ee3f5dfda9 DEVEL15-rx-windows-xmit-20090126
LICENSE MIT

The WinSock API does not include the Posix recvmsg/sendmsg interfaces.
Beginning with XP/2003 Microsoft began to support WSARecvMsg which is
a mostly compatible implementation of recvmsg.  In Vista/2008 Microsoft
began to support WSASendMsg a mostly compatible implementation of sendmsg.

Neither are part of the WinSock API and therefore they must be loaded
at runtime via a WSAIoctl() call to obtain the function pointers.
When the functions are available it is now possible to avoid a large
number of memcpy() calls.

This patch also enables UDP port unreachable messages on XP and above.


(cherry picked from commit a4f63a818eea476efa456132ca6112329ef8a484)
2009-01-27 06:05:04 +00:00
Jeffrey Altman
3923a8ffe5 DEVEL15-rx-slow-write-packet-20090126
LICENSE MIT

In rx_SlowWritePacket the use of RX_MAXWVECS was incorrect.  The
niovecs field is allocated as [RX_MAXWVECS+1] with the 0th element
reserved for the rx header.  niovecs[RX_MAXWVECS] is therefore a
valid data buffer and the comparison should be (i <= RX_MAXWVECS).

This error has most likely not been noticed previously because
nothing in the OpenAFS source tree uses this function.


(cherry picked from commit 6e8039e8a55056f19895036ef6784f4fab5ab758)
2009-01-26 22:54:06 +00:00
Simon Wilkinson
68e3572584 DEVEL15-discon-allow-saving-vcaches-on-shutdown-20090126
LICENSE IPL10
FIXES 124211

restructure so we can save info necessary to keep dirty changes across offline
shutdown


(cherry picked from commit 8552f84b8ed0bce52dab1fd168054038d6ce20a9)
2009-01-26 19:38:09 +00:00
Jeffrey Altman
ce42351755 DEVEL15-windows-btree-dir-enum-20090126
LICENSE MIT

Modify the cm_BPlusDirEnum interface:

* add the cm_scache_t * of the directory being enumerated to the
  cm_direnum_t object

* remove the cm_scache_t * from the cm_BPlusDirEnumBulkStat call
  now that it is part of the cm_direnum_t object

* maintain a reference to the cm_scache_t for the life of the
  cm_direnum_t object.  This ensures that the object cannot be
  recycled while the enumeration is in use.


(cherry picked from commit e42a066da153750077b154e27249b5b4862724db)
2009-01-26 15:50:59 +00:00
Simon Wilkinson
f93da82161 DEVEL15-disconnected-lseek-extension-20090126
LICENSE IPL10
FIXES 124200

make extending a file by lseek make the extension-created parts as cache
chunks


(cherry picked from commit 7a01a35adfc8f3124a259e682ea1555cb9ed7df2)
2009-01-26 13:42:15 +00:00
Simon Wilkinson
3479a42592 DEVEL15-disconnected-symlink-support-20090125
LICENSE IPL10
FIXES 124177

allow creation of symlinks while disconnected


(cherry picked from commit d2960e5442bb7a7f4730d2a918d8cfb5a409d05c)
2009-01-25 14:52:49 +00:00
Simon Wilkinson
50ad15d5a4 DEVEL15-disconnected-clear-cstatd-on-reconnect-20090125
LICENSE IPL10
FIXES 124180

don't treat any information we forged as being valid while offline as valid


(cherry picked from commit 58ab0e7c58e1e8cde3fd7595d25b3537062276b3)
2009-01-25 14:48:39 +00:00
Simon Wilkinson
f4c57fbce2 DEVEL15-linux24-update-20090123
LICENSE IPL10

make things work on linux 2.4 again


(cherry picked from commit b690aa8f8139c2b52a1d0dca12e89aad57a9161d)
2009-01-23 15:20:46 +00:00
Simon Wilkinson
0f73c7ebca DEVEL15-disconnected-allow-larger-directories-20090123
LICENSE IPL10
FIXES 124182

allow directories larger than a chunk


(cherry picked from commit c93e751599db8b8b1515a400ce398a4d365be782)
2009-01-23 14:44:41 +00:00
Simon Wilkinson
555bf5c3df DEVEL15-linux-nfstrans-test-20090123
LICENSE IPL10

test for nfs translator before enabling


(cherry picked from commit 9093f0cf1594c72d9849ed6d4d9ab1532d0185c5)
2009-01-23 14:31:43 +00:00
Matt Benjamin
7ae41326dc DEVEL15-fbsd-ustrategy-20090122
LICENSE IPL10

make freebsd ustrategy correct


(cherry picked from commit 6742f2054ac96bcec19c01d408542c94de9a55f1)
openafs-devel-1_5_57
2009-01-22 21:49:15 +00:00
Mike Meffie
c5b1b485cf DEVEL15-hpux-readdir2-prototype-20090123
LICENSE IPL10
FIXES 124187

fix typo in prototype


(cherry picked from commit 85fa1b132ae93a48dfb73155921245106f31f586)
2009-01-22 21:42:38 +00:00
Matt Benjamin
b0bff7cb05 DEVEL15-fbsd-ignore-sigsys-20090123
LICENSE IPL10
FIXES 123867

wrong but a step forward


(cherry picked from commit 6784222ac1741d9da18ba5d66fdd5057343ab8b1)
2009-01-22 21:38:55 +00:00
Matt Benjamin
662e220b5e DEVEL15-obsd44-pass1-20090123
LICENSE IPL10
FIXES 123830

first pass at openbsd 4.4


(cherry picked from commit 35a760632da0f15240153cb17ae96e0981e2c8c4)
2009-01-22 21:29:06 +00:00
Derrick Brashear
1d992f64cb DEVEL15-klog-krb5-link-order-20090122
LICENSE IPL10

match the (bad) link order used elsewhere


(cherry picked from commit db15872a7ee0d1c666502f8da8c8c27c36159110)
2009-01-22 21:19:57 +00:00
Derrick Brashear
82dee0988a DEVEL15-disconnected-no-inline-on-irix-20090122
LICENSE IPL10

make this compile on irix


(cherry picked from commit 90f9073dde7041534d448083eaeabbc61d7563f9)
2009-01-22 20:20:01 +00:00
Derrick Brashear
2d024d64d0 DEVEL15-disconnected-call-makedir-with-correct-casting-20090122
LICENSE IPL10

another find by the irix compiler.


(cherry picked from commit 396b573b12a509b7e0d8d5094ebadc12c6aa8b45)
2009-01-22 20:11:56 +00:00
Derrick Brashear
e44ab38be1 DEVEL15-bcdb-listdumps-argument-fix-20090122
LICENSE IPL10

prototype caught this. oops.


(cherry picked from commit d6c5d0bbb09f84476d7928e62921a4aa01cd17ed)
2009-01-22 19:33:14 +00:00
Derrick Brashear
f94429ef3d DEVEL15-volserver-manage-inuse-better-20090122
LICENSE IPL10
FIXES 124142

V_PEEK/V_SECRETLY should not change inUse. servertype based inUse should not
leak past giving back a volume.


(cherry picked from commit 92cf4d996f91e895b8995d41419b32843a40b9fb)
2009-01-22 19:12:51 +00:00
Jeffrey Altman
9cd0c5ae7e DEVEL15-windows-version-20090122
LICENSE MIT

1.5.57 == 1.5.5700.0
2009-01-22 17:05:50 +00:00
Derrick Brashear
b14c470f9f DEVEL15-openafs-1-5-57-20090122
LICENSE IPL10

make 1.5.57
2009-01-22 16:44:03 +00:00
Jeffrey Altman
4af98ba756 DEVEL15-windows-release-notes-20090122
LICENSE MIT

1.5.57
2009-01-22 16:05:20 +00:00
Jeffrey Altman
8d64e84223 DEVEL15-windows-notes-20090122
LICENSE MIT

notes for 1.5.57
2009-01-22 16:02:12 +00:00