Commit Graph

4462 Commits

Author SHA1 Message Date
Jeffrey Altman
8a50a53fdf windows-pioctl-two-20071014
Two more locations where an intermediary path of length zero should
be ignored.
2007-10-15 03:32:12 +00:00
Jeffrey Altman
7504c66402 windows-pioctl-20071014
do not parse an intermediary path if the path length is 0
2007-10-14 06:54:06 +00:00
Derek Atkins
b6cfa8d6c8 rpm-kmodule-patch-20071012
install the openafs module in the kernel module area, in rpms
2007-10-12 05:28:55 +00:00
Marc Dionne
7832148ae0 gcc42-integer-overflow-fix-20071007
fix issue where gcc 4.2 compiled kernel modules were breaking on linux

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

with fix from Hans-Werner Pulsen

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

with fix from Hans-Werner Pulsen
2007-10-11 18:44:53 +00:00
Derrick Brashear
e1b1f4655f macos-version-generation-20071011
make release time simpler
2007-10-11 17:51:56 +00:00
Simon Wilkinson
c4ad02b69a rpm-files-update-20071011
updates for the specfile and rpm generation
2007-10-11 17:38:56 +00:00
Jeffrey Altman
4a80289db7 windows-freelance-pioctl-two-20071010
explicitly process the last component of the path separately and do not
follow symlinks or chase mountpoints on the last component.
2007-10-10 19:50:25 +00:00
Derrick Brashear
63e1761b99 darwin90-disk-cache-20071010
FIXES 43303

support disk cache in darwin90
2007-10-10 18:38:45 +00:00
Jeffrey Altman
b7030276f7 windows-build-xstat-20071010
build xstat directory
2007-10-10 17:05:47 +00:00
Jeffrey Altman
9991a731e0 windows-clean-eventlog-20071010
clean eventlog/lang/AFS_component_version_number.h
2007-10-10 16:43:30 +00:00
Jeffrey Altman
58627b15eb windows-installer-wix-20071010
Later versions of the wix toolset require that all variables be defined
with a value.
2007-10-10 16:37:25 +00:00
Jeffrey Altman
fae48bb39b windows-freelance-pioctl-20071010
pioctl commands were failing with CM_ERROR_NOSUCHCELL because the
Freelance cell object was not being added to the Cell Name and ID
hash tables.

ParseIoctlPath was not consistently returning the FID of the specified
symlink or mount point object.  The was still one more case in which
CM_FLAG_FOLLOW was being specified left over from
windows-parse-ioctl-path-20070629.  Changed the use of CM_FLAG_FOLLOW
into a 'follow' variable to ease testing and permit easy migration to
adding a 'follow' parameter to the function.

RXAFS_GetVolumeStatus is always going to fail for Freelance volumes.
Fake the response data.

UpdateVolume() was performing the wrong test for Freelance volumes.
Freelance volumes should not be marked offline even though they have
no servers.
2007-10-10 16:20:29 +00:00
Derrick Brashear
604838e7d4 darwin90-debug-harder-20071009
stab the stabs
2007-10-09 22:28:18 +00:00
Derrick Brashear
9240a1e252 taking-rx-back-into-the-20th-century-20061228
ken's patch is now on the ipv6 branch
2007-10-09 22:26:24 +00:00
Derrick Brashear
b4b2b74d14 darwin90-dsym-and-ppc-cputype-support-20071009
build for all ppc cputypes. also, support dsym debug info instead of stabs, when appropriate
2007-10-09 16:58:47 +00:00
Derrick Brashear
e4adbbc79b sol10-abstraction-20071005
abstract things as needed
2007-10-05 23:16:36 +00:00
Tom Keiser
f6e59be4dc dafs-listen-after-restoring-state-20071004
don't start rx server until the previous state has been loaded
2007-10-05 04:30:19 +00:00
Derrick Brashear
409a345703 vol-salvager-avoid-logging-to-nothing-20071004
check for logFile before using
2007-10-05 04:22:27 +00:00
Marc Dionne
127cebfacd linux-2623-support-20071004
FIXES 70773

update for support for 2.6.23
2007-10-05 04:07:27 +00:00
Dale Ghent
4ac01ec1ed solaris10-network-updates-20071004
FIXES 72759

