Commit Graph

2405 Commits

Author SHA1 Message Date
Jeffrey Altman
d64679ee4c dns-and-server-ref-counts-20040530
* Add debug info to test whether CM_BUF_WAITING or CM_SCACHE_WAITING
     are ever set more than once at a time

   * Fix the management of lists of cm_cell_t structures when using
     DNS to lookup cell information.  The previous code would fail to
     reuse the same cellID for a cell if DNS was used more than once
     for a given cell name.  When the ttl expired, a single cm_cell_t
     could be inserted into the cm_allCellsp list more than once
     producing a loop.  In addition, the vlServerp list belonging to
     the cell was not freed resulting in improper refCounting of the
     servers.

   * Add DNS support to cm_IoctlNewCell() which previous only examined
     the CellServDB file

   * Add cm_FreeServer() function and call it from cm_FreeServerList()
     to properly garbage collect cm_server_t objects

   * Add numVCs variable to smb.c to track the number of smb_vc_t
     objects created and use it to initialize the vcID field which
     previously was set to 0 in all objects resulting in FindByID
     collisions.
2004-05-30 15:39:05 +00:00
Jeffrey Altman
52898404c6 rx-debug-20040529
Fix MakeDebugCall to properly check the return code of select() and
recvfrom().  Do not copy data buffer unless recvfrom() succeeds.
2004-05-30 01:25:19 +00:00
Jeffrey Altman
6b488b4c99 batch-commits-windows-20040529
* Fixed DNS lookups to work consistently throughout the OpenAFS
     product instead of just from within the afsd_service.exe

   * Added a runtime check to ensure that AFS Client Service SMB
     Server is accepting connections before attempting to mount
     global drives.

   * Read IP addresses for volume servers out of the CellServDB
     file if gethostbyname() on the hostname fails.

   * Fix getcellconfig() to populate both the Hostnames as well
     as IP addresses when loading cell data via DNS

   * Increase the Connection Dead Time to 50 from 20 seconds
     Increase the Hard Dead Time to 120 from 40 seconds
     (matches the Unix values)

   * Fixed an assertion validating the number of allocated NCBs

   * Fixed the build environment to consistently build for
     Windows 2000 and above.  (APPVER = 5.0)

   * Fixed rx_debug to properly validate the receipt in incoming
     data with select() and recvfrom().  Do not copy data out of
     the socket buffer unless success is indicated.
2004-05-30 00:47:59 +00:00
Nickolai Zeldovich
e21149cec3 uafs-fixes-20040520
Make uafs not crash if uafs_fstat() is used.  Fix open(O_RDONLY).
2004-05-20 20:15:04 +00:00
Jim Rees
0d1159c724 banish-ushort-20040519
Change ushort to afs_uint16. ushort is a SysV thing, not present in FreeBSD.
2004-05-19 21:31:18 +00:00
Nathan Neulinger
849122ff11 kdump-build-update-20040519
FIXES 4639

more cleanup of kdump build
2004-05-19 16:47:16 +00:00
Chas Williams
b1ae3fc1a6 linux-26-updates-20040515
FIXES 4027

update autoconf for linux 2.6
2004-05-15 07:43:09 +00:00
Love Hörnquist-Åstrand
7d2dd14c62 netbsd-has-statvfs-20040515
FIXES 4535

netbsd has statvfs, use it
2004-05-15 07:32:35 +00:00
Nathan Neulinger
c05beb30dc kdump-build-cleanup-1-20040515
FIXES 4521,4522

remove KDUMP/KDUMP64 configure stuff, clean up kdump targets in Makefile
2004-05-15 07:16:55 +00:00
Love Hörnquist-Åstrand
e59d92b03e salvager-log-instead-of-abort-20040515
FIXES 4533

insert of assert, log an error
2004-05-15 07:11:40 +00:00
Derrick Brashear
4ec1f3fcd3 rx-include-afsconfig-before-param-h-20040515
FIXES 4578

make sure afsconfig.h is included before afs/param.h
2004-05-15 05:53:30 +00:00
Jim Rees
02f83314df openbsd-35-20040512
Add OpenBSD 3.5 notes to top README.
2004-05-12 18:57:11 +00:00
Jeffrey Altman
a2233de3fd cellservdb-20040511
Latest CellServDB as of 2004-05-11
2004-05-11 23:31:51 +00:00
Jeffrey Hutzelman
6b50d377b0 linux26-proc-interface-use-long-not-int-20040511
FIXES 4462

