openafs.git
19 years agofreelance-fake-root-vol-id-fix-20040606
Jeffrey Altman [Mon, 7 Jun 2004 07:22:57 +0000]
freelance-fake-root-vol-id-fix-20040606

 * add debugging to allow fs trace -dump to be used for freelance
   operations

 * Change the volume id associated with the fake root.afs from
   0x20000001 to 0x00000001 to prevent confusion of remote cell
   root.afs volumes with the fake root.afs.  (way to go Derrick.)

 * add function prototypes to cm_freelance.h

19 years agouninitialized-variable-20040605
Jeffrey Altman [Sun, 6 Jun 2004 04:51:41 +0000]
uninitialized-variable-20040605

 cm_dns.c: getAFSServers() did not initialize the output
           parameters before testing them when setting the
           return value.  It therefore returned success
           when the network was unavailable. Bad Bad Bad.

19 years agokpasswd-uninitialized-20040605
Jeffrey Altman [Sat, 5 Jun 2004 21:11:06 +0000]
kpasswd-uninitialized-20040605

FIXES 4994

More uninitialized variables

19 years agowinnotes-20040605
Jeffrey Altman [Sat, 5 Jun 2004 19:59:41 +0000]
winnotes-20040605

Document changes up to this date since 1.3.64 and new registry values

19 years agotimeout-logic-20040605
Jeffrey Altman [Sat, 5 Jun 2004 19:57:58 +0000]
timeout-logic-20040605

   * The timeout logic in the AFS Client Service has been wrong
     for sometime.  It is based on two different assumptions.
     First, the SMB client timeout is a fix value as was the case
     with OS/2 Lan Manager.  This assumption is incorrect.  The
     SMB timeout in Windows is a dynamic value computed based upon
     a fixed minimum timeout to which is added time based upon the
     size of the request and the performance characteristics of
     the connection.  Second, it is the responsibility of the
     SMB Server to enforce the timeout requirements of the client.
     This is untrue.  The SMB Server cannot be expected to know
     the requirements of the client.  More importantly, if the
     SMB server uses the SMB client timeout as a value to restrict
     its behavior as an RX client, the performance characteristics
     of the local SMB session would be used to prematurely terminate
     WAN connections with significantly different performance
     characteristics.

     The timeout logic has therefore been modified in the following
     manner:
      . the Lan Manager Workstation (SMB) Session Timeout is used only
        as a basis for configuring the Connection Dead Timeout
        and Hard Dead Timeout values.  The Connection Dead Timeout
        must be at least 15 seconds longer than the SMB Timeout
        and the Hard Dead Timeout must be at least double the
        Connection Dead Timeout.
      . New registry entries have been added to allow the Connection
        Dead Timeout and Hard Dead Timeout values independent of the
        Lan Manager Workstation Session Timeout
      . The test to enforce the SMB Client Timeout has been removed.

     One of the side-effects of removing the enforcement of the SMB
     Client Timeout is that regardless of whether or not the SMB client
     is available to receive the response (and how would the SMB server
     know) the RX protocol response can be used to update the AFS
     Client Service state for ready access by future SMB client
     requests.

     This should be the end of the "Server paused or restarting messages"

19 years agocell-info-do-not-delete-20040604
Jeffrey Altman [Sat, 5 Jun 2004 07:02:39 +0000]
cell-info-do-not-delete-20040604

* cm_cell.h: define new bit flag CM_CELLFLAG_VLSERVER_INVALID

* cm_cell.c, cm_ioctl.c:  Do not delete cell info either because
  it has been removed from the CellServDB file or because the
  volserver info becomes invalid due to dns ttl expiration.  This
  is necessary because the cell info is pointed to by other structures
  which require continued access to the cellname and username fields.

* cm_ioctl.c: provide UNC support for the MakeMountCmd

19 years agoioctl-unc-20040603
Jeffrey Altman [Fri, 4 Jun 2004 07:02:18 +0000]
ioctl-unc-20040603

 * pioctl.c: handle another UNC case in GetIoctlHandle

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

 * cm_ioctl.c: avoid running off the end of a string

19 years agoioctl-changes-20040603
Jeffrey Altman [Fri, 4 Jun 2004 04:10:44 +0000]
ioctl-changes-20040603

