73 Commits

Author SHA1 Message Date
Kris Van Hees
d6eefb7be5 afs-prefer-backup-volumes-on-mountpoints-option-20030808
afsd option (-backuptree) and proc interface code for linux to enable preferring
backup volumes when crossing mountpoints once in a tree of backup volumes.
2003-08-08 20:55:03 +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
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
Peter Breitenlohner
88e2d8e292 gcc-warnings-cleanup-20030701
FIXES 1650

add headers, cleanup castings
2003-07-01 20:23:51 +00:00
Nathan Neulinger
244fde00a9 afsd-check-for-bad-partition-type-20030602
FIXES 1455

disallow cache directory of types we know cause problems

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

typo
2003-06-03 05:31:08 +00:00
Alexei Kosut
26ee3fcc39 darwin-mount-and-disk-arbitration-enhancements-20030515
FIXES 1363

* Allow AFS to be mounted multiple times, each mountpoint with its
  own root volume.  This allows usage similar to the Windows client,
  e.g., mounting a drive that contains only the user's home
  directory.  Our users find this much easier to work with than
  having to navigate the entire AFS tree in the Finder or open/save
  dialog.

* Have afsd register /afs with the DiskArbitration system
  when mounting it.  This means that the root afs volume shows up in
  the Finder immediately, and prevents the Finder from getting
  confused by additional AFS volumes later on.

