Commit Graph

316 Commits

Author SHA1 Message Date
Kris Van Hees
8be29dc516 salvager-fix-misparented-vnode-1-20031204
if vnode 1 gets a parent (which is incorrect) arrange for it to be cleaned
up properly
2003-12-04 16:23:28 +00:00
Jeffrey Altman
61cf9fa731 jbeuhler-flexelint-bugs-found-20031128
This patch covers bugs found by running flexelint on
the CVS code on Windows NT.

- incorrect enum used in al_creds.cpp and various other files
- use of local after it goes out of scope in al_wizard.cpp
- uninitialized class members in afsclass/*
- cm_config.c looks like it has code commented out accidentally
- useless statement in alert.cpp
- no default case handling in problems.cpp
- strange use of & on booleans in set_clone.cpp
- fgets() and fclose() on closed stream in cellconfig.c
- memory leak in cellconfig.c
- *scanf into variables of unknown length in cellconfig.c
- incorrect pointer passed to getAFSServer() in cellconfig.c
- possible buffer overflows in userok.c
- address of array in bos.c
- too many arguments for printf() in commands.c
- return code not saved in bucoord/main.c
- bad types for argv arrays in bucoord/main.c
- probably incorrect initializer list in ol_verify.c
- extra argument to TLog() in lwps.c
- memory leak in cmd/cmd.c
- lack of typecast on malloc() in a couple files
- lower-case L for long constant in touch.c (is it a 1 or an l...)
- parentheses nesting error in util_cr.c
- apparently invalid case fall-through in util_cr.c
- various memory leaks in util_cr.c
- macro missing parens in crypt.c
- macro missing parens in quad_cksum.c
- null pointer deref in kpasswd.c (CVS work in progress?)
- Print_bos_ProcessState_p() code does not look correct
- extra argument to printf() in kas.c
- typo in vsprocs.c
- macro missing parens in iomgr.c
- address of array in threadname.c
- storing result of getch() in char type in waitkey.c (may not match EOF constant)
- storing pointer to local car in global in ptserver.c (benign -- it is in main())
- address of array in rx_lwp.c
- macro missing parens in rx_packet.h
- impossible == (signed vs. unsigned?) in rxdebug.c
- bogus constants in xdr.c and xdr_array.c (possible security implications?)
- incorrect test of fd for open file in update/server.c
- dangerous unparenthesized macro in get_krbrlm.c
- buffer overrun in regex.c
- missing comma causes string concat and bad array init in vlclient.c
- comparison of string < 0 in ntops.c
- default case has no code in vos.c
--
Joe Buehler

>>>>

Comments: Several comments for FIXME left in the code - unaddressed
2003-11-29 22:07:57 +00:00
Jeffrey Altman
21ca232974 jbeuhler-flexelint-fun-with-printf-20031128
This patch addresses a number of problems with printf-like functions.

Most of them are %x formats applied to pointers (which could be a
problem depending on the architecture I would assume).  There is a
%p format for pointers on many machines but I don't know if it
applies to all supported OpenAFS platforms so I didn't go that route.

There is a buffer overflow fix to ktime.c

There are a couple places where incorrect format characters were used.

One call had two arguments swapped.

Other fixes include the use of PrintInode() and %s formats for
printing inode numbers.  The code was inconsistent in this regard -- sometimes
PrintInode() was used, sometimes it was side-stepped.

There is one place where a local shadowed another variable, so I renamed
the local.

The last segment points out that an fdset need not be anything printable
with an integer format.
--
Joe Buehler

Comments - The fdset comment relates to a WinSock only file on which
the size is a pointer to int.  Modified the source to use a %p instead
of %x as it is supported on Windows.

Added an assert(p != NULL) to src/rx/rx_packet.c
2003-11-29 21:37:50 +00:00
Jeffrey Altman
10750393dc jbuelhler-flexelint-aggregate-initialization-patches-20031129
This patch mainly makes explicit some initializations that were implicit.

There are several places where it looks like the missing initialization
may be a bug, and I have inserted comments to that effect in the
relevant patches.  Someone needs to look at them and supply
whatever is missing (if anything is).

In make_keyperm.c, an array was sized too large.
--
Joe Buehler
2003-11-29 20:23:24 +00:00
Jeffrey Altman
fc7931f4f2 joe-beuhler-patches-20031122
Joe Beuhler's many patches merged into the tree
2003-11-23 04:52:52 +00:00
Derrick Brashear
5e52289abf tvolser-update-20031121
add transaction mutex to handle global list of transactions
2003-11-22 02:57:04 +00:00
Jeffrey Altman
98544e6ab4 patch-from-shadow-to-jaltman-bkbox-20031120
This massive patch contains changes in several significant areas for Windows:

- the ability to specify the mount point to be something other than /afs

- functionality to assist debugging of the NT Services

- support for languages other than English (NTLang.bat)

- revisions to the Build system to support separate trees for src, obj,
  dest and free or checked; allow any MS compiler to be used

- updates to NSIS installer build

- mutex locking added to critical locations

- updates to IS5 directory tree creation

- update to afswsNetscape_config.sh
2003-11-21 07:59:35 +00:00
Derrick Brashear
b1dd6e87cb threaded-volserver-progress-20031114
not ready for primetime. not even close.
2003-11-15 04:59:08 +00:00
Derrick Brashear
79b67c7461 namei-ihandle-leak-20031114
FIXES 2518

namei_dec now logs if you have open ihandles when you unlink a file

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

flush all dir buffers we have cached when rewriting a volume from a restore

avoids holding an ihandle which has an open fdhandle for an unlinked file

====================
FIXES 2518

remove logging code for now. it appears to trigger on some possibly legitimate operations.
2003-11-14 23:36:16 +00:00
Ed Moy
e2e93aa892 macos103-20031024
FIXES 2325

support for macos 10.3 for 1.2.10
2003-10-24 07:25:58 +00:00
Nathan Neulinger
3467c69702 voldump-builds-with-volser-20030827
avoid circular dependancy issue.
2003-08-28 04:16:33 +00:00
Nathan Neulinger
0f97dbabce vol-dump-tool-20030824
FIXES 2008

create direct-from-disk volume dump tool
2003-08-24 22:22:39 +00:00
Derrick Brashear
8f00fdfd5f reindent-again-20030808
FIXES 1774

catch things which crept in. if emacs hadn't started ignoring my code
formatting settings this would suck so much less....
2003-08-08 22:54:30 +00:00
R. Lindsay Todd
08db75c196 large-file-support-20030808
FIXES 1493

large file support in the fileserver, again
2003-08-08 21:40:42 +00:00
Derrick Brashear
872bc94f8c reindent-20030715
FIXES 1774

thanks to nneul@umr.edu for providing a script to do this.
gnu indent 2.2.9 options:
-npro -nbad -bap -nbc -bbo -br -ce -cdw -brs -ncdb -cp1 -ncs -di2 -ndj -nfc1
-nfca -i4 -lp -npcs -nprs -psl -sc -nsob -ts8

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

fix subst mistake
2003-07-16 00:28:24 +00:00
R. Lindsay Todd
4dd74ef182 splint-support-20030701
FIXES 1493

add splint support targets to makefiles
add support files
2003-07-02 02:03:17 +00:00
Hartmut Reuter
f43c2f4412 aix-51-support-20030701
FIXES 1661

make afs work for aix5.1 64 bit.
some code cleanup
2003-07-01 23:02:58 +00:00
Nathan Neulinger
725db719ee vol-extra-logging-on-attach-detach-20030623
FIXES 1387

add extra logging, revert in cases where you don't have log level turned up
2003-06-23 17:04:29 +00:00
Nathan Neulinger
8236e418cc more-warnings-and-prototyping-work-20030619
FIXES 1816

abstracted from work by toddr@rpi.edu
2003-06-20 01:40:15 +00:00
Chaskiel M Grundman
bc9ff0f640 windows-file-versioning-20030619
FIXES 1488

It adds:

- the binary version of the file version/productversion, which the MSI
engine sort of want files in MSI packages to all have. This requires
another variable to be maintained in NTMakefile.i386_nt40 (Please don't
change the value from 1,2,910,0 to 1,2,9,1 or something like that. The last
number group in the version is considered completely insignificant by some
things)
- some file typing, which I don't know if anything cares about
- Some new items in the stringfileinfo table, (InternalName and
OriginalFilename) without which explorer won't show use the version info in
constructing tooltip text.
- Actually setting ProductVersion and FileVersion to something real
- Language codes, which the MSI engine also wants
2003-06-19 20:00:31 +00:00
R. Lindsay Todd
befd22d01d logging-changes-for-large-files-20030619
FIXES 1493

create afs_vsnprintf. use it in FSLog. add new types which are intmax and uintmax,
32 or 64 bit as needed.. some casting.
2003-06-19 18:35:44 +00:00
R. Lindsay Todd
e110b1d34a logging-cleanup-20030602
FIXES 1493

logging function cleanup and protoizing
2003-06-02 15:37:48 +00:00
R. Lindsay Todd
df3dbd1578 splint-fileserver-volserver-cleanup-20030602
FIXES 1493

add "make splint" target for viced, vol, volser and clean up for splint
2003-06-02 15:35:59 +00:00
R. Lindsay Todd
a04ba28f72 largefile-2nd-try-base-work-20030602
FIXES 1433

another try at largefile support. macroize so things can be easily cut over
2003-06-02 15:27:54 +00:00
Jeffrey Hutzelman
e011b31bfa syslog-tags-20030515
FIXES 1266

include a program tag in syslog output
2003-05-29 19:03:14 +00:00
Derrick Brashear
36225d6573 vol-more-logging-20030515
FIXES 1453

much more to do here. start with this.
2003-05-15 17:41:25 +00:00
Jeffrey Hutzelman
5012151295 salvage-allow-hardlinked-logs-by-date-20030515
FIXES 1259

a switch causes salvager to create salvagelog hardlinks by date so
logs are preserved forever
2003-05-15 17:23:37 +00:00
Nathan Neulinger
1932dede05 vol-additional-logging-20030513
FIXES 1387

additional logging for attach/detach.
2003-05-14 15:54:53 +00:00
Nathan Neulinger
bdd9476a9a vol-gi-prototyping-20030513
FIXES 1432

changed slightly by shadow@dementia.org to not need forward decl.
2003-05-13 05:11:01 +00:00
Michael Niksch
3ab37f7148 salvager-aix-update-20030407
make it work with namei
2003-04-07 18:56:28 +00:00
Nathan Neulinger
73b4283116 revert-large-file-support-20030328
FIXES 1341

sadly there are problems. how long before this comes to the fore again
i don't know.
2003-03-28 09:35:53 +00:00
Thomas Mueller
8af8241e94 vol-ro-to-rw-tool-20030314
FIXES 1262

allow converting an ro to an rw on namei servers
2003-03-14 20:46:51 +00:00
James Peterson
5df76f7321 windows-build-updates-20030314
support for V6.0 and .Net complier, compile from either NT4.0 or XP
Source and object are separated into different directories.  The directory
tree would look as follows:

Base from %AFSROOT% environment variable
%AFSROOT%\src\... - all source and generated source
%AFSROOT%\obj\checked\... objects from a checked build
%AFSROOT%\obj\free\...    objects from a free build
%AFSROOT%\obj\dest\checked\...  DEST folder from a checked build
%AFSROOT%\obj\dest\free\....    DEST folder from a free build

Before you start the build, you must build an object tree by issuing the
following:

nmake -f NTMAKEFILE mkdir

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

support for V6.0 and .Net complier, compile from either NT4.0 or XP
Source and object are separated into different directories.  The directory
tree would look as follows:
2003-03-14 20:11:44 +00:00
Derrick Brashear
644c4935f8 vol-prototyping-20030309
prototype much of the vol package
2003-03-10 02:08:33 +00:00
Derrick Brashear
db942233a5 viced-vol-ansification-20030303
some more code ansified
2003-03-03 15:37:03 +00:00
Harald Barth
54f056cc7a nuke-create-windows-pathnames-only-on-windows-thanks-20030228
don't construct a windows path on unix
2003-03-01 01:22:08 +00:00
Derrick Brashear
0385de10a1 salvager-create-larger-buffer-for-inodes-tmpfile-and-avoid-overrun-20030224
FIXES 1318

pointed out by Hartmut Reuter
2003-02-24 16:37:03 +00:00
Derrick Brashear
454af39fbc vol-check-malloc-return-20030208
make sure malloc doesn't fail in vol package either
2003-02-08 07:38:39 +00:00
Rainer Toebbicke
cff48dcb52 rx-thread-id-assignment-fixes-20030203
in rx_pthread.c the
++rxi_pthread_hinum;
has to be protected by the rx_stats_mutex in all three cases. In the file I
attached in the openafs-devel article the last one was accidentally
unprotected.

the FSYNC_sync thread (fssync.c) needs needs to be handled as well.
2003-02-03 20:45:51 +00:00
Derrick Brashear
ec111ccc44 vol-clone-inc-failure-logging-20030117
log info in event of assert

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

same change for IH_DEC
2003-01-17 06:46:39 +00:00
Nickolai Zeldovich
3ba961ca00 Wrap our assert() macro in do{..}while(0) to make it look
just like a real function.  Fix instances of use of this
macro that lacked a trailing semicolon of their own.
2003-01-14 01:05:11 +00:00
Nathan Neulinger
ab64672f2b salvager-fast-restart-log-to-syslog-also-20030111
if -syslog, also log this to syslog
2003-01-12 02:02:48 +00:00
Nathan Neulinger
580af44321 makefiles-cflag-cleanup-20030111
move cflags back to makefile.config, more cleanup, dup removal
2003-01-11 07:33:52 +00:00
Derrick Brashear
bd72450f80 vol-package-avoid-race-on-invalidating-hashed-vnode-20030111
thanks to whichever of jhutz@cmu.edu or cg2v@andrew.cmu.edu (or both)
noticed the race; also deal with wrap problem in VolumeCacheCheck that i
noticed
2003-01-11 07:26:35 +00:00
Sam Hartman
92e76f7eb2 include-errno-dont-declare-it-20030111
include errno.h instead of extern int errno ourselves
2003-01-11 07:22:14 +00:00
R. Lindsay Todd
800b103f0a fileserver-largefile-support-20020109
Fix compile problems for 64BIT_ENV with large files turned off
2003-01-09 19:16:50 +00:00
R. Lindsay Todd
a038124edc fileserver-largefile-support-20020107
fileserver-side large file support
2003-01-07 23:38:02 +00:00
Derrick Brashear
c9f2a72c91 fssync-interface-change-to-deal-with-callback-delays-20021204
move callback breaking into a separate thread

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

the rest of it. somehow the original version of this was lost.

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

the rest of it. somehow the original version of this was lost.

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

the rest of it. somehow the original version of this was lost.
2002-12-04 16:52:53 +00:00
Chaskiel M Grundman
fb3ca24729 REVERT-volserver-dont-deal-poorly-with-fssync-blockage-20021016
not ready yet, needs work
2002-12-03 02:00:24 +00:00
Derrick Brashear
3a7d53e8bd vputvnode-print-error-number-on-write-failure-20021104
make log message include error when taking volume offline
2002-11-04 20:15:38 +00:00
Chaskiel M Grundman
141c26f78e volserver-dont-deal-poorly-with-fssync-blockage-20021016
The attached patch attempts to deal with the issue that the volserver
blocks if the fileserver's fssync interface isn't responsive by doing a
select (IOMGR_Select) before trying to read the server's response.
2002-10-17 02:50:40 +00:00
Nathan Neulinger
782109a29b no-copy-libafs-builds-20021015
make things so file copies from src/libafs don't happen; change how libafs_tree is done
2002-10-16 04:58:13 +00:00
Derrick Brashear
c6da165252 fileserver-may-not-have-valid-diskDataHandle-if-volume-was-offlined-20021003
also avoid potential null deref in ih_open but with the ReadVolumeHeader patch
we should never get there.

thanks to Kris Van Hees for discovering this
2002-10-03 22:24:08 +00:00
Hartmut Reuter
3cc1ea60a3 aix51-support-20020926
aix 5.1 support, not yet ready for prime-time
2002-09-26 08:01:05 +00:00
Kris Van Hees
0f11456aa1 salvager-dont-mask-uniq-comparison-in-vnodes-only-in-inodes-20020920
the masking operation is for inodes when using "inode spares" fields which
overflow, not for vnode operations.

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


remove an extraneous right paren
2002-09-26 03:57:34 +00:00
Derrick Brashear
b5677719dc namei-close-directory-behind-us-always-20020827
more or less verbatim as suggested by kolya@mit.edu

avoid leaking directory fds if we get an error
2002-08-27 21:46:16 +00:00
Derrick Brashear
8e66ec5e01 prototypes-fixes-20020821
screw it. if winnt can have generic pointers, so can we

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

and cast all the pointers
2002-08-22 19:45:11 +00:00
Chaskiel M Grundman
da1203ea20 prototypes-fixes-20020821
fix the following problems
- including osi_vfs.h on almost all platforms, even though afsincludes.h
already deals with it
- universally declaring afs_globalVFS as a struct vfs *
- declaring afs_stats_XferSumBytes in a header without a storage class
- using afsincludes.h without sysincludes.h
- make clean removes a source file in rxkad

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

irix needs this, put it back

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

cast parm argument to CreateProcess

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

more lwp createprocess fun

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

more lwp
2002-08-22 01:13:09 +00:00
Jeffrey Hutzelman
808369b969 sunos4-port-20020821
This patch adds support for building OpenAFS user-mode code on SunOS 4.
It does not include libafs, ulibafs, or any code that needs to understand
the filesystem layout (so, no vfsck, and while the salvager will be built,
it won't work).
2002-08-21 20:19:28 +00:00
Nathan Neulinger
8f2df21ffe pull-prototypes-to-head-20020821
pull up prototypes to head
2002-08-21 19:52:17 +00:00
Kris Van Hees
78b1f7ec56 vol-allocate-partition-names-dynamically-to-avoid-problems-with-vx-stuff-20020624
otherwise long device paths can screw you
2002-06-24 20:09:59 +00:00
Derrick Brashear
d7e3e249cb vol-fssync-ack-before-breaking-callbacks-20020612
given that we don't bother to do anything to return value, we can ack
the fssync op earlier and not tie up the volserver unnecessarily

found due to comments from brent.johnson@jpl.nasa.gov
2002-06-12 23:07:08 +00:00
Srikanth Vishwanathan
5cbc233c64 vol-ihandle-cleanup-20020429
this does fix some potential problems, even if none of them are the
CopyOnWrite problem. basically, ih_reallyclose() could reinsert a now-unref'd
fd handle into the wrong list when cleaning up, and this cleans up the code
considerably.
2002-04-30 00:40:22 +00:00
Love Hörnquist-Åstrand
efa250bd1c nbsd-fileserver-dont-leak-fds-20020317
file server now works usefully on netbsd
2002-03-17 17:59:04 +00:00
Mattias Amnefelt
459815329b dux-make-namei-fileserver-work-20020304
namei should now work on tru64 (tested on 5.0a)
2002-03-04 16:47:22 +00:00
Chaskiel M Grundman
bd707fb7e6 freebsd-almost-working-client-20020216
a) a freebsd client that compiles, and to a certain extent, works. Should
not be used except by people doing freebsd client development
b) configure glue for freebsd 4.3, 4.4, and 4.5
c) freebsd tfileserver support. Note that, by default, this isn't very
interesting, as the supported freebsd pthreads are just as cooperative as
LWP. if you install the linuxthreads port and swap the MT_* variables in
osconf.m4, you will get a more traditional tfileserver though. configure
glue for that will be forthcoming at some point.
d) a maybe-fix that sets sin_len in sockaddrs on platforms that have them.

(and also a fix for the AC_PROG_CC issue which affects autoconf 2.13 and 2.5x
 on same conf files issue)
2002-02-16 18:23:44 +00:00
Ted Anderson
aef9d35023 vol-salvage-add-missing-parameter-to-logging-20020213
bad trace statement due to missing parameter; added
2002-02-13 20:00:18 +00:00
James Peterson
899a6eb679 windows-updates-20010108
"1. The default Open AFS is set to normal security (doesn't generate random
user names).
If you are installing over a previous version (before 1.2.2b) it's default
is
high security; therefore, if you want the normal security, you should
uninstall the previous version (1.2.2a or earlier) and select to 'Not
Preserve previous settings'.

To manually change security you need to set the following registry keys:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TransarcAFSDaemond\NetworkProvider
     LogonOptions = 1 - Integrated Logon
     LogonOptions = 2 - High Security options, Random User name generation
     LogonOptions = 3 - both

3. Windows 2000/NT, Win9x - First time installations will create necessary
directories when user decides to download CellServDB

4. Windows 2000/NT, Global Drive working.

5. Windows XP - Drive mapping via GUI working.

6. Rename pthread.dll to afspthread.dll"
2002-01-08 20:44:31 +00:00
Nickolai Zeldovich
9cbe95a1af solaris9-and-makefile-updates-20011102
updates for solaris 9; also don't have ${XLIBS} in target dependancies
if it's going to include things like -lnsl
2001-11-02 08:03:08 +00:00
Nathan Neulinger
838e1eae1a build-system-specific-makefile-configuration-from-configure-20011031
junk all of Makefile.${SYS_NAME} in favor of a common makefile built by
configure, and use it
2001-11-01 04:59:26 +00:00
Hartmut Reuter
05186dbe19 aix-namei-fileserver-support-20011031
necessary for namei support on aix
2001-11-01 03:58:36 +00:00
Hartmut Reuter
dcc63e13ef fast-restart-exit-if-no-args-20011031
when using fast restart, if salvager took no args, assume it's the fs bnode
and exit
2001-11-01 03:54:40 +00:00
Nathan Neulinger
e62e3c9b66 makefiles-attempt-to-support-gmake-j-20011023
move toward being able to gmake -j openafs
2001-10-23 21:57:19 +00:00
Nathan Neulinger
b9948dd965 initial-objdir-support-20011017
first cut at objdir support
2001-10-18 00:06:58 +00:00
Nathan Neulinger
d53aea964c vol-warnings-cleanup-20011005
make stream_open take const arguments
2001-10-05 22:31:47 +00:00
Nickolai Zeldovich
4b00d313a0 cvsignore-updates-kolya-20011005
ignore more things since we missed them before
2001-10-05 21:41:52 +00:00
Jeffrey Hutzelman
a134e52982 fix-destdir-support-for-fsconv-and-xfs-binaries-20011001
properly support DESTDIR case in vol makefile for certain files which were
broken before
2001-10-01 18:11:03 +00:00
Nickolai Zeldovich
f8a3fb704e allow-namei-fileservers-to-use-directories-instead-of-partitions-for-vicep-20010924
-- /vicepX/AFSIDat/README is created the first time the fileserver
    is started, rather than the second time.

 -- For the namei fileserver, /vicepa/Lock/vicepa is created as
    the lockfile.  Previously, on Solaris, the raw device was
    was being used for LockPartition(), and that breaks when
    there isn't a corresponding device.

 -- The VolPartitions and XVolPartitions volserver calls now return
    the list of attached (rather than mounted) partitions.  This is
    consistent with the NT fileserver and removes duplicate code.

The actual magic for allowing the fileserver to attach non-mounted
partitions is to create /vicepX/AlwaysAttach.

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

carefully avoid non vicep directories and/or partitions as it may get upset at
automounters or running cachemanagers!

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

more carefully avoid non-vicepX partitions
2001-09-26 01:02:46 +00:00
Walter Wong
7944ae223a misc-build-cleanup-20010917
1) Removal of unused variables
2) some NT ifdef cleanup
3) use of size_t rather than int to store the result of strlen()
4) some bugs that really only occured when errors occured.
5) some functions were implicitly declared as 'int' but doing a
   "return;" Some I declared as 'void' and prototyped them; some I
   just returned a value.

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

put symbol in an ifndef for winnt

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


change erroneous void to int

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

technically the cmdprocs return int

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


update function to be void
2001-09-17 22:37:21 +00:00
Jim Rees
b80f8ab2cb Initial OpenBSD support. Most of user space builds. No kernel module yet. 2001-09-14 00:19:17 +00:00
Nathan Neulinger
2a12550e7c add-cvsignores-to-project-20010910
start at cvsignores
2001-09-10 21:14:01 +00:00
Jeffrey Hutzelman
80e2c2f8ce make-install-support-for-transarc-and-prefix-style-universes-20010907
according to jeff:
- Renames the top-level 'install' target to 'build'.  This should be
    transparent, since no one should be using that.

  - Improves on Sam's dirpath patches, by splitting out server binaries
    into separate bin, sbin, and libexec directories in GCS mode (these
    are all /usr/afs/bin in Transarc mode).

  - Updates the top-level 'all' target so that it builds the software
    but does not generate a dest tree.  Top-level 'lib' and 'include'
    directories are generated to hold the intermediate libraries and headers
    used during the build.

  - Adds a new top-level 'install' target, which installs things in the
    appropriate directories under ${DESTDIR}, based on configure's install
    directories plus the extras added by Sam's patch.

  - Adds a new top-level 'dest' target, which creates an old-style dest
    directory under ${DEST}.  The ${DEST} variable defaults to the
    traditional value of ${SRCDIR_PARENT}/${SYS_NAME}/dest.  Note that
    this variable used to be called ${DESTDIR}; it was renamed to avoid
    conflicts with the de facto standard usage of ${DESTDIR}.

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

fix missed makefile

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

update another missed file

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

eliminate bogus escaping

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

get rid of another bogus escape

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

remove unused include directory

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

get rid of no longer used libdir

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

remove unused incdir

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

fix up some problems for make compatibility and missing trailing /

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

put afs.exp in the right place

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

remove bogus afssrvdir reference

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

update dest version of output

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

update ref to libexecdir

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

kill refs to afssrvdir

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


convert missed LIBDIR to TOP_LIBDIR

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

remove explicit INSTALL and use makefile.@sys value instead

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

except it's helpful to actually include makefile.@sys

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

convert LIBDIR to TOP_LIBDIR
2001-09-10 20:15:57 +00:00
Nathan Neulinger
635df30c0f more-makefiles-cleanup-20010829
get rid of cases where we'd end up with two / because of DESTDIR pasting

macroize calls to rm

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

get rid of another case of bogus trailing quoting
2001-08-30 00:22:17 +00:00
Nathan Neulinger
b0c5f0cac6 makefile-updates-20010828
clean up all the makefiles to remove bogus targets, eliminate trailing /
requirement from DESTDIR, avoid needing to pass things like DESTDIR around
between makefiles

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

remove bogus quoting
2001-08-29 02:19:55 +00:00
Derrick Brashear
c5c521af0e convert-from-bsd-to-posix-string-and-memory-functions-20010807
bcopy, bcmp, bzero, index, rindex, you're all cut.
memcpy, memcmp, memset, strchr, strrchr, show us how it's done

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

fix reference to memset the right thing

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

make change to arguments globally and not just for e.g. linux/darwin/fbsd

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

fix a minor flub in how this was done

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

correct another bad memcpy coversion

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

fix up more inadvertant turds

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

fix two errors found by chas williams
2001-08-08 03:05:55 +00:00
Nickolai Zeldovich
cfa2e59dc1 solaris8-namei-cleanup-20010802
note gi is useless for namei case

The AFS_64BIT_ENV define is needed for afsutil.h which makes use
of some 64-bit types (and if AFS_64BIT_ENV isn't set, defaults to
the non-existant u_int64_t).
2001-08-02 17:20:02 +00:00
Nathan Neulinger
0207991adc convert-all-makefiles-to-makefile-ins-20010802
all relevant variables become subst'd and not passed in the environment
2001-08-02 16:45:35 +00:00
Nathan Neulinger
1fd4f11faf include-afsconfig-before-param-h-20010712
so stuff can be defined in afsconfig.h and included first
2001-07-12 20:58:15 +00:00
Derrick Brashear
fbea776a8c install-vlib-as-libvlib-also-20010712
these weird archives which aren't installed as libwhatever are really annoying

vlib is now no longer one of these
2001-07-12 19:37:48 +00:00
Nathan Neulinger
e7ec0d4213 afsconfig-and-rcsid-all-around-20010705
convert rest of source to afsconfig; include rcsid macros

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

remove bogus if/define/endif triple

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

revert non-rcsid and afsconfig portion of patch
2001-07-05 16:20:00 +00:00
Tom Maher
a7014d4208 update-freebsd-support-20010628
fileserver now set up for namei interface. still no client
2001-06-29 04:20:01 +00:00
Garry Zacheiss
b5b8b317f6 update-make-clean-support-20010628
some stuff the make clean patch missed
2001-06-29 04:18:12 +00:00
Derrick Brashear
aaca2cacd9 introduce-autoconf-for-openafs-20010628
replace existing build system with autoconf faceplate

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

so we can fix the file modes

====================
commit withj correct file modes

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

stuff which got left behind

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

more stuff which was missed

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

get this right so build completes

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

also make these correct (no obj reference)

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

so autoconf dependancy chain need not change

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

set correct variable for obsolete buildng

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

so we can more easily use autoconf'd CC var
2001-06-28 06:44:19 +00:00
Nathan Neulinger
c8e0124c8e remove-potentially-bogus-warning-20010613
remove added warning which caused warnings during routine operation
2001-06-13 17:53:00 +00:00
Nathan Neulinger
142dcf54c1 vol-volser-more-liberal-information-in-log-messages-20010602
hopefully no one is processing these logs in a way this breaks. make error
and volname information available as part of error message
2001-06-03 17:34:34 +00:00
Nathan Neulinger
ebbea977f9 namei-ops-cleanup-20010601
get rid of unused/warnings from vol/namei_ops.c
2001-06-03 17:19:15 +00:00
Nathan Neulinger
2a8a12e94b update-makefiles-for-afsconfig-h-20010517
more updates so afsconfig.h can be included
2001-05-18 02:22:10 +00:00
Nathan Neulinger
d37f3d5ac9 remove-text-after-endif-20010430
remove typo which crept in
2001-04-30 16:09:41 +00:00
Jeffrey Hutzelman
1e5270c7d6 fix-sense-of-ifdef-for-darwin-20010425
reverse change from freebsd patch
2001-04-25 06:44:34 +00:00
Tom Maher
0c1eb3a380 initial-freebsd-port-work-20010414
start of work on freebsd port
2001-04-14 18:27:12 +00:00
Volker Holfeld
d065b7fc51 windows-compile-fixes-20010411
ignore serverLog on nt

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

correct typo for nt

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

update volinfo -filenames feature for nt
2001-04-11 19:57:23 +00:00
Nickolai Zeldovich
a574d1e742 partition-include-headers-to-get-opendir-etc-20010406
so namei code comes closer to being useful in more cases
2001-04-06 19:11:44 +00:00
Hartmut Reuter
d06043cc10 make-getfreetag-find-correct-free-tags-20010404
"I have found a "nice" bug in namei_ops.c:

In GetFreeTag() the following code was used to find a free place in the
link table entry:

    /* Now find a free column in this row and claim it. */
    coldata = 0x7;
    for (col = 0; col<NAMEI_MAXVOLS; col++) {
        coldata <<= col * 3;
        if ((row & coldata) == 0)
            break;
    }

