openafs.git
20 years agokfw-changes-20040307
Jeffrey Altman [Mon, 8 Mar 2004 02:23:34 +0000]
kfw-changes-20040307

* Increase debugging of the KFW code;

* Remove the krb5_cc_remove_creds

20 years agofs-admin-privs-20040307
Jeffrey Altman [Mon, 8 Mar 2004 02:05:44 +0000]
fs-admin-privs-20040307

Add a requirement for Administrator privileges to the "fs setserverprefs"
command.

20 years agonetbiosName-cellname-20040306
Jeffrey Altman [Sat, 6 Mar 2004 21:38:48 +0000]
netbiosName-cellname-20040306

Add support for a new form of automatic share name generation

        \\netbiosName\cellname

which means that on systems with the loopback adapter you can
now refer to the athena.mit.edu afs cell as \\afs\athena.mit.edu\

This is implemented within cm_FindShare().  If the share name is not
one of the special ones and cannot be found in the Submounts table,
check to see if it is a known cell name,  If so, create a path to
the share of /afs/sharename with the "sharename" being lower cased.
(I hope there are no cell names in mixed or upper case.  This won't
work.)

20 years agoNTMakefile-dependencies-20040306
Jeffrey Altman [Sat, 6 Mar 2004 15:25:47 +0000]
NTMakefile-dependencies-20040306

Update dependencies on various libraries to enforce consistency checks

20 years agocorrections-to-MIT-merge-20040306
Jeffrey Altman [Sat, 6 Mar 2004 13:27:48 +0000]
corrections-to-MIT-merge-20040306

* Corrections to MIT merge caught by Asanka.

20 years agolanahelper-20040305
Jeffrey Altman [Sat, 6 Mar 2004 08:09:13 +0000]
lanahelper-20040305

Minor updates.  Fix AFS Root UNC path string; add debugging code (off by default)

20 years agoinaddr-any-20040305
Jim Rees [Sat, 6 Mar 2004 02:42:53 +0000]
inaddr-any-20040305

use INADDR_ANY instead of ADDR_ANY.

20 years agodrivemap-fix-take2-20040305
Jeffrey Altman [Fri, 5 Mar 2004 23:27:07 +0000]
drivemap-fix-take2-20040305

* See I knew it wouldn't work.  Revert to loop used in revision 1.14

20 years agodrivemap-fix-20040305
Jeffrey Altman [Fri, 5 Mar 2004 23:19:33 +0000]
drivemap-fix-20040305

* an attempt at a cheap fix which probably won't work.

20 years agolanahelper-library-20040305
Jeffrey Altman [Fri, 5 Mar 2004 23:09:18 +0000]
lanahelper-library-20040305

* at my request Asanka Hearth of MIT ripped out all of the code used
  the compute the Netbios Name of the SMB Server and the mountRoot
  and constructed one commonly used library called lanahelper.lib.
  This library is now constructed in the WINNT/afsd directory and
  used throughout the tree.  At least we now have consistency if
  nothing else.

20 years agono-cdev-fsync-20040303
Jim Rees [Wed, 3 Mar 2004 22:41:05 +0000]
no-cdev-fsync-20040303

don't try to fsync() a character special dev
reported and fix suggested by Helmut Jarausch

20 years agosmbname-consistency-20040302
Jeffrey Altman [Wed, 3 Mar 2004 03:32:42 +0000]
smbname-consistency-20040302

These changes are an attempt to provide a bit more consistency when
it comes to the establishment of SMB drive mappings.  Whenever mappings
are created, the same name is used when a name can be found.  This is
supposed to mirror what is performed in the integrated logon DLL.

20 years agofix-service-start-permissions-20040302
Jeffrey Altman [Tue, 2 Mar 2004 15:41:43 +0000]
fix-service-start-permissions-20040302

When merging the Skyrope changes I forgot to specify the SERVICE_START
privilege necessary to allow the -N option to work.

20 years agosecurity-class-object-leak-20040301
Jeffrey Altman [Tue, 2 Mar 2004 07:23:41 +0000]
security-class-object-leak-20040301

Incorrect reference count management results in a leak of rx_securityClass
objects.

20 years agoname-event-objects-20040301
Jeffrey Altman [Tue, 2 Mar 2004 04:14:43 +0000]
name-event-objects-20040301

When naming event objects allocated in a library, make sure the
names are unique by including the process id.

