3602 Commits

Author SHA1 Message Date
Jeffrey Altman
b8f04cfcc1 DEVEL15-windows-smb-vcp-clean-20060508
don't grab the vcp mutex after releasing the vcp


(cherry picked from commit 77fbc6a158a570f1816c87433c0e4c44c0fc8fce)
2006-06-01 16:36:31 +00:00
Jeffrey Altman
4a832c22dd DEVEL15-windows-osi-lock-validate-20060508
perform lock type validation


(cherry picked from commit f86e9dfd7b97e1e26730be2d960bef004d3d3a1f)
2006-06-01 16:36:18 +00:00
Derrick Brashear
4deecaa712 DEVEL15-macos-packaging-oops-20060508
no plugin yet


(cherry picked from commit 948027777114c8061aaed3818dbdd836cfd87b11)
2006-06-01 16:36:02 +00:00
Jeffrey Altman
4c39d78ef2 DEVEL15-viced-host-mobile-client-20060505
log the old addr, not the new one


(cherry picked from commit 69c7d8ae707fd1a145b8eec756526603ddd370b7)
2006-06-01 16:35:55 +00:00
Jeffrey Altman
765b8b2277 DEVEL15-windows-manifests-20060505
embed manifests when building tools needed for building OpenAFS


(cherry picked from commit c4b6c57f6706cf3672294c23a232d84aff107812)
2006-06-01 16:35:46 +00:00
Jeffrey Altman
32bf7fc8e3 DEVEL15-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-06-01 16:35:40 +00:00
Jeffrey Altman
83c677f550 DEVEL15-windows-wix-vs8-20060505
Enable wix installers to build with VS8 compiler on X86


(cherry picked from commit 86ff4c4d6bd264210990b57cbdbbf6b40d742716)
2006-06-01 16:35:27 +00:00
Jeffrey Altman
52dc1ea0ad DEVEL15-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-06-01 16:31:52 +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
Jeffrey Altman
632d0c701b windows-getvolstatus-20060408
don't prevent all calls to getvolstatus, just the ones that are
not AFS pioctl calls.
2006-04-09 08:28:58 +00:00
Jeffrey Altman
b9f22f0b7b windows-protect-against-vcp-undercount-20060408
An undercount has been detected of the smb_vc_t objects stored
in the smb_allVCsp list.  Unfortunately, we have yet to be able
to find the cause of the undercount so this patch adds logic to
protect against the side effects until such time as the cause
can be identified.
2006-04-09 05:52:38 +00:00
Jeffrey Altman
9817af2a81 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.
2006-04-08 20:40:15 +00:00
Jim Rees
b9282fbe0f bsd-md5-20060407
Use kernel md5 on bsd.
2006-04-07 18:26:49 +00:00
Jeffrey Altman
78bb852509 xstat_fs-fix-20060407
as pointed out by cg2v@andrew.cmu.edu the addition of performance
collection data for the GetCapabilities RPC broke backward compatibility
with previous builds because it altered the size of the data structure
sent on the wire.

Instead we count the number of GetCapabilties calls but do not gather
performance timing data as this can be done using spare fields.
2006-04-07 06:34:26 +00:00
Chaskiel M Grundman
714df78689 linux24-fix-osi-probe-20060407
linux-updates-20060331 broke 2.4 kernels
2006-04-07 06:21:38 +00:00
Jim Rees
1b0f8949f1 calc-inum-linux-only-20060406
Disable md5 inode calc on non-linux.
2006-04-06 15:39:04 +00:00
Derrick Brashear
a67acd0e9a md5-inode-numbers-20060405
FIXES 25849

an interface which lets you select md5 based inode numbers, and the csupporting code

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

an interface which lets you select md5 based inode numbers, and the c^?supportin
g code
2006-04-06 02:24:21 +00:00
Derrick Brashear
b312024676 macos-packaging-update-20060405
FIXES 29226

copy cellservdb if there is none
2006-04-05 14:45:58 +00:00
Jim Rees
e687de8609 test-heimdal-20060217
Add a configure test for heimdal and use it to build asetkey or not.
Thanks to Derek Atkins for his helpful suggestions.
2006-04-05 01:21:56 +00:00
Jim Rees
a64e7f34bd syntax-err-20060404
Fix syntax error (missing braces)
Fix include file ordering
Don't declare *tmpdir extern, we're initializing it here (even though
  there's no reason to)
Fix OnlyOneVolume args to match proto
2006-04-04 22:32:22 +00:00
Derrick Brashear
54ce580ef3 time-t-casting-fixes-20060404
FIXES 15169

hopefully the rest of this
2006-04-04 21:51:13 +00:00