What happens?
With col == 0 we look for the bits 0x7. This is ok.
With col == 1 we look for the bits 0x38. This is also ok.
With col == 2 we look for the bits 0xe00 instead of 0x1c0 !!!
But later the allocation is done correctly with 0x40.
Thus the next time he will find again a free place for col == 2 !
For higher values of col the test is also incorrect, of course."
2001-04-04 18:28:05 +00:00
Hartmut Reuter
d8313d4404 make-vol-package-deal-with-namei-correctly-on-systems-which-can-be-compiled-with-or-without-namei-fileserver-20010404
If compiled without AFS_NAMEI_ENV existence
of AFSIDat must stop us. If compiled with AFS_NAMEI_ENV volume headers
in a partition, but no AFSIDat must stop us.
2001-04-04 18:14:23 +00:00
Nathan Neulinger
3c597bf218 salvager-syslog-support-20010404
support for salvager to syslog instead of logging to file
2001-04-04 18:12:18 +00:00
Nathan Neulinger
16238e1dd2 simplify-salvager-target-20010404
it's the same for linux as for everyone else now
2001-04-04 18:00:44 +00:00
Thomas Mueller
afaa185472 add-volinfo-filenames-arg-in-namei-environment-20010402
show filenames used by volumes in namei fileserver
2001-04-03 00:13:04 +00:00
Nickolai Zeldovich
150cbf3db8 make-namei-fileserver-compile-on-solaris8-20010327
use uint64_t in preference to u_int64_t as solaris has only the latter and
linux appears to have both. also, use lockf where flock was used in the
solaris case
2001-03-27 08:58:49 +00:00
Chaskiel M Grundman
a41175cfbb initial-darwin-support-20010327
setup for darwin port