20 years agoopenafs-nsi-20040301
Jeffrey Altman [Tue, 2 Mar 2004 04:12:07 +0000]
openafs-nsi-20040301

Add two new registry keys:
RxMaxMTU (DWORD) = 1200 (decimal)
NoFindLanaByName (DWORD) = 1 (decimal)  DEBUG builds only

20 years agoafsi_log-buffer-20040301
Jeffrey Altman [Tue, 2 Mar 2004 04:09:32 +0000]
afsi_log-buffer-20040301

Increase the size of the final buffer to be large enough
to hold all of the data which is being written to it.

20 years agosmb_fid_t-leak-20040229
Jeffrey Altman [Sun, 29 Feb 2004 22:22:19 +0000]
smb_fid_t-leak-20040229

There was a significant leak of smb_fid_t objects produced when copying
files from an AFS volume.  This is clearly part of the problem reported
by UNCC.  However, there is still an unexplained memory leak associated
with reading and writing files even if the data is only being read from
the cache.

I am noticing reports of memory allocation overruns from the Debug CRT
when freeing SCache objects.  This could be a side effect of whatever is
causing the memory leak.  This will require more research.

20 years agowin32-name-event-objects-20040228
Jeffrey Altman [Sun, 29 Feb 2004 02:38:26 +0000]
win32-name-event-objects-20040228

This is a very bad leak of Event Objects.  Name all of our event objects
in an attempt to identify the source of the leak.  Apparently, the leak
is not coming from any Event Objects we are creating directly.

Did find a misallocation of event objects in the smb code for the
initial session object.  Fixed.

20 years agofindlanabyname-20040228
Jeffrey Altman [Sat, 28 Feb 2004 19:13:26 +0000]
findlanabyname-20040228

* an attempt to fix the problems with stack overwrites when calling
the undocumented calls does not work.  check it in anyway.

20 years agohidedots-fix-20040228
Jeffrey Altman [Sat, 28 Feb 2004 19:10:05 +0000]
hidedots-fix-20040228

* Fix the Hiding of dot files.  attributes were computed but never applied
  due to typo during merge

* Prevent crashing during service shutdown by power management thread

20 years agoafscreds-shortcut-params-20040227
Jeffrey Altman [Sat, 28 Feb 2004 06:26:05 +0000]
afscreds-shortcut-params-20040227

Obtain Shortcut Parameters from Registry Key

   {HKLM, HKCU}\SOFTWARE\OpenAFS\Client
(REG_SZ) AfscredsShortcutParams
   Default value is "-A -M -N -Q" if not found

20 years agonsis-afscreds-shortcut-params-20040227
Jeffrey Altman [Sat, 28 Feb 2004 06:20:12 +0000]
nsis-afscreds-shortcut-params-20040227

Add Shortcut Parameters to AfsCreds.exe  -A -M -N -Q

  A automatically attempt to obtain tokens on startup if needed
  M renew drive maps
  N background check monitors network configuration and attempts
    to obtain tokens or restart client service if needed
  Q do not start AFS wizard

20 years agoNoFindLanaByName-regkey-20040227
Jeffrey Altman [Fri, 27 Feb 2004 20:38:48 +0000]
NoFindLanaByName-regkey-20040227

Add a new registry entry "NoFindLanaByName" which can be set to 0x01 (DWORD)
to disable the FindLanaByName lookup in case it crashes

20 years agoenablekfw-part2-20040227
Jeffrey Altman [Fri, 27 Feb 2004 18:36:09 +0000]
enablekfw-part2-20040227

Current User should have priority over Local Machine

20 years agoenablekfw-regkey-20040227
Jeffrey Altman [Fri, 27 Feb 2004 18:35:22 +0000]
enablekfw-regkey-20040227

* Add new Registry Key:

{HKLM,HKCU}\\SOFTWARE\\OpenAFS\\Client
DWORD  EnableKFW

Default value if missing is 0x01

20 years agomorgan-patch-20040227
Jeffrey Altman [Fri, 27 Feb 2004 18:20:34 +0000]
morgan-patch-20040227

* Add error checking and logging for WaitForMultipleObject calls

* Place log file in directory pointed to by TEMP env variable if defined

* Use the platform defined value for MAXIMUM_WAIT_OBJECTS instead of
  the value 100.  (WinNT.h defines this as 64)