arguments to sys_call are long, not int
ioctl returns -ERROR, not -1
return -EINVAL on ioctls we don't know
2004-05-11 21:36:13 +00:00
Jeffrey Altman
a2c0be0661 update-winnotes-20040511
Update the changes and issues files for the 1.3.64 release
2004-05-11 21:08:57 +00:00
Nathan Neulinger
ce5e3e99d7 kdump-reorder-nfsclient-header-20040511
FIXES 4520

nfsclient.h needs afs.h for MAXNUMSYSNAMES definition
2004-05-11 20:52:28 +00:00
Jeffrey Altman
7db901bda1 nt40-version-20040511
Update version number to 1.3.6400
2004-05-11 20:43:20 +00:00
Jeffrey Altman
f6318c5805 reference-counts-20040511
Correct VC reference counting.  (not that it is used for anything but
there is no reason the reference counting should be allowed to perpetually
increase)

Fix smb_FindFID.  Do not do anything if fid == 0 without SMB_CREATE_FLAG
being set.  Ensure that the event object name is unique by both the fid
and the vcid.
2004-05-11 20:35:02 +00:00
Jeffrey Altman
7441eb8f59 move-memdump-file-20040511
Move the memdump file produced on Windows by "fs memdump" from
%WINDIR% to %WINDIR%\TEMP
2004-05-11 14:26:14 +00:00
Jeffrey Altman
265c009c72 KRB5KRB_AP_ERR_BADADDR-retry-20040510
retry once if KRB5KRB_AP_ERR_BADADDR error is received while attempting
to obtain tickets.  This is often produced when using transitive trusts.
a retry is then successful.
2004-05-11 03:45:20 +00:00
Jeffrey Altman
6f57189186 off-by-one-20040510
off by one error when allocating memory for mountPointStringp
in cm_GetSCacheEntry when using Freelance mode
2004-05-11 03:08:50 +00:00
Nickolai Zeldovich
861fa50de1 ukernel-take-two-20040415
Make uafs work enough to support readdir()

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

Make uafs work enough to support readdir()
(add casts for irix)
2004-05-10 14:51:16 +00:00
Jonathan Curley
329f256d42 linux-26-provide-proc-interface-instead-of-syscall-20040507
FIXES 4462

provide /proc file interface to use instead of AFS system call.
doesn't solve the PAG problem.
2004-05-10 05:39:21 +00:00
Derrick Brashear
ad57d95089 snprintf-irix-needs-sys-socket-h-20040510
6.5.9 or so wants sys/socket.h to get AF_INET
2004-05-10 04:43:02 +00:00
Derrick Brashear
05060d5325 provide-fPIC-method-for-amd64-20040508
FIXES 3680

allow building fPIC on amd64
2004-05-10 04:18:58 +00:00
Jeffrey Altman
3812a973cd user-instance-20040508
Enable afscreds.exe to support instance components of usernames
for non-kfw token retrieval
2004-05-09 05:39:05 +00:00
Jeffrey Altman
98bcba1923 case-sensitivity-20040508
Correct the number of parameters to cm_Lookup calls in smb_ReceiveNTCreateX
and smb_ReceiveNTTranCreate.  Also, do not allow directories to be created
if there are any files with names that differ only by case.

Miscellaneous reformatting.
2004-05-09 05:04:52 +00:00
Derrick Brashear
8023007863 kdump-linux-install-typo-20040508
FIXES 4430

fix @? to be $?
2004-05-08 05:50:38 +00:00
Derrick Brashear
75b51e6192 update-README-20040508
update list of supported platforms, slightly
2004-05-08 05:47:10 +00:00
Hartmut Reuter
686eb8de49 aix-dynamic-auth-20040507
FIXES 4278

make dynamic auth work for aix 5
2004-05-08 05:45:36 +00:00
Chas Williams
87f6d5a8f0 writethru-dslots-allocate-once-20040507
FIXES 4071

only allocate once for WriteThroughDSlots
2004-05-08 05:33:07 +00:00
Chas Williams
9e9a617786 dcache-shutdown-free-20040507
FIXES 4070

free dcache list during shutdown
2004-05-08 05:28:35 +00:00
Chas Williams
b660e7d7cd linux26-updates-20040507
FIXES 4068

define NGROUPS if it doesn't exist
2004-05-08 05:26:37 +00:00
Chas Williams
fc25d8cf69 add-shutdown-server-20040507
FIXES 4067

cleanup server list during shutdown
2004-05-08 05:23:56 +00:00
Chas Williams
bfe8ffc727 shutdown-cell-free-cellname-list-20040507
FIXES 4066