This patch removes use of the non-Public ILL structures by OpenAFS to
gather network interface information in order to make RX packet size
and server locality decisions.
2007-10-05 03:22:11 +00:00
Jeffrey Altman
3c216378cb windows-btree-rename-case-only-20071004
Attempts to rename by case only would fail when there are more than
one ambiguous matches.  The list of data nodes would be corrupted
and future tree manipulations could result in a crash.
2007-10-04 15:11:07 +00:00
Jeffrey Altman
a7abca15b0 libadmin-minimize-dns-lookups-20071003
Some cells have a large number of servers listed in the vldb that
no longer exist and/or do not have PTR records in DNS.  The algorithm
used to obtain the "server names" from IP addresses involves opening
a cell handle, creating an iterator of all servers, and then iterating
over them until a match is found for the IP address.  This is done for
every server reference.  Each time the iterator was constructed the
vldb would be queried and gethostbyaddr() would be called on every listed
ip address.

This patch stores a copy of the server list in the cell handle along with
an expiration time generated from a 10 minute TTL.  This significant
reduces but does not eliminate the number of times that the caller is
blocked on reverse dns lookups.
2007-10-03 16:27:53 +00:00
Jeffrey Altman
a4b995b618 windows-tviced-resfile-20071003
Add explicit build rules for TVICEDRES since we do not
build the non-threaded file server on Windows
2007-10-03 16:17:43 +00:00
Tom Keiser
6cc29578b0 dafs-cbstate-tracking-fix-20071001
fix this the rest of the places it happens
2007-10-02 01:14:08 +00:00
Jeffrey Altman
7890ce9ead windows-lanahelper-20071001
uninitialized variable in lana_IsLoopback
2007-10-01 21:02:03 +00:00
Dan Hyde
aecaddba37 vollistpart-init-error-20070927
FIXES 72144

correct an initialization failure in VolListPartitions
2007-09-28 00:15:30 +00:00
Tom Keiser
29d5a11a1f dafs-avoid-volhdr-leak-20070927
when there's an error don't leak the loaded header; release it
2007-09-27 17:30:32 +00:00
Jeffrey Altman
0ef8174a29 readme-nt-20070920
update wix and nsis instructions
2007-09-20 12:56:54 +00:00
Jeffrey Altman
c984f03a91 windows-version-info-20070920
add version info to the threaded version of butc.exe that we ship
2007-09-20 12:44:23 +00:00
Derrick Brashear
a0fa3b5598 krb5-aklog-kimpersonate-conditionalize-20070920
make kimpersonate conitional
2007-09-20 05:52:23 +00:00
Derrick Brashear
1aad009863 dafs-loadvolumeheader-before-we-need-it-20070920
make sure we have a header instead of potentially dereffing null
2007-09-20 05:01:44 +00:00
Jeffrey Altman
87d87d33ea windows-fs-memdump-20070919
add directory lookup stats to "fs memdump" output
2007-09-20 04:54:14 +00:00
Jeffrey Altman
a186b0d65c windows-hex-dump-20070919
remove the broken percent quoting from OutputDebugHexDump as it is
not required.  We never use the resulting string as a print format string.
2007-09-19 22:27:53 +00:00
Jeffrey Altman
feab12b929 windows-version-info-20070919
FIXES 71397

Many of the OpenAFS binaries that are installed on end user machines
did not have version information.  This is problematic as it is impossible
to determine which version of a binary the crash report was filed against
when a report is received by Microsoft Windows Error Reporting service.
2007-09-19 18:55:55 +00:00
Jeffrey Altman
b8abf04a45 windows-vnovnode-while-file-in-use-20070918
Discovered another case where VNOVNODE errors were not being handled.
If there are dirty buffers and a VNOVNODE error is received while
writing the buffer, the buffer would be left in the dirty buffers queue.
This caused a couple problems:
(1) any attempt to flush the file, volume, or cache would fail because
    there were unflushed dirty buffers that could not be flushed.
(2) shutdown of the service would hang because the buffers could not
    be flushed.

In addition, while a VNOVNODE error would result in the cm_scache_t
being marked CM_SCACHEFLAG_DELETED, this state was not being checked
at the SMB layer.  As a result, if a smb_fid_t was allocated and it
referenced the deleted cm_scache_t, the SMB operations would continue
to be processed and report success even if the actual file or directory
no longer existed.

We now clear the dirty state on buffers which cannot be written due to
VNOVNODE errors.  We also check the cm_scache_t for deletion prior to
use whenever a smb_fid_t is looked up.  If the cm_scache_t is deleted,
the smb_fid_t is closed and the error CM_ERROR_NOSUCHFILE is returned
for files or CM_ERROR_NOSUCHPATH for directories.
2007-09-18 17:57:31 +00:00
Jeffrey Altman
a47f4bacd8 windows-afs-config-vista-uac-vs2005-20070918
merge the manifests for vs 2005
2007-09-18 07:36:04 +00:00
Jeffrey Altman
9bf29bbe1e windows-afs-config-vista-uac-20070918
Mark afs_config.exe via a manifest with
requestedExecutionLevel = HighestAvailable