* Add a new registry value "AllSubmount" which can be set to DWORD 0x00
  to disable the automatic creation of the \\AFS\all submount.  This is
  for sites which wish to restrict access to the world.

20 years agonsis-new-reg-strings-20040227
Jeffrey Altman [Fri, 27 Feb 2004 07:40:20 +0000]
nsis-new-reg-strings-20040227

Make the NSIS installer create the registry strings for NetbiosName = "AFS"
and MountRoot = "/afs"

20 years agofix-unc-binding-message-20040227
Jeffrey Altman [Fri, 27 Feb 2004 07:35:25 +0000]
fix-unc-binding-message-20040227

Fix the UNC Binding message.

20 years agonbname-instead-of-mountroot-20040227
Jeffrey Altman [Fri, 27 Feb 2004 06:44:46 +0000]
nbname-instead-of-mountroot-20040227

When determining what name should be used for the NetbiosName
query the registry value "NetbiosName" instead of "MountRoot".

20 years agofix-getlana-typo-20040227
Jeffrey Altman [Fri, 27 Feb 2004 06:21:59 +0000]
fix-getlana-typo-20040227

GetUncServerName had a typo which was using "=" instead of "=="
not good.  :-(

20 years agono-wspp-builds-20040227
Jeffrey Altman [Fri, 27 Feb 2004 06:02:18 +0000]
no-wspp-builds-20040227

the WSPP build references in the current ntbuild.bat are extraneous
as there are no references to the defined variable anywhere else in
the build system.  remove them from ntbuild.bat

20 years agoskyrope-mit-merge-hell-20040226
Jeffrey Altman [Thu, 26 Feb 2004 19:22:35 +0000]
skyrope-mit-merge-hell-20040226

From Skyrope:

The Skyrope work attempted to improve on the end user experience of using
OpenAFS in the following ways:

   * Obtain tokens using renewable Kerberos 5 tickets in order to
     reduce the need for end users to renew expired tokens
   * Monitor the list of IP Addresses in order to detect changes
     in the network configuration which might affect the reachability
     of cells or the state of the AFS Client Service.  When cells
     are newly reachable, obtain tokens for the cells.  If the AFS
     Client Service is not running, start it.  If tokens are expiring
     attempt to renew them.
   * Use KDC probes to detect the accessibility of realms/cells.  If
     the KDC is not reachable, do not prompt the end user for a
     username and password.  (fs probe is not implemented on windows)
   * Automatically obtain tokens using the Windows Logon Session
     Kerberos credentials (if available)
   * Allow tokens for multiple cells to be obtained by using the
     same Kerberos 5 tickets.  (no UI yet implemented)
   * Perform drive mapping persistance by tracking it within the
     afsdsbmt.ini file instead of relying on the Windows Shell
     to persist the state.
   * Add new afscreds.exe command line options and change the
     default set used when creating the "AFS Credentials" shortcut
     in the Start Menu->Programs->Startup folder.

From MIT:

   * Auto-detection of loopback adapters.  Use "AFS" as the netbios
     name when a loopback adapter is installed.

   * Support for responding to power management events.  Used to
     flush the cache when the machine is about to suspend, hibernate,
     or shutdown

   * Documentation of Registry entries

   * Support for Extended SMB Requests

   * Beginning of support for true Event Log reporting from a
     message database

   * Hidden Dot File support (configured via the HideDotFiles
     registry option)

   * Configurable Max number of Multiplexed Sessions (MaxMpxRequests
     registry option)

   * Configurable Max MTU size (RxMaxMTU registry option)

   * Configurable Jumbogram support (RxNoJumbo registry option)

   * Configurable Max number of Virtual Connections per Server
     (MaxVCPerServer registry option)

   * Win32 DNS API support

   * Addition of SMB_ATTR_xxxx defines for use instead of hex numbers

   * A variety of heap access and resource deallocation errors corrected
     in the SMB code

   * Support for recursive directory creation

   * Modifications to the en_US version of the client configuration
     dialog (need to port to other languages)

Notes on the current check-in:

   * The KfW code will always be used when installed on the machine.
     This code only supports Krb5 and will not work with Krb4 only
     realms.  A registry flag indicating whether or not KfW should be
     used if found needs to be added.

   * afscreds.exe needs to have a registry entry created to control
     the parameter list it should be started with.  There should be
     a dialog to control this in the installer and within afscreds.exe

   * The MIT method of auto-assigning the mount-root and the netbios
     name is in conflict with the morgan stanley submissions in some
     parts of the code.  If you are using the loopback adapter with
     this code both the "NetbiosName" = "AFS" and "Mountroot" = "/afs"
     registry options must be specified.  This will be fixed in coming
     days.

20 years agoremove-nbt-reg-entry-on-XP-20040224
Jeffrey Altman [Tue, 24 Feb 2004 20:23:42 +0000]
remove-nbt-reg-entry-on-XP-20040224

In discussions with Andrei Keis at Morgan Stanley it has become clear
that the NBT registry parameter which disables the use of port 445
should only be used on Windows 2000.

20 years agorevert-linux-sysname-list-estale-fix-20040213
Derrick Brashear [Fri, 13 Feb 2004 18:58:39 +0000]
revert-linux-sysname-list-estale-fix-20040213

(despite just committing a leak fix) we can no longer find a kernel where this is needed so we'll leave it in the cvs history but revoke it. it may have been a "special" kernel

20 years agolinux-sysname-list-free-sysstate-20040213
Derrick Brashear [Fri, 13 Feb 2004 18:55:36 +0000]
linux-sysname-list-free-sysstate-20040213

required by linux-sysname-list-sys-links-resolve-dentry-20031109
eithout this, if you're in a directory that the second or later entry in a
sysname list resolved to, pwd returns ESTALE. force the true path to have its
dentry cached.

20 years agolinux-ppc64-fixes-20040202
Sven Oehme [Tue, 3 Feb 2004 06:23:30 +0000]
linux-ppc64-fixes-20040202

FIXES 3058

linux ppc64 port

20 years agoamd64-update-20040202
Andrej Filipcic [Tue, 3 Feb 2004 05:57:49 +0000]
amd64-update-20040202

FIXES 2756

deal with types in newer amd64 distributions
initialize some variables

20 years agofs-return-EIO-when-starting-read-beyond-EOF-20040202
Derrick Brashear [Tue, 3 Feb 2004 05:43:23 +0000]
fs-return-EIO-when-starting-read-beyond-EOF-20040202

FIXES 1493

large file support asserted when attempting to read beginning past
the end of the file

20 years agodumptool-largefile-support-20040202
Hartmut Reuter [Tue, 3 Feb 2004 05:31:52 +0000]
dumptool-largefile-support-20040202

FIXES 2720

make dumptool support large files

20 years agomacos-protect-kpasswd-20040202
Derrick Brashear [Tue, 3 Feb 2004 05:24:11 +0000]
macos-protect-kpasswd-20040202

FIXES 1893

rename kpasswd to kpasswd.afs in /usr/bin
since krb5 kpasswd is included

20 years agodarwin-avoid-hang-on-rename-20040202
Shantonu Sen [Tue, 3 Feb 2004 05:10:24 +0000]
darwin-avoid-hang-on-rename-20040202

FIXES 2967

this version deals with afs being multiply mounted.
return EXDEV on cross device rename attempts as upper layer doesn't deal for us

20 years agoacquire-fsync-lock-inside-while-loop-20040202
Tom Maher [Tue, 3 Feb 2004 04:53:43 +0000]
acquire-fsync-lock-inside-while-loop-20040202

FIXES 3205

in order to not violate the invariant that pthread_cond_timedwait be called
with a locked mutex, we must relock if we unlock.

20 years agodir-buffer-protos-20040123
Jim Rees [Fri, 23 Jan 2004 16:53:35 +0000]
dir-buffer-protos-20040123

take yet another stab at getting dir buffer prototypes right

20 years agonsis-run-time-lib-fixes-20040114
Jeffrey Altman [Thu, 15 Jan 2004 04:13:37 +0000]
nsis-run-time-lib-fixes-20040114

- Update the installer script to properly install the required
  runtime libraries for all compilers

- Update the AddToPath and RemoveToPath files

20 years agokdump-linux-sucks-more-20040113
Derrick Brashear [Wed, 14 Jan 2004 21:30:59 +0000]
kdump-linux-sucks-more-20040113

make it build on newer rhel

attempt to deal with hugemem kernel dumbness

20 years agoubik-election-epoch-fix-20040110
Jeffrey Hutzelman [Sat, 10 Jan 2004 16:59:35 +0000]
ubik-election-epoch-fix-20040110

ubik's ability to keep quorum broke when unix time passed 2^30 seconds.
Buy us another 2^30 seconds.

20 years agovos-move-copy-improvements-20040108
Jeffrey Hutzelman [Thu, 8 Jan 2004 21:54:10 +0000]
vos-move-copy-improvements-20040108

FIXES 2815

add switches to vos move and vos copy. add vos clone.

20 years agoavoid-long-windows-shell-timeouts-20040105
Jeffrey Altman [Sun, 4 Jan 2004 10:39:03 +0000]
avoid-long-windows-shell-timeouts-20040105

 * cm_conn.c: assume that if all of the servers for a cell are DOWN
   that there is NOSUCHVOLUME.  We can't return TIMEDOUT because
   this assumes there is a server which is up and the windows shell
   will in turn continue to try to reach it for several minutes on
   each refresh.  Of course, each refresh occurs more frequently
   than the timeouts.

   We can't return ALLOFFLINE because that in turn results in
   an attempt to cm_ForceUpdateVolume() will a NULL (cm_fid_t *).
   That in turn causes a null reference and a crash.

 * cm_volume.c: place a check in cm_ForceUpdateVolume() to return
   without performing its job if there is no (cm_fid_t *) value.
   Unfortunately, this in a ALLOFFLINE situation places the
   service into an infinite loop.

   Question: why is cm_ForceUpdateVolume() ever being called with
   a NULL parameter for the (cm_fid_t *)?

 * cm_smb.c: change the NTStatus for CM_ERROR_NOIPC to Remote
   Resources instead of Access Denied.

 * cm_buf.c: add a debugging statement

20 years agonsis-do-not-install-sdk-with-client-20040101
Jeffrey Altman [Fri, 2 Jan 2004 07:03:47 +0000]
nsis-do-not-install-sdk-with-client-20040101

From Rob Murawski: This is a diff with the changes we talked about for
making a separate section for the SDK files.  It is not installed by
default, unless the SDK files already exist.  (To keep them consistent
on the machine)

Also, a fix to the ShouldClientInstall function to properly handle
downgrades.

20 years agoundo-flexelint-screwage-20040101
Derrick Brashear [Thu, 1 Jan 2004 07:58:38 +0000]
undo-flexelint-screwage-20040101

irix cc wants this prototype

20 years agoirix-osi-prototypes-20040101
Derrick Brashear [Thu, 1 Jan 2004 07:47:54 +0000]
irix-osi-prototypes-20040101

add prototypes header for irix kernel module

20 years agovos-full-listvol-irix-20040101
Derrick Brashear [Thu, 1 Jan 2004 06:51:25 +0000]
vos-full-listvol-irix-20040101

irix needs a inet_ntoa prototype

20 years agoundo-flexelint-breakage-20040101
Derrick Brashear [Thu, 1 Jan 2004 06:22:31 +0000]
undo-flexelint-breakage-20040101

make irix cc happy

20 years agoundo-flexelint-damage-20040101
Derrick Brashear [Thu, 1 Jan 2004 05:56:25 +0000]
undo-flexelint-damage-20040101

unfortunately the problem with making flexelint happy is that irix's cc
becomes sad.

20 years agonsis-installer-20031230
Jeffrey Altman [Tue, 30 Dec 2003 22:34:18 +0000]
nsis-installer-20031230

remove some additional warning messages

20 years agonsis-installer-take-three-20031230
Jeffrey Altman [Tue, 30 Dec 2003 22:31:03 +0000]
nsis-installer-take-three-20031230

only use IsSilent on 2.0b3

20 years agonsis-installer-take-two-20031230
Jeffrey Altman [Tue, 30 Dec 2003 22:24:11 +0000]
nsis-installer-take-two-20031230

Left out one change

20 years agowindows-nsis-installer-update-20031230
Jeffrey Altman [Tue, 30 Dec 2003 22:21:33 +0000]
windows-nsis-installer-update-20031230

NSIS released v2.0 RC1 today.  Updated the installer script to
build with it.

20 years agofix-softsig-on-freebsd47-20031227
Nickolai Zeldovich [Sun, 28 Dec 2003 01:26:32 +0000]
fix-softsig-on-freebsd47-20031227

The workaround for Darwin of setting a signal handler for SIGUSR1 appears
to also be needed on FreeBSD 4.7.

20 years agodo-not-delete-krb5-ini-20031220
Jeffrey Altman [Sat, 20 Dec 2003 19:28:07 +0000]
do-not-delete-krb5-ini-20031220

Do not delete krb5.ini unless we were installing KfW

20 years agodir-header-dont-conflict-with-kernel-protos-20031208 openafs-devel-1_3_51
Derrick Brashear [Sat, 13 Dec 2003 00:04:56 +0000]
dir-header-dont-conflict-with-kernel-protos-20031208

kernel module has disjoint buffer package

20 years agolibadmin-test-client-restore-prototypes-20031212
Derrick Brashear [Fri, 12 Dec 2003 23:37:37 +0000]
libadmin-test-client-restore-prototypes-20031212

won't build without these. put em back.

20 years agodlq-moveb-also-returns-void-20031212
Derrick Brashear [Fri, 12 Dec 2003 23:29:49 +0000]
dlq-moveb-also-returns-void-20031212

nothing even uses it...

20 years agoulock-rellock-actually-returns-void-20031212
Derrick Brashear [Fri, 12 Dec 2003 23:16:12 +0000]
ulock-rellock-actually-returns-void-20031212

but seriously.

20 years agopath-fixes-for-bos-logs-20031211
Jeffrey Altman [Fri, 12 Dec 2003 01:21:06 +0000]
path-fixes-for-bos-logs-20031211

Fixes to paths to enable Bos Logs to function

-Rob

20 years agonsis-patches-20031211
Jeffrey Altman [Fri, 12 Dec 2003 01:20:14 +0000]
nsis-patches-20031211

To do list:

* remove /wizard from afssvrcfg.exe shortcuts

* add a "runonce" for afssvrcfg.exe /wizard when the Server is
installed

* enforce a restriction of no Freelance mode when the Server
is installed

* enforce a requirement of the Client install when the Server
is installed

* add a control panel shortcut to afssvrcfg.exe

* remove "recommended" tag from the AFS Server option

>>>>>>>>>>>>>>>>>>>>>

This is everything we talked about, plus:

1) Fixes the installer so re-installation behaves as expected.
All existing settings are preserved. (With the exception of what
is modifiable during install.  The cell name is prepopulated, but
the user CAN change it)
2) Likewise, an upgrade will retain previous settings.  (There
might be a point from which you cannot upgrade, i.e., from IBM
3.4 or something)
3) Variables named consistently, more code left out if NSIS 2.0b4.