Fix more edge cases for ioctl handling.

 * cm_dcache.c: reformat the file to make it possible to set breakpoints
   on conditionals

 * cm_ioctl.c: add a call to smb_FindShare() when processing UNC paths

 * cm_vnodeops.c: move debug message from the afsi_log to the osi_log

 * fs_utils.c: reformat

 * smb.c: change smb_FindShare to take a smb_user_t * instead of a
   pointer to the input smb_packet_t.  Change calls to smb_FindShare
   to use new prototype.

 * smb.h: change prototype for smb_FindShare

 * smb3.c: Change calls to smb_FindShare to use new prototype

 * smb_ioctl.c: reorganize use of smb_user_t so it can be passed
   to smb_IoctlPrepareRead in order for it to be used in the call
   to smb_FindShare.

19 years agoioctl-handle-20040603
Jeffrey Altman [Fri, 4 Jun 2004 04:00:39 +0000]
ioctl-handle-20040603

 * Fix GetIoctlHandle so that it will create the handle on the correct
   volume when a drive letter is not specified as part of the source path

19 years agoi-hate-aclocal-20040603
Love Hörnquist-Åstrand [Thu, 3 Jun 2004 06:13:27 +0000]
i-hate-aclocal-20040603

FIXES 4922

aclocal wants [] around macro names.
good for aclocal.

19 years agogconfd-lock-fix-20040602
Chas Williams [Wed, 2 Jun 2004 20:40:34 +0000]
gconfd-lock-fix-20040602

FIXES 4905

"i believe i have managed to track this down to a missing
lock_kernel() in the dentry (lookup) revalidate routine.
this missing lock was already fixed in the 1.3 tree when
i submitted the 2.6 support patches (although its not quite
right i think -- the shrink_dcace_parent() should happen
under the BKL)"

19 years agontmakefile-20040602
Jeffrey Altman [Wed, 2 Jun 2004 15:52:04 +0000]
ntmakefile-20040602

update comments

19 years agowin32-ewouldblock-20040602
Jeffrey Altman [Wed, 2 Jun 2004 15:50:23 +0000]
win32-ewouldblock-20040602

 * enable detection of EWOULDBLOCK errors on Windows

19 years agocallback-rxcon-move-20040602
Derrick Brashear [Wed, 2 Jun 2004 09:43:02 +0000]
callback-rxcon-move-20040602

FIXES 4891

apply it disabled in the fileserver, but provide mech for client to suggest a particular IP address to the fileserver

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

apply it disabled in the fileserver, but provide mech for client to suggest a pa
rticular IP address to the fileserver

====================
FIXES 4891

apply it disabled in the fileserver, but provide mech for client to suggest a pa
rticular IP address to the fileserver

====================
FIXES 4891

apply it disabled in the fileserver, but provide mech for client to suggest a pa
rticular IP address to the fileserver

19 years agovos-new-repsite-cleanup-20040601
Derrick Brashear [Wed, 2 Jun 2004 09:39:34 +0000]
vos-new-repsite-cleanup-20040601

FIXES 4730

if for some reason we got into a situation where all ROs were marked NEW_REPSITE in the vldb, vos release without -f deals very poorly. force a -f, and also, never print "Old Release" for the RW, to avoid confusion

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

if for some reason we got into a situation where all ROs were marked NEW_REPSITE
 in the vldb, vos release without -f deals very poorly. force a -f, and also, ne
ver print "Old Release" for the RW, to avoid confusion

19 years agoirix-make-ukernel-build-20040602
Derrick Brashear [Wed, 2 Jun 2004 09:18:28 +0000]
irix-make-ukernel-build-20040602

FIXES 4646

ukernel needs 64 bit type defined, define it.

19 years agolinux-dont-mark-writer-on-mmapped-RO-20040602
Derrick Brashear [Wed, 2 Jun 2004 08:43:48 +0000]
linux-dont-mark-writer-on-mmapped-RO-20040602

FIXES 4892

don't mark an mmapped RO as an execOrWriter.

19 years agoadviseaddr-call-dont-shadow-code-decl-20040602
Michael Pronath [Wed, 2 Jun 2004 08:08:46 +0000]
adviseaddr-call-dont-shadow-code-decl-20040602

