Commit Graph

316 Commits

Author SHA1 Message Date
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