-Rob

20 years agopr-initialize-silence-error-on-empty-dir-20031211
Derrick Brashear [Thu, 11 Dec 2003 19:06:16 +0000]
pr-initialize-silence-error-on-empty-dir-20031211

FIXES 2678

don't print an error if we're just flushing the cached directory info

20 years agonmake-convenience-20031210
Jeffrey Altman [Thu, 11 Dec 2003 03:57:56 +0000]
nmake-convenience-20031210

Add new targets  install-nsis and install-is5  to perform both a build
and an installer in one shot

20 years agofix-netaddconnection2-call-svr-config-20031210
Jeffrey Altman [Thu, 11 Dec 2003 03:21:20 +0000]
fix-netaddconnection2-call-svr-config-20031210

TEXT("") -> NULL

20 years agomurawski-20031210
Jeffrey Altman [Wed, 10 Dec 2003 22:17:48 +0000]
murawski-20031210

Murawski's daily patch for NSIS:

* user selectable registry settings

* generated files placed in $(OUT) tree

* installer produced in $(DEST) tree

* auto-detection of previous installation

* better naming to distinguish build date and Release vs Debug

20 years agonsis-registry-changes-20031210
Jeffrey Altman [Wed, 10 Dec 2003 18:12:01 +0000]
nsis-registry-changes-20031210

