3617 Commits

Author SHA1 Message Date
Jeffrey Altman
4718ac247d STABLE14-windows-version-20060604
1.4.0151 == 1.4.2-beta-1


(cherry picked from commit 36da63e03de7230b8464a50a58acf732ce994ff2)
2006-06-05 04:30:02 +00:00
Jeffrey Altman
9540751074 STABLE14-windows-notes-20060604
updates


(cherry picked from commit 54eed0930a36c54db73f8e2d10c28b99c2c1e6bb)
2006-06-05 02:34:42 +00:00
Jeffrey Altman
eaff719ec4 STABLE14-viced-swap-old-cbcon-diff-20060603
FIXES 32985

swap cbconn when other side changes IPs


(cherry picked from commit b30dcf9738d7fa87f8da4afa1f024376130b80a9)
2006-06-04 07:12:52 +00:00
Jeffrey Altman
a2816a4047 STABLE14-windows-scache-recycle-20060603
A deadlock was detected when performing "fs flushall" if the file
server reports VNOVNODE.   The scp->createBufferLock is already
held by the current thread and there is no mechanism to propagate
the knowledge.  Therefore, an alternate mechanism for clearing the
cache must be developed.  A new function cm_RecycleSCache(scp,flags)
has been extracted from cm_GetNewSCache().  This function performs
the task of recycling an cm_scache_t object.  When called from
cm_GetNewSCache() with no flags the expectation is that there are
no associated buffers that are queued to be read or written.  When
called from cm_Analyze() with the CM_SCACHE_RECYCLEFLAG_DESTROY_BUFFERS
flag, any queued buffers will be de-queued and marked as if the operations
were performed so the data can be discarded.

This patch also addresses the following issues:

* CM_ERROR codes were logged as "unknown" by cm_Analyze.

* In response to VNOVNODE, the parent is only discarded if the current
  cm_scache_t is not a directory.

* In the Ioctl FlushFile and FlushVolume functions, there were no
  checks to protect against flushing the Freelance SCache entries.

* In FlushFile, the wrong cm_scache_t object was being released.

* In cm_GetNewSCache, do not allow Freelance SCache entries to be
  recycled.  Choose a new entry if cm_RecycleSCache fails.


(cherry picked from commit f4f09d1c03cf738de6f73fc9d56502babd6743b4)
2006-06-03 18:57:12 +00:00
Chaskiel M Grundman
2d1e99314b STABLE14-flock-handle-uae-errors-20060601
handle uae versions of errors for flock locks
2006-06-02 22:23:52 +00:00
Jeffrey Altman
0b4a42a529 STABLE14-windows-notes-20060602
1.4.1d
openafs-stable-1_4_1d
2006-06-02 16:45:28 +00:00
Jeffrey Altman
953d64b138 STABLE14-windows-smb-fid-mx-lock-20060602
add a lock that was lost during the pullups before 1.4.1c
2006-06-02 16:39:42 +00:00
Chaskiel M Grundman
c292880869 STABLE14-flock-handle-uae-errors-20060601
handle uae versions of errors for flock locks
2006-06-01 17:02:31 +00:00
Joe Buehler
f0b510bb6f STABLE14-linux-vfsops-remove-redundant-code-20060601
FIXES 32783

remove redundancy


(cherry picked from commit 3fdb1902c04153e3522e36c091b073dc7419ac65)
2006-06-01 16:59:56 +00:00
Jeffrey Altman
197cc21fe1 STABLE14-windows-notes-20060531
1.4.1c
openafs-stable-1_4_1c
2006-06-01 04:58:01 +00:00
Jeffrey Altman
ebedc461f4 STABLE14-windows-smb-fid-faster-20060531
Speed up the performance of the cache manager by not holding the
smb_fid_t mutex across calls to cm_SyncOp and AFS RPCs.

Ensure that all smb_fid_t flag references are protected.