* Add a "-nomount" option to afsd, which prevents afsd from
  mounting /afs.  We use this by default on our Mac OS X client, so
  that AFS doesn't show up in the interface at all unless the user
  explicitly asks for an AFS volume to be mounted.  This is
  especially handy for portable or remote users who don't always
  have a network connection, since there isn't an AFS filesystem
  around to hang the Finder if the AFS servers can't be contacted
  (the cache manager may still hang, but since there are no AFS
  volumes mounted, the rest of the OS doesn't notice).

* Make it so that /afs (mounted by afsd) will not unmount unless
  MNT_FORCE is given.  This prevents the user from accidentally
  ejecting /afs in the Finder, and also works around a DiskArb bug in
  Mac OS X (possibly fixed in 10.2) where autodiskmount would sometimes
  unmount /afs when logging out, even though it's marked as
  non-ejectable.
2003-05-15 16:00:27 +00:00
Alexei Kosut
d4828d3226 darwin-use-perl-instead-of-grep-20030513
FIXES 1361

perl is installed by default. grep isn't. use perl.
2003-05-14 16:06:41 +00:00
Derrick Brashear
3fa5f389b2 move-up-cell-initialization-in-cachemgr-20030323
may be related to an oops at startup
2003-03-23 19:43:47 +00:00
Douglas Engert
6183df9e42 hpux-1122-initial-support-20030213
sys name may yet change and there's some relatively minor cleanup yet to be
done
2003-02-14 00:02:16 +00:00
Jim Rees
fa0eff2261 openbsd-rc-20030131
Get rid of dkload subdir
Get rid of "-chunksize 18 -stat 4800"
Change "fs setcrypt crypt" to "fs setcrypt on" (old CMU syntax)
2003-01-31 21:35:14 +00:00
Nickolai Zeldovich
4fa78ca168 openbsd-32-glue-20030130
Add glue to support OpenBSD 3.2.
2003-01-30 22:03:31 +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
Jim Rees
04f88387f9 openbsd-20021203
OpenBSD:
Don't include systm.h
#define iodone for 3.2
add rc file
2002-12-03 23:34:31 +00:00
Derrick Brashear
8b141efe96 cachemgr-warn-solaris-users-of-dangers-of-logging-20021122
with feedback from others.
2002-11-22 20:07:27 +00:00
Jim Rees
58c34e103c openbsd-20021030
More small OpenBSD fixes.
Now the module loads, afsd starts, and /afs gets mounted.
2002-10-30 22:56:58 +00:00
Nickolai Zeldovich
f0c7fe9ee1 Change the meaning of the -fakestat switch to only enable fakestat
for cross-cell mountpoints.  The -fakestat-all switch can now be
used to enable fakestat for all mountpoints (old behavior).
2002-10-07 00:00:14 +00:00
Nickolai Zeldovich
629d080654 This is mostly a rewrite of src/afs/afs_cell.c, and associated changes
to other things.  Features of the new cell code:

 * Persistent name-to-cell-number mapping across reboots, to ensure the
   cell numbers in the dcache are meaningful.  Stored in the new cache
   file, /usr/vice/cache/CellInfo.
 * Allow cmdebug to query the cell number to cell name mapping.
 * Allow clients to have an empty CellServDB as long as AFSDB is enabled
   and ThisCell has AFSDB records.
 * The home cell retains the setuid bit even if looked up via AFSDB.
 * Dynroot gets its own cell, rather than piggybacking on cell 1.
 * Cell 1 is no longer special; cell numbers are now semi-opaque.
 * Convert cell traversal code to using GetCellByIndex rather than
   directly poking at CellLRU / afs_xcell.
 * Separate cells from aliases, which shouldn't have been the same
   in the first place.
 * Cleaner code (IMHO).

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

make the arguments afs_CellNumValid takes match the prototype (since it
really is a afs_int32 it looks like)

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

update irix to deal

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

update irix to deal

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


Fix some more references to the now-nonexistant cell->index
2002-08-23 04:31:38 +00:00
Chaskiel M Grundman
89f411e22c darwin-updates-20020821
should be correct support for 10.2. also updates for 10.1
2002-08-21 23:07:52 +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
Derek Atkins
aea332588b linux-start-if-dynroot-even-if-no-network-20020731
if we start with dynroot, dont worry if we have net or not
2002-07-31 23:41:02 +00:00
Chaskiel M Grundman
90deacca54 freebsd-isnt-darwin-20020713
update rc script for freebsd
2002-07-13 04:30:54 +00:00
Derrick Brashear
d13f701812 afsd-dont-print-garbage-on-bad-cacheinfo-file-20020615
based on report from matt@slackers.net

don't bother printing anything we parsed, since we're guaranteed at least
one item is trash anyhow
2002-06-15 17:52:00 +00:00
Derrick Brashear
155c131923 afs-dont-allow-shutdown-before-umount-20020523
fix afs to enforce that /afs must be unmounted, and afsd to report it
2002-05-23 06:21:13 +00:00
Nickolai Zeldovich
6b33ed2b05 Initial fakestat support (fake mountpoint directory attributes).
Useful for quickly stat'ing everything under /afs, for instance.
Reasonably tested on Solaris, and appears to work on Linux too.
Enable with 'afsd -fakestat'.
2002-04-02 06:09:48 +00:00
Mattias Amnefelt
f0aea5e186 makefiles-dont-hardcode-optimization-flags-20020307
allow setting optimization in CFLAGS in makefiles

use -g3 on tru64
2002-03-08 05:59:32 +00:00
David Howells
367008ec65 linux-conf-fix-type-which-crept-in-20020124
"oops"
2002-01-24 18:09:28 +00:00
Yves Schutz
392ae5ce36 quote-modloaddir-when-looking-for-kernel-module-20011120
quote variable evaluation
2001-11-21 15:54:35 +00:00
Thomas Mueller
16b809cef2 linux-rc-make-ifconfig-speak-english-for-parsing-20011120
sadly the script is fluent only in english and can't even pretend it knows
anything else
2001-11-21 15:41:26 +00:00
David Thompson
9d8b844b3e linux-afsd-allow-ext3-journals-without-error-20011110
an ext3 journal in the vice cache (root of the partition) is allowable

we have no useful way to discern ext2 from ext3 without groveling in fstab
so just allow it
2001-11-10 18:21:59 +00:00
Nickolai Zeldovich
b28927c752 dynroot-allow-cell-aliases-20011101
allow cell aliases. includes support for non-'V' pioctls
2001-11-01 05:24:30 +00:00
Nickolai Zeldovich
dd9a7b025a afsdb-default-in-rc-files-20011031
enable afsdb using rc files
2001-11-01 05:10:38 +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
Derek Atkins
77523f9506 afsd-make-debug-switch-print-afsops-20011024
just print one more argument for afs system calls
2001-10-24 16:25:22 +00:00
Eric Lauriault
367c2856e8 sunx86-support-20011017
base sunx86 support for newer than solaris 2.4
2001-10-18 00:36:02 +00:00
Nathan Neulinger
b9948dd965 initial-objdir-support-20011017
first cut at objdir support
2001-10-18 00:06:58 +00:00
Derek Atkins
acdadc1bde linux-rc-file-cleanup-20011008
Modularize the Linux RC file(s) a bit.  In particular, add more
options for larger caches, allow autogeneration of the cacheinfo file,
make sure AFS only starts if the network is running, add SuSE header
information, and cope with the Red Hat initscripts better (on Red Hat
only, but should work on all systems).

====================
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 silly typo
2001-10-10 04:16:54 +00:00
Nickolai Zeldovich
077c0a4d76 unix-dynroot-support-20011009
The result is that if afsd is started with "-dynroot", /afs
  will be a locally-generated directory, with mountpoints for every
  cell in CellServDB (and /afs/.cellname as the rw mountpoint).  If
  AFSDB support is also enabled, attempting to access /afs/foo will
  cause the cache manager to do an AFSDB lookup on foo, similar to
  an automounter.  Cell aliases become symlinks to the real cell
  names under /afs.
2001-10-10 01:10:29 +00:00
Nickolai Zeldovich
56fa8cca37 support-cell-aliases-20011009
This patch adds support for "cell aliases": a cell alias allows a
  single cell to be known by multiple names (one of them the primary).
  This is useful in conjunction with AFSDB support, where you want all
  the possible names for the same cell to share the same tokens, etc.

  For instance, if the local resolver has "mit.edu" in its search
  domain, an AFSDB lookup on cell "athena" will cause the primary
  cell "athena.mit.edu" to be created, and "athena" made an alias
  for it.
2001-10-10 01:05:27 +00:00
Nickolai Zeldovich
f4b688d9ed solaris-9-support-20011008
support solaris 9
2001-10-08 23:19:07 +00:00
Nathan Neulinger
2c0184532b afsd-warning-cleanup-20011005
clean up warnings in afsd directory
2001-10-05 22:03:16 +00:00
Nickolai Zeldovich
34a3a269ec linux-compute-mtu-correctly-20011005
This patch fixes two bugs:

  (1) pass more than 4 parameters to AFSCALL syscalls on Linux,
      allowing the ADVISEADDR op to pass the MTU array pointer.

  (2) properly convert MTU's to network byte order, since that's
      what the rest of the code expects them to be.
2001-10-05 21:38:57 +00:00
Nickolai Zeldovich
d2e9d29b77 afsd-afsdb-shutdown-cleanly-20011005
make userspace afsdb handler shut down cleanly
2001-10-05 21:36:59 +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
Chaskiel M Grundman
0c412784f1 darwin-update-plist-building-20010912
update how plist files are constructed so subsconfigure for libafs can work
2001-09-12 06:00:46 +00:00
Derrick Brashear
20b20753c8 darwin-plist-renaming-20010911
allow configure processing of files
2001-09-11 21:30:21 +00:00
Nathan Neulinger
2a12550e7c add-cvsignores-to-project-20010910
start at cvsignores
2001-09-10 21:14:01 +00:00
Chaskiel M Grundman
7303f3148e darwin-build-updates-20010910
separate plist on per-version basis

1.4 is not yet supported
2001-09-10 21:07:32 +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
Chaskiel M Grundman
3ed7207c17 darwin-make-afsd-script-exit-for-failure-20010907
script failed to exit for one of the failure cases before
2001-09-07 19:59:03 +00:00