Turn off High Security Mode Logon Option
Turn on  Freelance Client
Turn off Use DNS
Turn on  Crypt Option

20 years agotal_string-was-coded-wrong-from-the-start-20031209
Jeffrey Altman [Wed, 10 Dec 2003 08:01:35 +0000]
tal_string-was-coded-wrong-from-the-start-20031209

tal_string defines three types: String, Ansi, Unicode
and provides functions to convert between them.  The
initial problem with this module was a lack of consistent
memory allocation.  The secondary problem was incorrect
conversion of between string types.

20 years agooops-20031209
Jeffrey Altman [Wed, 10 Dec 2003 07:49:55 +0000]
oops-20031209

oops, typos

20 years agotal_string-must-allocate-memory-20031209
Jeffrey Altman [Wed, 10 Dec 2003 07:48:06 +0000]
tal_string-must-allocate-memory-20031209

The tal_string routines must always allocate memory otherwise they
double free strings.

20 years agouse-closesocket-not-close-20031209
Jeffrey Altman [Wed, 10 Dec 2003 07:03:55 +0000]
use-closesocket-not-close-20031209

In Winsock, the function to close sockets is closesocket() not close()

20 years agodisable-optimizations-20031209
Jeffrey Altman [Wed, 10 Dec 2003 07:02:43 +0000]
disable-optimizations-20031209

