4014 Commits

Author SHA1 Message Date
Jeffrey Altman
53f6c22a2b rx-rdwr-type-casting-20060523
type cast correctly
2006-05-23 05:47:29 +00:00
Jeffrey Altman
36f3bafb44 windows-aklog-afsid-lookup-20060519
if the cell matches the realm, do not lookup with realm
2006-05-20 04:14:07 +00:00
Jeffrey Altman
69c7d8ae70 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
2006-05-13 15:22:20 +00:00
Jeffrey Altman
f6833e96f9 windows-smb-vcp-cleanup-races-20060511
Only allow one thread to mark the vcp dead
2006-05-11 13:36:06 +00:00
Derrick Brashear
bcabba9941 viced-writevalloc-dont-vtakeoffline-20060510
random errors shouldn't take the volume offline
2006-05-10 05:51:41 +00:00
Jim Rees
40916b821a fbsd-saddr-20060509
Small fixes to get sockaddr_storage changes working on FreeBSD
2006-05-09 19:41:47 +00:00
Jim Rees
e55549af14 snprintf-20060509
Change sprint to snprintf
2006-05-09 16:49:49 +00:00
Jeffrey Altman
66596cc677 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
2006-05-09 06:18:08 +00:00
Jeffrey Altman
3a5acf0f09 bringing-rx-into-21st-century-20060504
rx_InitHost() port is in network byte order
2006-05-09 05:15:47 +00:00
Jeffrey Altman
cabc803a62 windows-less-power-mgmt-logging-20060508
comment out some of the power mgmt log entries
reducing the size of afsd_init.log
2006-05-09 02:37:30 +00:00
Jeffrey Altman
77fbc6a158 windows-smb-vcp-clean-20060508
don't grab the vcp mutex after releasing the vcp
2006-05-09 02:34:20 +00:00
Jeffrey Altman
f86e9dfd7b windows-osi-lock-validate-20060508
perform lock type validation
2006-05-09 02:30:37 +00:00
Derrick Brashear
9480277771 macos-packaging-oops-20060508
no plugin yet
2006-05-08 20:26:38 +00:00
Jeffrey Altman
c4b6c57f67 windows-manifests-20060505
embed manifests when building tools needed for building OpenAFS
mp-rxtcp-20060505
2006-05-05 19:26:51 +00:00
Jeffrey Altman
ada9819fd6 viced-host-logging-20060505
another place where dotted notation and port numbers were not being used
in log output.
2006-05-05 17:27:21 +00:00
Jeffrey Altman
86ff4c4d6b windows-wix-vs8-20060505
Enable wix installers to build with VS8 compiler on X86
2006-05-05 16:50:21 +00:00
Jim Rees
c17eb1925c cast-sockaddr-20060505
Cast sockaddr_in to eliminate warning
2006-05-05 15:37:28 +00:00
Ken Hornstein
62afc0a8c1 more-rx-updates-20060504
Suppress warnings from prototype changes.
Trial code for OpenBSD support.
Fix missing piece from UKERNEL.

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

IPv6 support for Windows requires the use of ws2tcpip.h and associated
restructing of include file order.
2006-05-05 06:47:37 +00:00
Ken Hornstein
9b6343e203 bringing-rx-into-21st-century-20060504
Large series of changes to replace the use of afs_uint32 for IP address
with struct sockaddr_storage in Rx.  May even work with IPv6, but only
tested with IPv4.  Significant change to internal APIs; existing external
APIs kept, new ones added that take struct sockaddr_storage arguments.
2006-05-04 22:23:17 +00:00
Jeffrey Altman
ea3ed375e8 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
2006-05-04 05:54:19 +00:00
Tommie Gannert
97a9d19643 windows-ansi-filenames-fix-20060430
FIXES 31202

Remember to perform an OemToChar() conversion of the file name being
queried in Trans2QueryFileInfo
BP-openafs-devel-1_5_x
2006-04-30 05:58:28 +00:00
Tommie Gannert
702e3346f3 vlserver-rxmaxmtu-fix-20060426
use 'index' as offset to argv
2006-04-26 16:22:33 +00:00
Jeffrey Altman
bf7404c351 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
openafs-devel-1_5_1
2006-04-27 16:49:55 +00:00
Rainer Toebbicke
b2b3aa1afb namei-delay-fsync-20060426
FIXES 30632

group fsync calls to speed up operations
2006-04-26 16:43:17 +00:00
Derek Atkins
9677ca3186 os-probe-linux-2-6-9-20060426
FIXES 30514

make this work on 2.6.9
2006-04-26 16:40:43 +00:00
Christof Hanke
811b7f89e8 pam-configure-optmz-20060426
FIXES 30659

get rid of hardcoded optimize flags
2006-04-26 16:36:21 +00:00
Derrick Brashear
5452bc3709 md5-fix-20060426
the user struct macros hate us
2006-04-26 16:03:20 +00:00
Jeffrey Altman
a88cb6c662 linux-probe-missing-commas-20060426
FIXES 30977