FIXES 4536

removed shadowed declaration of code

19 years agovolinfo-large-size-update-20040602
Nathan Neulinger [Wed, 2 Jun 2004 08:04:15 +0000]
volinfo-large-size-update-20040602

FIXES 4679

make volinfo useful for >4gb

19 years agolinux-26-build-updates-20040601
Jeffrey Hutzelman [Wed, 2 Jun 2004 07:15:45 +0000]
linux-26-build-updates-20040601

FIXES 4767

use 2.6 kbuild infrastructure to build modules. updates proc mechanism.

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

use 2.6 kbuild infrastructure to build modules. updates proc mechanism.

19 years agoattachserverproc-dont-dequeue-if-not-in-queue-20040602
Derrick Brashear [Wed, 2 Jun 2004 07:08:01 +0000]
attachserverproc-dont-dequeue-if-not-in-queue-20040602

FIXES 4699

can't see what else this can be. pile of details in the ticket.

19 years agounc-enable-fs-20040601
Jeffrey Altman [Wed, 2 Jun 2004 06:21:16 +0000]
unc-enable-fs-20040601

 * modify cm_ParseIoctlPath() to be able to handle arbitrary UNC
   paths of the form \\netbiosname\mount\path.  This enables all
   of the fs commands and the shell extension to be able to work
   with UNC paths.

====================
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 support for UNC paths

19 years agorx-protect-queue-during-debug-20040601
Rainer Toebbicke [Wed, 2 Jun 2004 03:49:28 +0000]
rx-protect-queue-during-debug-20040601

FIXES 4811

"in rx_packet.c:rxi_ReceiveDebugPacket() the rx_idleServerQueue is
scanned without taking a lock first.

The queue_Remove macro zeroes the ->next field (luckily), but this can
lead to a crash when Murphy strikes and the entry gets removed during
the scan: queue_Scan will dereference 0x0 -> next.
"

19 years agomake-distclean-do-it-20040601
Sam Hartman [Wed, 2 Jun 2004 03:40:03 +0000]
make-distclean-do-it-20040601

FIXES 4814

remove some of the crap we were missing

19 years agoprovide-fPIC-method-for-amd64-20040508
Derrick Brashear [Wed, 2 Jun 2004 03:37:45 +0000]
provide-fPIC-method-for-amd64-20040508

FIXES 3680

allow building fPIC on amd64

19 years agocorrections-winafs-20040531
Jeffrey Altman [Tue, 1 Jun 2004 03:45:24 +0000]
corrections-winafs-20040531

 * cm_server.c: remove locking from cm_FreeServer().  Must call
   while holding a write lock

 * afskfw.c: Remove manual dynamic loading of ktc_xxxx functions
   Change some of the debugging logic

19 years agoafscrds-dns-20040530
Jeffrey Altman [Sun, 30 May 2004 16:54:13 +0000]
afscrds-dns-20040530

   * Fix afscreds.exe (by updating afskfw.lib) to search for cells via
     DNS if the cell configuration cannot be determined via CellServDB

19 years agodns-and-server-ref-counts-20040530
Jeffrey Altman [Sun, 30 May 2004 15:39:05 +0000]
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.

19 years agorx-debug-20040529
Jeffrey Altman [Sun, 30 May 2004 01:25:19 +0000]
rx-debug-20040529

Fix MakeDebugCall to properly check the return code of select() and
recvfrom().  Do not copy data buffer unless recvfrom() succeeds.

19 years agobatch-commits-windows-20040529
Jeffrey Altman [Sun, 30 May 2004 00:47:59 +0000]
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.

19 years agouafs-fixes-20040520
Nickolai Zeldovich [Thu, 20 May 2004 20:15:04 +0000]
uafs-fixes-20040520

Make uafs not crash if uafs_fstat() is used.  Fix open(O_RDONLY).

19 years agobanish-ushort-20040519
Jim Rees [Wed, 19 May 2004 21:31:18 +0000]
banish-ushort-20040519

Change ushort to afs_uint16. ushort is a SysV thing, not present in FreeBSD.

