Commit Graph

1923 Commits

Author SHA1 Message Date
Jeffrey Altman
d56b95d9a2 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
2004-01-04 10:39:03 +00:00
Jeffrey Altman
06af6dc9cf 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.
2004-01-02 07:03:47 +00:00
Derrick Brashear
47eac162ef undo-flexelint-screwage-20040101
irix cc wants this prototype
2004-01-01 07:58:38 +00:00
Derrick Brashear
49b42ef91d irix-osi-prototypes-20040101
add prototypes header for irix kernel module
2004-01-01 07:47:54 +00:00
Derrick Brashear
c8185c54f7 vos-full-listvol-irix-20040101
irix needs a inet_ntoa prototype
2004-01-01 06:51:25 +00:00
Derrick Brashear
858264ca90 undo-flexelint-breakage-20040101
make irix cc happy
2004-01-01 06:22:31 +00:00
Derrick Brashear
754d8a94ac undo-flexelint-damage-20040101
unfortunately the problem with making flexelint happy is that irix's cc
becomes sad.
2004-01-01 05:56:25 +00:00
Jeffrey Altman
c5e75ee015 nsis-installer-20031230
remove some additional warning messages
2003-12-30 22:34:18 +00:00
Jeffrey Altman
02b6bdbc6a nsis-installer-take-three-20031230
only use IsSilent on 2.0b3
2003-12-30 22:31:03 +00:00
Jeffrey Altman
a35d7330fd nsis-installer-take-two-20031230
Left out one change
2003-12-30 22:24:11 +00:00
Jeffrey Altman
e445236521 windows-nsis-installer-update-20031230
NSIS released v2.0 RC1 today.  Updated the installer script to
build with it.
2003-12-30 22:21:33 +00:00
Nickolai Zeldovich
af52472a75 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.
2003-12-28 01:26:32 +00:00
Jeffrey Altman
f91e4fd0e7 do-not-delete-krb5-ini-20031220
Do not delete krb5.ini unless we were installing KfW
2003-12-20 19:28:07 +00:00
Derrick Brashear
f35416a7ff dir-header-dont-conflict-with-kernel-protos-20031208
kernel module has disjoint buffer package
2003-12-13 00:04:56 +00:00
Derrick Brashear
d938729a11 libadmin-test-client-restore-prototypes-20031212
won't build without these. put em back.
2003-12-12 23:37:37 +00:00
Derrick Brashear
829975edc7 dlq-moveb-also-returns-void-20031212
nothing even uses it...
2003-12-12 23:29:49 +00:00
Derrick Brashear
61e6580fb6 ulock-rellock-actually-returns-void-20031212
but seriously.
2003-12-12 23:16:12 +00:00
Jeffrey Altman
3458ec42cb path-fixes-for-bos-logs-20031211
Fixes to paths to enable Bos Logs to function

-Rob
2003-12-12 01:21:06 +00:00
Jeffrey Altman
46c42a7637 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
2003-12-12 01:20:14 +00:00
Derrick Brashear
3d1da03178 pr-initialize-silence-error-on-empty-dir-20031211
FIXES 2678