Add missing commas for non-2.6 x86_64 platforms
2006-04-26 14:56:31 +00:00
Jeffrey Altman
ecdc5aca34 viced-write-locking-fix-20060425
According to src/libacl/prs_fs.h the PRSFS_LOCK privilege is only supposed
to control read-locks.  The PRSFS_WRITE and PRSFS_INSERT privileges are
supposed to control write-locks.
2006-04-25 07:40:48 +00:00
Jeffrey Altman
7d46e23621 windows-version-20060424
1.5.1
2006-04-24 16:02:48 +00:00
Jeffrey Altman
67a28f0875 windows-notes-20060424
notes for 1.5.1
2006-04-24 16:00:50 +00:00
Jeffrey Altman
edff1e8788 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.
2006-04-24 15:25:12 +00:00
Jeffrey Altman
237ab6e5ba windows-insert-locking-without-afsid-20060422
This patch disables the lookup of the user's AFSID and instead solves
the problem by tracking which cm_user_t created the file.  If the user
is unable to obtain a write lock and is the creator, then we check for
the Insert bit.  Otherwise, we deny access.
2006-04-22 20:44:28 +00:00
Jeffrey Altman
d463c0f7c6 windows-vista-20060421
Vista has a bug in the Netbios ADAPTER_STATUS output in which the
first four bytes of the MAC address with 127.0.0.1.  We must check
for that when searching for the Loopback Adapter.
2006-04-22 04:45:47 +00:00
Jeffrey Altman
106d23c3ec windows-notes-20060421
updates post 1.5.0
2006-04-21 16:08:17 +00:00
Jeffrey Altman
dc39c28d68 windows-rx-init-fallback-20060421
when the cache manager is being frequently restarted (especially during
debugging) the 7001/udp port is often not freed appropriately.  This
prevents the cache manager from running.  This patch allows the cache
manager to retry with a random port number.
2006-04-21 16:03:34 +00:00
Jim Rees
507f4f14f8 openbsd-packaging-20060421
Use tar and shell scripts instead of pkg_ for packaging.  The new package
system apparently depends on ports and can't be used standalone.
2006-04-21 15:58:38 +00:00
Jeffrey Altman
270e5a9077 windows-wix-20060421
missing close paren
2006-04-21 14:52:02 +00:00
Asanka Herath
625d0a2016 windows-wix-32bit-tools-20060420
Add support for build a 32-bit tools package for use on 64-bit Windows.
2006-04-21 05:57:55 +00:00
Asanka Herath
4a1296c25a windows-client-side-locking-20060420
In order to make the client side locking more usable, if the client
is denied a lock by the server and the user only has read privileges,
then we will allocate a local lock.  Local locks are not allocated
for write locks.

There is a bug in the file server locking dating back to at least
AFS 3.1 in which the lock privilege is used for read, write and insert
locks.  According to the docs, the lock privilege is only supposed to
control read locks.  Write locks on new and existing files are supposed
to be controlled by the Write and Insert privileges.  This will be fixed
in the file server by another commit.
2006-04-20 19:52:03 +00:00
Jeffrey Altman
01fe275679 windows-query-afsid-20060420
In order to properly handle the local allocation of locks
the cache manager must enforce the locking rules associated
with PRSFS_WRITE and PRSFS_INSERT and PRSFS_LOCK.  Insert
affects "new files" which in AFS are defined as any file that
is owned by the user.  Therefore, we must know the afsid of the
user so that it can be compared to owner of the file.

This commit includes a query using PR_SNameToId where the name
is the name specified by the entity setting the token.  There
does not currently exist a Protection Service RPC to return the
AFSID of the entity that the rx connection was authenticated as.
Such a function will have to be added in order to make this
functionality secure.

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

Export functions missing from the UNIX version and the PR_ functions
required by the Windows Cache Manager.
2006-04-20 18:19:22 +00:00
Jeffrey Altman
06250078ec rx-dpf-20060417
fix dpf to print the right thing and not simply fail to compile
2006-04-17 19:59:41 +00:00
Jeffrey Altman
8074632d69 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.
2006-04-17 16:20:50 +00:00
Andrew Deason
f8103d800d vos-date-parse-errmsg-20060417
FIXES 30218

use the correct index value when printing the invalid date string
2006-04-17 15:59:04 +00:00
Tom Keiser
c77421ff08 aix-build-fix-20060413
FIXES 30089

don't include this other than in kernel
2006-04-14 14:12:16 +00:00
Derrick Brashear
bbf4620d2d irix-ifnet-flags-20060413
make ifnet_flags b e defined for irix also
2006-04-13 22:08:19 +00:00
Derrick Brashear
4d91ee63ef inode-64bit-type-20060411
use a 64 bit type for 64 bit inode size with inode fileserver
2006-04-11 20:40:19 +00:00
Rainer Toebbicke
9ebf2fed4a backup-dump-parameter-fix-20060411
this is a pointer, not an int, pass in NULL not 0
2006-04-11 20:27:03 +00:00
Jeffrey Altman
f1ef60c020 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.
2006-04-10 18:57:33 +00:00
Russ Allbery
b85118420f man-page-fs-listquota-perms-20060410
fs listquota requires read on the directory, not list.
2006-04-10 17:41:22 +00:00