19 years agokdump-build-update-20040519
Nathan Neulinger [Wed, 19 May 2004 16:47:16 +0000]
kdump-build-update-20040519

FIXES 4639

more cleanup of kdump build

19 years agolinux-26-updates-20040515
Chas Williams [Sat, 15 May 2004 07:43:09 +0000]
linux-26-updates-20040515

FIXES 4027

update autoconf for linux 2.6

19 years agonetbsd-has-statvfs-20040515
Love Hörnquist-Åstrand [Sat, 15 May 2004 07:32:35 +0000]
netbsd-has-statvfs-20040515

FIXES 4535

netbsd has statvfs, use it

19 years agokdump-build-cleanup-1-20040515
Nathan Neulinger [Sat, 15 May 2004 07:16:55 +0000]
kdump-build-cleanup-1-20040515

FIXES 4521,4522

remove KDUMP/KDUMP64 configure stuff, clean up kdump targets in Makefile

19 years agosalvager-log-instead-of-abort-20040515
Love Hörnquist-Åstrand [Sat, 15 May 2004 07:11:40 +0000]
salvager-log-instead-of-abort-20040515

FIXES 4533

insert of assert, log an error

19 years agorx-include-afsconfig-before-param-h-20040515
Derrick Brashear [Sat, 15 May 2004 05:53:30 +0000]
rx-include-afsconfig-before-param-h-20040515

FIXES 4578

make sure afsconfig.h is included before afs/param.h

19 years agoopenbsd-35-20040512
Jim Rees [Wed, 12 May 2004 18:57:11 +0000]
openbsd-35-20040512

Add OpenBSD 3.5 notes to top README.

19 years agocellservdb-20040511 openafs-devel-1_3_64
Jeffrey Altman [Tue, 11 May 2004 23:31:51 +0000]
cellservdb-20040511

Latest CellServDB as of 2004-05-11

19 years agolinux26-proc-interface-use-long-not-int-20040511
Jeffrey Hutzelman [Tue, 11 May 2004 21:36:13 +0000]
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

19 years agoupdate-winnotes-20040511
Jeffrey Altman [Tue, 11 May 2004 21:08:57 +0000]
update-winnotes-20040511

Update the changes and issues files for the 1.3.64 release

19 years agokdump-reorder-nfsclient-header-20040511
Nathan Neulinger [Tue, 11 May 2004 20:52:28 +0000]
kdump-reorder-nfsclient-header-20040511

FIXES 4520

nfsclient.h needs afs.h for MAXNUMSYSNAMES definition

19 years agont40-version-20040511
Jeffrey Altman [Tue, 11 May 2004 20:43:20 +0000]
nt40-version-20040511

Update version number to 1.3.6400

19 years agoreference-counts-20040511
Jeffrey Altman [Tue, 11 May 2004 20:35:02 +0000]
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.

19 years agomove-memdump-file-20040511
Jeffrey Altman [Tue, 11 May 2004 14:26:14 +0000]
move-memdump-file-20040511

Move the memdump file produced on Windows by "fs memdump" from
%WINDIR% to %WINDIR%\TEMP

19 years agoKRB5KRB_AP_ERR_BADADDR-retry-20040510
Jeffrey Altman [Tue, 11 May 2004 03:45:20 +0000]
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.

19 years agooff-by-one-20040510
Jeffrey Altman [Tue, 11 May 2004 03:08:50 +0000]
off-by-one-20040510

off by one error when allocating memory for mountPointStringp
in cm_GetSCacheEntry when using Freelance mode

19 years agoukernel-take-two-20040415
Nickolai Zeldovich [Mon, 10 May 2004 14:51:16 +0000]
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)

19 years agolinux-26-provide-proc-interface-instead-of-syscall-20040507
Jonathan Curley [Mon, 10 May 2004 05:39:21 +0000]
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.

19 years agosnprintf-irix-needs-sys-socket-h-20040510
Derrick Brashear [Mon, 10 May 2004 04:43:02 +0000]
snprintf-irix-needs-sys-socket-h-20040510

6.5.9 or so wants sys/socket.h to get AF_INET

19 years agoprovide-fPIC-method-for-amd64-20040508
Derrick Brashear [Mon, 10 May 2004 04:18:58 +0000]
provide-fPIC-method-for-amd64-20040508