Many of the subtle problems we are seeing with the AFS Server are
being aggrevated by compiler optimization bugs.  Disable for now.

20 years agovolser-salvagedirhandle-fix-arg-order-20031209
Derrick Brashear [Tue, 9 Dec 2003 23:07:57 +0000]
volser-salvagedirhandle-fix-arg-order-20031209

make the order of these consistent with the vol package

20 years agonsis-20b4-support-20031209
Jeffrey Altman [Tue, 9 Dec 2003 21:44:42 +0000]
nsis-20b4-support-20031209

Add support conditionally building NSIS 2.0b3 or 2.0b4

20 years agoremove-extraneous-appsver-20031209
Jeffrey Altman [Tue, 9 Dec 2003 21:34:00 +0000]
remove-extraneous-appsver-20031209

Remove extraneous reference to APPSVER variable.  This might have
been an attempt at turning on debug info for the .NET compiler
for non-debug builds.  The debug builds already have debug info
turned on.

20 years agofix-ih-lock-macros-20031209
Derrick Brashear [Tue, 9 Dec 2003 19:58:28 +0000]
fix-ih-lock-macros-20031209

FIXES 1774

probably safe to remove trailing ; in ihandle.h now too.

20 years agonsis-installer-updates-20031208
Jeffrey Altman [Mon, 8 Dec 2003 22:40:56 +0000]
nsis-installer-updates-20031208