This will ensure that when Vista UAC is active, that a member of the
Administrators group must run the AFS Control Panel with Administrators
privileges.
2007-09-18 07:13:08 +00:00
Jeffrey Altman
8ba598cd84 windows-cl1310-manifests-20070918
add support for manifests to .NET 2003 builds
2007-09-18 07:07:16 +00:00
Jeffrey Altman
eae26ab6b2 windows-nsis-20070918
fix error in NTMakefile that used the CL_1310 configuration for the
VS 2005 compiler

force RequestExecutionLevel to admin for Vista
2007-09-18 07:04:02 +00:00
Jeffrey Altman
70fa2d2499 windows-down-servers-20070913
Do not assign a new downTime to a server that is already down.
Doing so breaks the logic to preserve callback validity until the
server comes back up.
2007-09-13 18:58:00 +00:00
Jeffrey Altman
b06335911b windows-afsmaxpath-20070912
ensure that all path stack buffers are of size AFSMAXPATH
2007-09-13 02:41:07 +00:00
Jeffrey Hutzelman
f15a9a2788 dafs-shutdown-state-fix-20070912
clean up the dafs shutdown code to not read bogus info into the id
2007-09-12 19:25:53 +00:00
Derrick Brashear
a6d7cacfdc aklog-kimpersonate-20070912
inline kimpersonate support, to make testing easier.
2007-09-12 19:09:42 +00:00
Jeffrey Altman
5647c133e9 windows-dir-bplus-shortnames-20070912
When a file name does not conform to 8.3 notation, an 8.3 notation
alias is generated for it.  This short name form must be searchable
in the B+ tree.

This commit adds a longname field to the data node which is used both
to identify the real name associated with the short name as well as
whether or not the short name is in fact an alias.   Being able to
determine whether or not a data node is an alias will be important
when we support using the B+ tree for directory enumeration.

For insertion, if the name does not conform to 8.3 notation, a second
entry is inserted into the B+ tree using the shortname as the key and
the longname stored in the data.

For deletion, we lookup the data node for the provided key.  If there
is a longname we remove the longname entry first and then the shortname
entry.  If the key is a longname, we lookup the data node so we can
acquire the FID and then use that to compute the shortname.  We then
remove both the shortname and longname entries from the B+ tree.
2007-09-12 18:28:00 +00:00
Jeffrey Altman
40090977d2 windows-getcell-deadlock-20070911
don't hold the cm_scache_t mutex across calls to cm_GetCell() since
cm_GetCell() can block in an RPC call.  If that cm_scache_t must be
accessed to revoke a callback, it can result in a deadlock.
2007-09-11 17:11:54 +00:00
Chaskiel M Grundman
c22f945bb7 namei-protect-against-extra-files-20070911
if someone is monkeying in the filesystem, sometimes they shoot themselves. save them if they renamed foo to foo.bak (where foo is a full 64 bits)
2007-09-11 16:37:01 +00:00
Jeffrey Altman
bf6c13352a windows-prefetch-executables-20070911
avoid prefetch race condition in CreateX functions

do not permit reference underflow when ending background prefetch ops
2007-09-11 06:02:42 +00:00
Derrick Brashear
049c95d74c namei-fsync-less-20070910
remove sync() call from Windows build
2007-09-10 22:54:25 +00:00
Jeffrey Altman
3b7188b326 windows-prefetch-executables-20070910
This code defines a new service parameter "PrefetchExecutableExtensions"
of type REG_MULTI_SZ.  By default it is undefined and does nothing.  If
it is defined, files that match the extensions will be prefetched in
their entirety.

All of the prefetch functions now pay attention to the length parameters.
Previously, length parameters were specified on some functions in the
chain but they were ignored.  The reality was that the chunksize was
used regardless of what was indicated.

Prefetching is still optional.  If the prefetch fails during the initial
attempt you lose.  Otherwise, as many buffers as are required to satisfy
the requested prefetch length will be requested from the file server in
chunksize units.  If buffers have already been acquired, they are skipped
during the prefetch operation.
2007-09-10 20:06:58 +00:00
Jeffrey Altman
22da0dd5f8 windows-largeinteger-20070910
Fix the function type so that assignment of return values are
properly applied.

Add missing comparison routines.
2007-09-10 20:00:55 +00:00