FIXES 3680

allow building fPIC on amd64

19 years agouser-instance-20040508
Jeffrey Altman [Sun, 9 May 2004 05:39:05 +0000]
user-instance-20040508

Enable afscreds.exe to support instance components of usernames
for non-kfw token retrieval

19 years agocase-sensitivity-20040508
Jeffrey Altman [Sun, 9 May 2004 05:04:52 +0000]
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.

19 years agokdump-linux-install-typo-20040508
Derrick Brashear [Sat, 8 May 2004 05:50:38 +0000]
kdump-linux-install-typo-20040508

FIXES 4430

fix @? to be $?

19 years agoupdate-README-20040508
Derrick Brashear [Sat, 8 May 2004 05:47:10 +0000]
update-README-20040508

update list of supported platforms, slightly

19 years agoaix-dynamic-auth-20040507
Hartmut Reuter [Sat, 8 May 2004 05:45:36 +0000]
aix-dynamic-auth-20040507

FIXES 4278

make dynamic auth work for aix 5

19 years agowritethru-dslots-allocate-once-20040507
Chas Williams [Sat, 8 May 2004 05:33:07 +0000]
writethru-dslots-allocate-once-20040507

FIXES 4071

only allocate once for WriteThroughDSlots

19 years agodcache-shutdown-free-20040507
Chas Williams [Sat, 8 May 2004 05:28:35 +0000]
dcache-shutdown-free-20040507

FIXES 4070

free dcache list during shutdown

19 years agolinux26-updates-20040507
Chas Williams [Sat, 8 May 2004 05:26:37 +0000]
linux26-updates-20040507

FIXES 4068

define NGROUPS if it doesn't exist

19 years agoadd-shutdown-server-20040507
Chas Williams [Sat, 8 May 2004 05:23:56 +0000]
add-shutdown-server-20040507

FIXES 4067

cleanup server list during shutdown

19 years agoshutdown-cell-free-cellname-list-20040507
Chas Williams [Sat, 8 May 2004 05:22:19 +0000]
shutdown-cell-free-cellname-list-20040507

FIXES 4066

also free cellname_list when doing shutdown, part of quest to free all allocated memory

19 years agoshutdown-vcache-free-after-using-20040507
Chas Williams [Sat, 8 May 2004 05:20:39 +0000]
shutdown-vcache-free-after-using-20040507

FIXES 4065

don't free the VClist until after use

19 years agolinux26-update-20040507
Chas Williams [Sat, 8 May 2004 04:58:27 +0000]
linux26-update-20040507

FIXES 4027

updates for modversions and for symbols which we don't need to grovel out of the kernel

19 years agontmakefile-20040507
Joe Buehler [Fri, 7 May 2004 15:56:00 +0000]
ntmakefile-20040507

remove extraneous '*' characters from C2OBJ rules

19 years agoactive-mapping-20040506
Jeffrey Altman [Thu, 6 May 2004 22:06:58 +0000]
active-mapping-20040506

Write active drive mapping data to afsdsbmt.ini from afs_config.exe

19 years agomounttab-20040506
Jeffrey Altman [Thu, 6 May 2004 21:52:16 +0000]
mounttab-20040506

ensure that we do not access an array with -1

19 years agoafsd-20040506
Jeffrey Altman [Thu, 6 May 2004 21:46:31 +0000]
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.

19 years agoincorrect-filename-after-install-20040506
Jeffrey Altman [Thu, 6 May 2004 21:40:03 +0000]
incorrect-filename-after-install-20040506

the TaAfsApp_1033.dll was incorrectly installed as TaAfsAppl_1033.dll
This prevented the user manager from starting

19 years agomkdir-20040506
Jeffrey Altman [Thu, 6 May 2004 21:37:12 +0000]
mkdir-20040506

Make src/WINNT/aklog directory if missing

19 years agocase-sensitivity-20040506
Jeffrey Altman [Thu, 6 May 2004 16:17:29 +0000]
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.

19 years agoipaddrchg-20040506
Jeffrey Altman [Thu, 6 May 2004 15:21:44 +0000]
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