From Rob Murawski.  Add upgrade/downgrade support to NSIS installer
Comment out the Loopback Installer code

20 years agovol-linux-dont-assume-ext2-20031208
Derrick Brashear [Mon, 8 Dec 2003 07:31:57 +0000]
vol-linux-dont-assume-ext2-20031208

to deal simply with /usr/include/linux potentially having 2.6 kernel headers
in newer linuxes. given that we might not have ext2 as root, this check
probably wasn't sufficient anyway.

20 years agoformat-fix-for-fs-windows-20031208
Jeffrey Altman [Mon, 8 Dec 2003 06:18:46 +0000]
format-fix-for-fs-windows-20031208

spacing errors in List Quota command

20 years agofssync-extern-loglevel-20031208
Derrick Brashear [Mon, 8 Dec 2003 06:09:12 +0000]
fssync-extern-loglevel-20031208

wanna use LogLevel to determine whether to log? make sure it's declared.

20 years agowinnt-afsd-fs-header-fix-20031208
Jeffrey Altman [Mon, 8 Dec 2003 06:08:45 +0000]
winnt-afsd-fs-header-fix-20031208

Improper prototype declaration

20 years agoprotoize-buffer-20031208
Derrick Brashear [Mon, 8 Dec 2003 06:03:58 +0000]
protoize-buffer-20031208

we need a definition for struct buffer. while we're at it, protoize the
whole file.

20 years agoptserver-prototype-ubik-20031208
Derrick Brashear [Mon, 8 Dec 2003 05:50:39 +0000]
ptserver-prototype-ubik-20031208

since ubik got prototypes, we have to make our shadow functions the same

20 years agoimport-fs-formatting-to-windows-20031207
Jeffrey Altman [Mon, 8 Dec 2003 04:32:27 +0000]
import-fs-formatting-to-windows-20031207

TICKET 2651

Import string formating from venus/fs.c

20 years agoset-service-error-condition-afsd-20031207
Jeffrey Altman [Mon, 8 Dec 2003 04:01:20 +0000]
set-service-error-condition-afsd-20031207

TICKET 2619