don't print an error if we're just flushing the cached directory info
2003-12-11 19:06:16 +00:00
Jeffrey Altman
94682458df nmake-convenience-20031210
Add new targets  install-nsis and install-is5  to perform both a build
and an installer in one shot
2003-12-11 03:57:56 +00:00
Jeffrey Altman
95e9e5dbbd fix-netaddconnection2-call-svr-config-20031210
TEXT("") -> NULL
2003-12-11 03:21:20 +00:00
Jeffrey Altman
3e90ead98c 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
2003-12-10 22:17:48 +00:00
Jeffrey Altman
3fe290665f nsis-registry-changes-20031210
Turn off High Security Mode Logon Option
Turn on  Freelance Client
Turn off Use DNS
Turn on  Crypt Option
2003-12-10 18:12:01 +00:00
Jeffrey Altman
943ff78315 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.
2003-12-10 08:01:35 +00:00
Jeffrey Altman
ad5a7108ea oops-20031209
oops, typos
2003-12-10 07:49:55 +00:00
Jeffrey Altman
95252680a9 tal_string-must-allocate-memory-20031209
The tal_string routines must always allocate memory otherwise they
double free strings.
2003-12-10 07:48:06 +00:00
Jeffrey Altman
14d9380559 use-closesocket-not-close-20031209
In Winsock, the function to close sockets is closesocket() not close()
2003-12-10 07:03:55 +00:00
Jeffrey Altman
0f4d93c309 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.
2003-12-10 07:02:43 +00:00
Derrick Brashear
a31feefdb1 volser-salvagedirhandle-fix-arg-order-20031209
make the order of these consistent with the vol package
2003-12-09 23:07:57 +00:00
Jeffrey Altman
b6d499bf3c nsis-20b4-support-20031209
Add support conditionally building NSIS 2.0b3 or 2.0b4
2003-12-09 21:44:42 +00:00
Jeffrey Altman
ba08e66097 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.
2003-12-09 21:34:00 +00:00
Derrick Brashear
ebd13b0272 fix-ih-lock-macros-20031209
FIXES 1774

probably safe to remove trailing ; in ihandle.h now too.
2003-12-09 19:58:28 +00:00
Jeffrey Altman
6285a23dfd nsis-installer-updates-20031208
From Rob Murawski.  Add upgrade/downgrade support to NSIS installer
Comment out the Loopback Installer code
2003-12-08 22:40:56 +00:00
Derrick Brashear
36ac69eedc 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.
2003-12-08 07:31:57 +00:00
Jeffrey Altman
4b01f15c0c format-fix-for-fs-windows-20031208
spacing errors in List Quota command
2003-12-08 06:18:46 +00:00
Derrick Brashear
6dc76e27f0 fssync-extern-loglevel-20031208
wanna use LogLevel to determine whether to log? make sure it's declared.
2003-12-08 06:09:12 +00:00
Jeffrey Altman
a3339d2545 winnt-afsd-fs-header-fix-20031208
Improper prototype declaration
2003-12-08 06:08:45 +00:00
Derrick Brashear
3f98530173 protoize-buffer-20031208
we need a definition for struct buffer. while we're at it, protoize the
whole file.
2003-12-08 06:03:58 +00:00
Derrick Brashear
35192ba9e3 ptserver-prototype-ubik-20031208
since ubik got prototypes, we have to make our shadow functions the same
2003-12-08 05:50:39 +00:00
Jeffrey Altman
2ea2e4deba import-fs-formatting-to-windows-20031207
TICKET 2651

Import string formating from venus/fs.c
2003-12-08 04:32:27 +00:00
Jeffrey Altman
705241efee 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.
2003-12-08 04:01:20 +00:00
Jeffrey Altman
8bdaee9e18 remove-int64-conversion-warnings-20031207
Use casting to avoid repeated conversion warnings resulting in data loss.
2003-12-08 03:14:08 +00:00
Jeffrey Altman
85f6cefe70 jbuehler-add-missing-extern-c-patch-20031207
Add extern C modifiers to non-C++ functions in Windows files
2003-12-08 02:54:14 +00:00
Jeffrey Altman
d5070bd9a0 more-must-returns-20031207
More must returns value warnings cleaned up
2003-12-08 02:41:17 +00:00
Jeffrey Altman
0c23b6fd77 ntmakefile-fix-20031207
remove extraneous include of src/config/NTMakefile.version
2003-12-08 02:37:55 +00:00
Jeffrey Altman
3dc648d761 add-missing-return-values-20031207
Add missing return values producing warnings on Windows
2003-12-08 01:45:23 +00:00
Jeffrey Altman
08248560ea ticket-2618-corrections-20031207
Remove extraneous declarations in dir.c
2003-12-07 23:18:33 +00:00
Jeffrey Altman
21caaae64f 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.
2003-12-07 22:49:00 +00:00
Jeffrey Altman
4ceaebdbda 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.
2003-12-07 03:39:50 +00:00