also free cellname_list when doing shutdown, part of quest to free all allocated memory
2004-05-08 05:22:19 +00:00
Chas Williams
dd38ea87cf shutdown-vcache-free-after-using-20040507
FIXES 4065

don't free the VClist until after use
2004-05-08 05:20:39 +00:00
Chas Williams
fae4792e91 linux26-update-20040507
FIXES 4027

updates for modversions and for symbols which we don't need to grovel out of the kernel
2004-05-08 04:58:27 +00:00
Joe Buehler
48e39b4943 ntmakefile-20040507
remove extraneous '*' characters from C2OBJ rules
2004-05-07 15:56:00 +00:00
Jeffrey Altman
6b1cb8b1a8 active-mapping-20040506
Write active drive mapping data to afsdsbmt.ini from afs_config.exe
2004-05-06 22:06:58 +00:00
Jeffrey Altman
847d870c14 mounttab-20040506
ensure that we do not access an array with -1
2004-05-06 21:52:16 +00:00
Jeffrey Altman
d941303ccc afsd-20040506
Andrei provided a replacement for the pattern matching algorithm.
It has been applied but the old version is still there and can be
activated with a #define

The KFW_AFS_get_cred() routine does not use the "instance" parameter
so removed it.
2004-05-06 21:46:31 +00:00
Jeffrey Altman
2d78859869 incorrect-filename-after-install-20040506
the TaAfsApp_1033.dll was incorrectly installed as TaAfsAppl_1033.dll
This prevented the user manager from starting
2004-05-06 21:40:03 +00:00
Jeffrey Altman
620cd80707 mkdir-20040506
Make src/WINNT/aklog directory if missing
2004-05-06 21:37:12 +00:00
Jeffrey Altman
9552283298 case-sensitivity-20040506
from asanka@mit.edu

We now strictly prefer exact case matches.  This does incur a
performance penalty because we can no longer be satisfied with an
inexact matches in cache (we make an extra trip to the server to make
sure there aren't any exact matches or pick up the extra match if
there is one).  Of course, the name lookup cache is now case
sensitive.

* cm_dnlc.c : case sensitive name lookup cache
* cm_vnodeops.{c,h} : changes to cm_Lookup to first look for exact matches,
	failing which, look for inexact matches.  Also, only put a name in
	the name lookup cache iff it exactly matches something on the server.
* smb.c : look for exact matches first.
* smb3.c : as above.  Also T2 Search is used by the SMB client to resolve
	filenames.  Respond accordingly.

and:

* added new CM_ERROR_AMBIGUOUS_FILENAME mapped to ERROR_POTENTIAL_FILE_FOUND
  This error is not yet used but is intended for situations in which an
  AFS volume contains two files which differ only by case "Foo" and "FOO"
  and the user says "DEL foo".  Since we do not have an exact match by case
  the existing code deletes one of the two files at random.  In the future
  we want to return an error.
2004-05-06 16:17:29 +00:00
Jeffrey Altman
786ead5cef ipaddrchg-20040506
ipaddrchg.[ch]: contains the ip address change monitor thread functionality
                which was previously in afskfw.[ch] but which is now a
                library in src/WINNT/afsd
2004-05-06 15:21:44 +00:00
Jeffrey Altman
d44da96287 afscreds-20040506
creds.cpp:  add support for principal name instances to the Obtain Tokens
            function.  Previously instances were not parsed.

main.cpp:   Fix the -M (renewMaps) option to always call DoMapShare()

mounttab.cpp: When removing a drive mapping, remove the "active" entry
            from the afsdsbmt.ini file.
2004-05-06 15:19:19 +00:00
Joe Buehler
233fa17c01 lzma-compress-20040505
Use lzma compression instead of bzip2
2004-05-05 19:49:47 +00:00
Jeffrey Altman
e2af5db575 uninitialized-variable-20040504
Do not assign reference to declaration in cases which declaration is
not assigned a value.
2004-05-05 04:24:57 +00:00
Jeffrey Altman
14005bc769 afskfw-library-20040504
Migrate KFW functionality from src/WINNT/client_creds/afskfw* into a
a new library to be shared by afslogon.dll, afscreds.exe

Add KFW support to afslogon.dll

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

Migrate KFW functionality from src/WINNT/client_creds/afskfw* into a
a new library to be shared by afslogon.dll, afscreds.exe

Move IP Address Change Monitor into new source files.

Add smbname support to the KFW set token functionality in afscreds.exe
2004-05-04 23:48:15 +00:00
Nathan Neulinger
48f4c91cb4 dangling-comments-are-bad-20040504
Fix an unterminated comment..  Oops!
2004-05-04 22:38:15 +00:00