If the service crashes unexpectedly (eg, when the network adapter list
changes) we should return an error code so that system policy can be
used to determine if the service should be automatically restarted.
When there is an error GlobalStatus gets set to a non-zero value.
If GlobalStatus is set, we will return ERROR_EXCEPTION_IN_SERVICE
to the Service Manager.

20 years agoremove-int64-conversion-warnings-20031207
Jeffrey Altman [Mon, 8 Dec 2003 03:14:08 +0000]
remove-int64-conversion-warnings-20031207

Use casting to avoid repeated conversion warnings resulting in data loss.

20 years agojbuehler-add-missing-extern-c-patch-20031207
Jeffrey Altman [Mon, 8 Dec 2003 02:54:14 +0000]
jbuehler-add-missing-extern-c-patch-20031207

Add extern C modifiers to non-C++ functions in Windows files

20 years agomore-must-returns-20031207
Jeffrey Altman [Mon, 8 Dec 2003 02:41:17 +0000]
more-must-returns-20031207

More must returns value warnings cleaned up

20 years agontmakefile-fix-20031207
Jeffrey Altman [Mon, 8 Dec 2003 02:37:55 +0000]
ntmakefile-fix-20031207

remove extraneous include of src/config/NTMakefile.version

20 years agoadd-missing-return-values-20031207
Jeffrey Altman [Mon, 8 Dec 2003 01:45:23 +0000]
add-missing-return-values-20031207

Add missing return values producing warnings on Windows

20 years agoticket-2618-corrections-20031207
Jeffrey Altman [Sun, 7 Dec 2003 23:18:33 +0000]
ticket-2618-corrections-20031207

Remove extraneous declarations in dir.c

20 years agoticket-2618-patches-20031207
Jeffrey Altman [Sun, 7 Dec 2003 22:49:00 +0000]
ticket-2618-patches-20031207

TICKET 2618

flexelint patches for prototype handling from Joe Beuhler

>>>>>>>>>>>>>>>>>>>>>>>>>>>>

This patch adds a bunch of missing prototypes, makes various
corrections to global prototypes, and removes global declarations that
are not needed.

One set of added prototypes is commented out because it applies to
some printf-like functions that are implemented the way it used to be
done before varargs existed, and they need to be unprototyped or the
code will fail to compile.  (There are a number of functions in the
OpenAFS code that need to be converted to use varargs...)

There is one place of note in src/WINNT/afsd/fs.c where typedefs for
afs_int32 and afs_uint32 conflict with afs/stds.h.  I just added a
note to that effect.

Prototypes in src/WINNT/afsd/fs.c are incorrect for Windows NT.  I
don't know whether the return type involved changes from platform to
platform -- they come from .xg files.

Some prototypes are now commented out or #ifdef'd to match the code
that uses them.

Some global variables conflict between modules and have been made static.
The bufferBlock variable was of two completely different types...

In src/config/stds.h, I changed the declaration of afs_intmax_t to
reflect the fact that the Windows platform supports 64 bit integers.
This may be incorrect semantically, but I believe it is needed for the
%llx format to match afs_intmax_t arguments (for printing of inodes
mainly, I believe).

There were two different declarations for the rxkad_stats structure --
I synced them up.

- Joe

Removed the conflicting typedefs from src/WINNT/afsd/fs.c

Removed the changes to src/config/stds.h.  Added declaration of
AFS_64BIT_CLIENT to src/config/NTMakefile.i386_nt40 instead.

Do not remove unused variables which are defintions of data type
values.  Instead comment them out to avoid space utilization and
warnings.

20 years agoafssvrcfg-updates-20031206
Jeffrey Altman [Sun, 7 Dec 2003 03:39:50 +0000]
afssvrcfg-updates-20031206

Replace the mechanism used to register drives with WNetAddConnection2.
This will hopefully be more reliable than then older code which was
unable to register drive mappings.

Corrected error string formatting.

20 years agoadd-multiple-interface-support-20031206
Jeffrey Altman [Sat, 6 Dec 2003 21:17:39 +0000]
add-multiple-interface-support-20031206

The ubik support on Windows only verified against the first
address on the system even if that address was assigned to
a disabled interface.

20 years agoreorg-ntbuild-20031206
Jeffrey Altman [Sat, 6 Dec 2003 20:11:12 +0000]
reorg-ntbuild-20031206

Reorganize ntbuild.bat to place all of the user edits at the front