(cherry picked from commit 87313c96b1271b4730a27dcee1b6c062b0a37425)
2006-06-01 04:48:19 +00:00
Jeffrey Altman
7fdb2a0b31 STABLE14-windows-version-20060531
1.4.1c == 1.4.0104
2006-06-01 04:42:15 +00:00
Derrick Brashear
91f8a8ed98 STABLE14-fix-rx-getaddr-20060531
(cherry picked from commit 397fb82b694e72d9259aaa7264ca432c007bdb6f)
2006-05-31 21:39:13 +00:00
Derek Atkins
2fe1a1f830 STABLE14-os-probe-linux-2-6-9-20060426
FIXES 30514

make this work on 2.6.9


(cherry picked from commit 9677ca31860dd39749e7b3c2695d7209c1737cb6)
2006-05-31 18:40:57 +00:00
Jim Rees
24abbf148a STABLE14-obsd39-20060531
pull up changes for OpenBSD 3.8/3.9 to 1.4.x branch
2006-05-31 17:01:45 +00:00
Jeffrey Altman
767677783f STABLE14-windows-smb-fid-deadlock-20060530
remove a deadlock introduced in 1.4.1


(cherry picked from commit 134669a912a99b212fb4768d2a9a969cda5fffff)
2006-05-30 17:57:38 +00:00
Jeffrey Altman
9b16804c5f STABLE14-windows-get-acls-20060528
It is possible to have a valid callback but not to have the
required ACL info for the current user.  Force acquisition of
a FetchStatus but do so without making multiple calls.


(cherry picked from commit 83732fdb158e79b64774667ee09fc1b81062707e)
2006-05-29 00:09:52 +00:00
Jeffrey Altman
ffa9ce0c7e STABLE14-windows-notes-20060527
update changelog
2006-05-28 14:58:01 +00:00
Jeffrey Altman
8851009ade STABLE14-windows-vcp-release-fix-20060527
smb_SendPacket cannot release the vcp since it does not own the
reference.
2006-05-28 01:18:29 +00:00
Jeffrey Altman
8a9d284519 STABLE14-windows-access-fetchstatus-20060526
Do not call cm_GetCallback() directly.  Always
use cm_SyncOp(CM_SCACHESYNC_NEEDCALLBACK)


(cherry picked from commit 40415fe265d8e660f3698d8ab7f93004d589f902)
2006-05-26 22:12:41 +00:00
Jeffrey Altman
f41589fef6 STABLE14-windows-dynamic-thread-priority-20060525
Dynamically adjust the priority of server threads based upon the age
of the cifs request that is being processed.  Bump the priority one
level for each 15 seconds of age.


(cherry picked from commit 7ca1a339cb488fd97015e959e2a17e91e9b56409)
2006-05-26 07:38:05 +00:00
Jeffrey Altman
a618bab24c STABLE14-windows-head-tail-queue-removal-20060525
while investigating the cause of the delayed write errors it was observed
that all of the sleep queues are LIFO.  This has the side effect of
encouraging starvation.  Changing the queues to FIFOs revealed a serious
problem affecting the use of all queues which use both head and tail
pointers.  The removal function osi_QRemove does not take a tail pointer
and therefore the pointer is always left hanging.  If the number of elements
ever drops to zero the queue becomes corrupted.

Added osi_QRemoveHT to be used whenever head and tail pointers are used.
Updated all callers in afsd.

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

fix typo caused by pullup failure


(cherry picked from commit c1e79275079cfa68d73cc3a008c3fb3b201f1068)
2006-05-25 18:40:59 +00:00
Jeffrey Altman
4ced6b5f3e STABLE14-windows-smb-mods-20060524
Prevent smb_FindVCP from returning dead virtual circuits

Treat "*." as an alias for "all"


(cherry picked from commit b753ef7265b1970d1e38f3c65532af929102e1d6)
2006-05-25 00:06:48 +00:00
Derrick Brashear
7b9d31013d STABLE14-getaddr-skip-loopbacks-version-for-macos-20060523
so rxbind does something sensible


