Commit Graph

3529 Commits

Author SHA1 Message Date
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
Chaskiel M Grundman
62e28d9a0a linux-enroll-locks-20060403
FIXES 25037

enroll our locks in the linux kernels' lock management
2006-04-04 02:41:12 +00:00
Chaskiel M Grundman
ef95f2a0ce vnop-ifdef-cleanup-20060403
make this less messy
2006-04-04 02:35:15 +00:00
Jim Rees
14d6771b9d iso-8601-20060403
Parse a pitiful subset of ISO 8601 in date/time strings
2006-04-03 17:22:30 +00:00
Jeffrey Altman
0fd8768c85 windows-minidump-20060402
change minidump default to include data segments
2006-04-03 00:54:40 +00:00
Jeffrey Altman
f3cf7bcda2 windows-util-makefile-20060402
remove duplicate entry for strlcpy
2006-04-03 00:44:56 +00:00
Chaskiel M Grundman
ea59126e31 linux-updates-20060331
FIXES 29122 29110 29112

fc5 and 2.6.16 updates
2006-03-31 06:51:03 +00:00
Jim Rees
f86af4af26 nat-mode-20060330
Code for "nat mode."  Currently there is no way to set it, because it would
be a bad idea to make this available to the casual user.
2006-03-30 18:13:39 +00:00
Derrick Brashear
d387dba5ef viced-gethostcps-byte-order-20060328
don't call GetHostCPS after swapping away from net byte order
2006-03-30 17:27:52 +00:00
Russ Allbery
5b20ed3511 man-page-asetkey-20060329
Add a man page for asetkey.
2006-03-29 21:44:16 +00:00
Russ Allbery
5f70d9bb3c man-page-kaserver-fix-20060329
SYNOPSIS was mislabelled DESCRIPTION and the man page was therefore missing
the HTML formatting fixes.
2006-03-29 21:00:50 +00:00
Derrick Brashear
2c96a91ba4 viced-client-keep-conn-ref-20060329
FIXES 28966

keep a ref on the conn the client has a pointer to
2006-03-29 06:26:49 +00:00
Derrick Brashear
1904db3fa3 viced-gethostcps-byte-order-20060328
don't call GetHostCPS after swapping away from net byte order
2006-03-29 05:13:58 +00:00
Garry Zacheiss
a4f24472aa afsdb-len-signed-20060328
in order for -1 to ever be returned, it's gotta be signed...
2006-03-28 19:39:45 +00:00
Jim Rees
4671270758 ignore-new-targets-20060327
cvsignore new targets
2006-03-27 18:27:38 +00:00
Derrick Brashear
1db522b6ac debian-updates-20060323
from russ and sam
2006-03-23 21:06:18 +00:00
Derrick Brashear
5a1bd817b8 build-system-updates-20060323
config.sub config.guess and some other scripting updates
2006-04-05 01:11:15 +00:00
Derrick Brashear
bb96daf441 macos-packaging-fixes-20060323
update to make sure we have a cellservdb, that we shut down afs before an upgrade, and install the universal binary build script
2006-03-23 16:07:30 +00:00
Derrick Brashear
a104113618 afsd-fs-check-20060323
from debian, modified slightly. tell people why their filesystem sucks
2006-03-23 15:35:53 +00:00
Russ Allbery
db8d1da77a man-page-todo-20060322
More to-do items for the documentation.
2006-03-23 05:41:02 +00:00
Derrick Brashear
c0ce1b880a sunos-dos2unix-20060322
dumbest change ever
2006-03-22 20:05:47 +00:00
Derrick Brashear
681419e6ed parisc-linux-lwp-20060322
pulled in from debian
2006-03-22 19:57:04 +00:00
Jeffrey Altman
095f64a7e9 windows-dafs-20060320
64-bit time_t pointer update

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

correct a type for consistency

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

corrections to the dafs delta to allow compilation on Windows
2006-03-20 17:29:52 +00:00
Asanka Herath
2d43189490 windows-64bit-wix-installer-32bit-tools-20060320
Construct an MSI for installing 32-bit AFS tools and libraries
on 64-bit Windows for use with 32-bit Kerberos tools.
2006-03-20 17:20:01 +00:00