19 years agoafscreds-20040506
Jeffrey Altman [Thu, 6 May 2004 15:19:19 +0000]
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.

19 years agolzma-compress-20040505
Joe Buehler [Wed, 5 May 2004 19:49:47 +0000]
lzma-compress-20040505

Use lzma compression instead of bzip2

19 years agouninitialized-variable-20040504
Jeffrey Altman [Wed, 5 May 2004 04:24:57 +0000]
uninitialized-variable-20040504

Do not assign reference to declaration in cases which declaration is
not assigned a value.

19 years agoafskfw-library-20040504
Jeffrey Altman [Tue, 4 May 2004 23:48:15 +0000]
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

19 years agodangling-comments-are-bad-20040504
Nathan Neulinger [Tue, 4 May 2004 22:38:15 +0000]
dangling-comments-are-bad-20040504

Fix an unterminated comment..  Oops!

19 years agofun-with-a-profiler-20040504
Nickolai Zeldovich [Tue, 4 May 2004 10:36:01 +0000]
fun-with-a-profiler-20040504

fun with a profiler:  afs_RemoveVCB accounts for 20% of the total AFS
client CPU utilization, even under a moderate vcache turnover rate of
less than 10 new vcache's per second.

introduce a hash on the afs_cbr objects to speed this up.  if you are
seeing your AFS client being CPU-bound, e.g. on your web server, you
may want to try this.

19 years agolinux-handle-short-reads-gracefully-20040504
Nathan Neulinger [Tue, 4 May 2004 10:31:55 +0000]
linux-handle-short-reads-gracefully-20040504

break out of the read loop with EIO if we've reached EOF,
rather than looping forever hoping the file will grow.

19 years agoadd-missing-uafs-prototypes-20040504
Nickolai Zeldovich [Tue, 4 May 2004 10:31:11 +0000]
add-missing-uafs-prototypes-20040504

add missing prototypes for uafs_seek

19 years agocsc_policy_logon_updates-20040503
Jeffrey Altman [Tue, 4 May 2004 05:05:25 +0000]
csc_policy_logon_updates-20040503

From Andrei: CSC Policies

Updates to afslogon.dll: attempt lowercased name on authentication failure
if LSA provided name is all upper-case.

19 years agonsis-server-updates-20040501
Robert S Murawski IV [Sun, 2 May 2004 23:09:22 +0000]
nsis-server-updates-20040501

This implements:

1) Does not delete server config data on uninstall
2) If an upgrade or a re-install with existing server config data, will not auto-start the Server Configuration Wizard.
3) Checks for RPC keys on install.  (I believe you only need one because not all of the keys are required for AFS to work.  However, it might require TCP or UDP based RPC)

Still to do:
1) Server data should be destroyed if user answers "No" to "Do you want to keep your existing configuration data?"
2) If installing when existing server configuration data is present, populate the client cell to be the contents of the "ThisCell" file.

19 years agoobsd35-20040427
Jim Rees [Tue, 27 Apr 2004 20:43:04 +0000]
obsd35-20040427

get ready for OpenBSD 3.5 (due May 1)

19 years agofixes-from-andrei-20040427
Jeffrey Altman [Tue, 27 Apr 2004 19:58:48 +0000]
fixes-from-andrei-20040427

Cleanup the makefile to remove unnecessary defaultlib restrictions

Remove the DST fix added to address Rodney's bug with the timezone being
off by an hour on files one hour after the time change.  Still need to
identify the real cause.

Finally fix once and for all the afsd_service.exe shutdown error.
The ServiceHandler must be declared with the WINAPI calling convention
because it returns a value.

19 years agorelease-vs-debug-flags-20040427
Jeffrey Altman [Tue, 27 Apr 2004 19:54:28 +0000]
release-vs-debug-flags-20040427

Move a few debug only compiler flags into a debug only build section of
the makefile

19 years agono-mfc-20040427
Jeffrey Altman [Tue, 27 Apr 2004 02:26:01 +0000]
no-mfc-20040427

remove the reference to afx.h.  there is no reason to bring in MFC
for lanahelper.lib.  (thanks to Andrei)