(cherry picked from commit cefa6b1dce9aa3c12a7afbc0c6b4d68c3444758d)
2006-05-24 16:49:26 +00:00
Hartmut Reuter
40863dc05b STABLE14-rxkad-var-tkt-len-20060523
FIXES 31966

allocate memory for struct rxkad_cprivate based upon the actual
ticket size not the max ticket size


(cherry picked from commit 1344a69c57f6c2b8e0588e4b18b1178bc596f190)
2006-05-23 17:31:02 +00:00
Chas Williams
c4e14aea82 STABLE14-more-rxglock-cleanup-20060126
FIXES 23321

more rx glock cleanup. eval for pullup after 1.4.1


(cherry picked from commit f84de8044aab16ccaf961ba30a36929f2d1f1e50)
2006-05-22 20:08:45 +00:00
Jeffrey Altman
8e51fa393b STABLE14-windows-aklog-afsid-lookup-20060519
if the cell matches the realm, do not lookup with realm


(cherry picked from commit 36f3bafb44aae8472453a1c39e9585b920a1bada)
2006-05-20 04:15:58 +00:00
Jeffrey Altman
cb5cf13571 STABLE14-windows-notes-20060516
notes for 1.4.1b
openafs-stable-1_4_1b
2006-05-16 15:45:10 +00:00
Jeffrey Altman
f2100559d2 STABLE14-windows-version-20060516
1.4.103 == 1.4.1b
2006-05-16 15:34:43 +00:00
Jeffrey Altman
56b310143b STABLE14-viced-host-mobile-client-20060505
Do not delete an old host entry because the UUID because the UUIDs
of the clients at the old addresses are wrong.  Remove the addresses.

Do not allow the same host,addr,port combination to be added into
the hash table multiple times.

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

Add some more logging

Do not allow 'code' to be re-used for probing the uuid of the old host
primary address because we are relying on the value of 'code' to indicate
whether or not RCallBackConnectBack failed.  If it did, we mark the
client as VENUSDOWN, if not we marked it as RESETDONE.

====================

log the old addr, not the new one


(cherry picked from commit 69c7d8ae707fd1a145b8eec756526603ddd370b7)
2006-05-13 15:22:57 +00:00
Jeffrey Altman
eb7ad3002d STABLE14-windows-smb-vcp-cleanup-races-20060511
Only allow one thread to mark the vcp dead


(cherry picked from commit f6833e96f961de1c1d402646c87681f27bf926e9)
2006-05-11 13:37:05 +00:00
Derrick Brashear
38046f6325 STABLE14-viced-writevalloc-dont-vtakeoffline-20060510
random errors shouldn't take the volume offline


(cherry picked from commit bcabba994188a4c88bdae3c5252c9b0de5d163c8)
2006-05-10 06:01:08 +00:00
Jeffrey Altman
93ad76c5d4 STABLE14-windows-addr-change-mods-20060509
When the client changes IP addresses, in order to obtain optimal
performance it must:

(1) force the replacement of all existing rx connections

(2) ping all up and down servers


(cherry picked from commit 66596cc677e8cbf7fa40ad2962ccc4547692afb5)
2006-05-09 06:20:40 +00:00
Jeffrey Altman
d57f679ab9 STABLE14-windows-smb-vcp-clean-20060508
don't grab the vcp mutex after releasing the vcp


(cherry picked from commit 77fbc6a158a570f1816c87433c0e4c44c0fc8fce)
2006-05-09 02:41:17 +00:00
Jeffrey Altman
d0989f7a14 STABLE14-windows-less-power-mgmt-logging-20060508
comment out some of the power mgmt log entries
reducing the size of afsd_init.log


(cherry picked from commit cabc803a62c2f3d20d41356bc177873bcf79c033)
2006-05-09 02:39:06 +00:00
Derrick Brashear
9147779be2 STABLE14-macos-packaging-oops-20060508
no plugin yet


(cherry picked from commit 948027777114c8061aaed3818dbdd836cfd87b11)
2006-05-08 20:28:08 +00:00
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