====================
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.
====================
changes for darwin port

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

added files for the darwin port

====================
changes for darwin port
2001-03-27 08:43:13 +00:00
Hartmut Reuter
f310da48b4 support-namei-fileserver-on-solaris8-20010305
So the namei fileserver can be used on Solaris 8
2001-03-05 16:39:05 +00:00
Hartmut Reuter
1ce1e6ed49 sgi_65-compilation-patches-20010131
Remove references to missing EFS support library so sgi_65 support compiles
2001-01-31 21:27:44 +00:00
Sam Hartman
acceff25eb linux-ppc-minor-cleanup-20010119
Minor fixes to make the PPC port happy.
2001-01-19 05:57:12 +00:00
Hartmut Reuter
43f97ca58c fast-start-20001220
FAST_RESTART ifdef'd code omits salvage at restart. -DontSalvage must be
added to salvager args in the bos configuration

BITMAPS_LATER ifdef'd code lets the fileserver create the bitmaps for
free vnodes only on demand, so the fileserver may start faster.
2000-12-23 23:52:38 +00:00
Nathan Neulinger
a35279d314 warning-fixes-20001213
Various fixes to eliminate warnings
2000-12-13 21:36:06 +00:00
Derrick Brashear
fb5bcd00fc Standardize License information 2000-11-04 10:01:08 +00:00
IBM
87c10e8d7f Initial IBM OpenAFS 1.0 tree 2000-11-04 02:13:13 +00:00