19 years agocheck-if-compiler-supports-__FUNCTION__-macro-20040426
Nickolai Zeldovich [Mon, 26 Apr 2004 22:39:33 +0000]
check-if-compiler-supports-__FUNCTION__-macro-20040426

Add an autoconf check to see if the compiler supports __FUNCTION__ and __LINE__

20 years agokfw-upds-20040422
Jeffrey Altman [Fri, 23 Apr 2004 04:43:24 +0000]
kfw-upds-20040422

(1) remove the tkt_lifetime table which is no longer used

(2) improve the handling of token to k5 principal mapping

(3) assign the REALM to the token client name if the realm of
    the cell does not match the realm of the user

20 years agoren-msgbox-logfile-20040422
Jeffrey Altman [Fri, 23 Apr 2004 04:38:54 +0000]
ren-msgbox-logfile-20040422

Several fixes:

(1) the log file afsd_logp should not be referenced in the smb modules
    instead the smb_logp should be used

(2) Properly define the dummy_MessageBox function as _stdcall

(3) When afsd_service.exe fails due to a Network Error (IP address change)
    display a MessageBox to the end user

(4) Fix "rename foo foo" to not generate a "destination file exists" error
    (Thanks to asanka)

20 years agolinux26-more-updates-20040420
Chas Williams [Wed, 21 Apr 2004 03:20:21 +0000]
linux26-more-updates-20040420

FIXES 4027

        . osi_cred now uses struct group_info
        . the big kernel lock has been moved from the fs generic code
          for some of the operations in 2.6
        . 2.6 now just uses iput() and hooks the appropriate routines
        . the dummy inode list handling should be clearer

20 years agokaanswertoolong-20040420
Jeffrey Altman [Tue, 20 Apr 2004 15:56:16 +0000]
kaanswertoolong-20040420

when determining whether or not the ticket len is too long for the
receiver to accept we want to compare against the actual ticket length
and not MAXKTCTICKETLEN which is what is used when sizeof(ktc_ticketAnswer)
is used for comparison.

20 years agomore-memory-leak-fixes-20040418
Nickolai Zeldovich [Mon, 19 Apr 2004 06:43:58 +0000]
more-memory-leak-fixes-20040418

Another memory leak plugged; thanks to Jeffrey Altman for noticing it.

20 years agomemory-leak-fixes-20040417
Nickolai Zeldovich [Sun, 18 Apr 2004 07:13:47 +0000]
memory-leak-fixes-20040417

Fix some memory leaks.

20 years agomore-uafs-support-20040417
Nickolai Zeldovich [Sun, 18 Apr 2004 07:10:33 +0000]
more-uafs-support-20040417

Some more minor uafs fixes

20 years agoadd-fs-exa-file-support-20040417
Nickolai Zeldovich [Sun, 18 Apr 2004 07:09:49 +0000]
add-fs-exa-file-support-20040417

Make "fs exa filename" print out the FID for the filename, not just
the status for the volume containing that file.

20 years agouninitialized-20040417
Jeffrey Altman [Sun, 18 Apr 2004 04:16:14 +0000]
uninitialized-20040417

ngroups was uninitialized.  This produced a run-time warning even
though its value was never used in subsequent calls.  set to 0.

20 years agomore-memory-scrubbing-20040415
Nickolai Zeldovich [Fri, 16 Apr 2004 07:26:11 +0000]
more-memory-scrubbing-20040415

Scrub the callBacks array just in case, as we're exposing some
arbitrary kernel stack contents to the user.

20 years agodont-leak-random-kernel-data-20040415
Nickolai Zeldovich [Fri, 16 Apr 2004 05:57:01 +0000]
dont-leak-random-kernel-data-20040415

Zero out data structure being returned to user, so that we don't
send random kernel memory garbage to them.

20 years agomake-uafs-work-a-little-20040415
Nickolai Zeldovich [Fri, 16 Apr 2004 00:49:13 +0000]
make-uafs-work-a-little-20040415

Make UAFS at least a little more likely to work.

20 years agofix-linux-build-20040415
Nickolai Zeldovich [Thu, 15 Apr 2004 23:48:12 +0000]
fix-linux-build-20040415

It's AFS_LRALLOCSIZ, not AFS_LRALLOCSIZE.