]> git.michaelhowe.org Git - packages/o/openafs.git/log
packages/o/openafs.git
20 years ago * Set PATH in the init script, just in case.
Russ Allbery [Sat, 10 Sep 2005 02:46:27 +0000 (02:46 +0000)]
  * Set PATH in the init script, just in case.

Also use /sbin/runlevel to find the run level rather than relying on
the environment variable, since the latter isn't always set.

20 years agoCreate the directory for the doc link.
Russ Allbery [Sat, 10 Sep 2005 02:20:50 +0000 (02:20 +0000)]
Create the directory for the doc link.

20 years ago * Make the short descriptions shorter.
Russ Allbery [Fri, 9 Sep 2005 22:10:13 +0000 (22:10 +0000)]
  * Make the short descriptions shorter.

20 years agoReformat.
Russ Allbery [Fri, 9 Sep 2005 22:07:22 +0000 (22:07 +0000)]
Reformat.

20 years ago * libpam-openafs-kaserver must depend on openafs-client, not just
Russ Allbery [Fri, 9 Sep 2005 22:01:13 +0000 (22:01 +0000)]
  * libpam-openafs-kaserver must depend on openafs-client, not just
    recommend it, since acquiring tokens requires that the client be
    running.
  * Expand README.Debian and include information about PAM configuration.
  * Link libpam-openafs-kaserver's doc directory to openafs-client.

20 years agowindows-detect-uuid-cloning-20050909
Jeffrey Altman [Fri, 9 Sep 2005 20:47:03 +0000 (20:47 +0000)]
windows-detect-uuid-cloning-20050909

Begin to store the Disk Volume Serial Number and Machine SID in the
AFSCache file for use in detecting system clones.   Clones must get
a new UUID for the AFS Client.

20 years agowindows-fs-cleanup-20050909
Jeffrey Altman [Fri, 9 Sep 2005 20:43:07 +0000 (20:43 +0000)]
windows-fs-cleanup-20050909

remove unused variables

20 years agowindows-pioctl-debug-20050909
Jeffrey Altman [Fri, 9 Sep 2005 13:51:43 +0000 (13:51 +0000)]
windows-pioctl-debug-20050909

log the pioctl path provided by the caller

20 years ago * Remove the init script check of the cache file system and instead
Russ Allbery [Fri, 9 Sep 2005 09:29:23 +0000 (09:29 +0000)]
  * Remove the init script check of the cache file system and instead
    improve the check in afsd.  The init script check used stat, which is
    in /usr/bin and therefore not fair game for init scripts.

20 years ago * When kill_all_afs is enabled in /etc/openafs/afs.conf, only kill AFS
Russ Allbery [Fri, 9 Sep 2005 09:08:38 +0000 (09:08 +0000)]
  * When kill_all_afs is enabled in /etc/openafs/afs.conf, only kill AFS
    processes if the runlevel is 0 or 6.  You really only want this when
    the system is shutting down.  (Closes: #325347)

20 years ago * Translation updates.
Russ Allbery [Fri, 9 Sep 2005 08:55:48 +0000 (08:55 +0000)]
  * Translation updates.
    - Portuguese (Brazil), thanks Andre Luis Lopes.

20 years agoMerge with upstream 1.4.0-rc3 release (as 1.4rc3 so that version numbers
Russ Allbery [Fri, 9 Sep 2005 08:53:21 +0000 (08:53 +0000)]
Merge with upstream 1.4.0-rc3 release (as 1.4rc3 so that version numbers
will sort correctly).

20 years agoImport 1.4.0-rc3 from /afs/grand.central.org/software/openafs/candidate. upstream/1.4.0.rc3
Russ Allbery [Fri, 9 Sep 2005 08:49:08 +0000 (08:49 +0000)]
Import 1.4.0-rc3 from /afs/grand.central.org/software/openafs/candidate.

20 years agowindows-fs-flushall-20050907
Jeffrey Altman [Wed, 7 Sep 2005 20:19:10 +0000 (20:19 +0000)]
windows-fs-flushall-20050907

"fs flushall" is like "fs flushvolume" but flushes all data in the cache

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

typo

20 years agolinux-root-fix-reval-20050907
Chas Williams [Wed, 7 Sep 2005 18:38:56 +0000 (18:38 +0000)]
linux-root-fix-reval-20050907

FIXES 21390

revalidate the root vnode correctly so if we become replicated we don't lose

20 years agowindows-uuid-note-20050907
Jeffrey Altman [Wed, 7 Sep 2005 18:17:04 +0000 (18:17 +0000)]
windows-uuid-note-20050907

Warn users to remove AFSCache file when cloning machines with AFS installed

20 years agolinux-root-no-reval-20050905
Chas Williams [Mon, 5 Sep 2005 17:28:39 +0000 (17:28 +0000)]
linux-root-no-reval-20050905

don't revalidate the root afs vnode, so if root.afs becomes replicated out from under us we don't lose.

20 years agowindows-install-notes-20050904
Jeffrey Altman [Sun, 4 Sep 2005 05:53:27 +0000 (05:53 +0000)]
windows-install-notes-20050904

updated install notes

20 years agowindows-updates-20050904
Jeffrey Altman [Sun, 4 Sep 2005 05:50:17 +0000 (05:50 +0000)]
windows-updates-20050904

most recent change descriptions

20 years agolinux-remove-reval-shortcut-20050903
Chas Williams [Sun, 4 Sep 2005 05:10:14 +0000 (05:10 +0000)]
linux-remove-reval-shortcut-20050903

don't skip revalidation work so we don't end up with bogus directory dates

20 years agoshlibafsrpc-objdir-20050902
Nathan Neulinger [Sat, 3 Sep 2005 00:38:16 +0000 (00:38 +0000)]
shlibafsrpc-objdir-20050902

FIXES 21312

make objdir builds work again

20 years agorx-propagate-error-20050902
Jeffrey Hutzelman [Fri, 2 Sep 2005 23:48:35 +0000 (23:48 +0000)]
rx-propagate-error-20050902

if we have an error propagate it to new calls

20 years agowindows-pioctl-20050902
Jeffrey Altman [Fri, 2 Sep 2005 18:23:50 +0000 (18:23 +0000)]
windows-pioctl-20050902

support '/' as well as '\\' in pioctl calls

20 years agowindows-loopback-20050831
Asanka Herath [Thu, 1 Sep 2005 02:55:01 +0000 (02:55 +0000)]
windows-loopback-20050831

As stated in the afs-install-notes, the MS Client for Networks should
be enabled on the loopback adapter, so enable it.

Prevent an install failure by not calling CoInitialize twice in the same
thread.

20 years agowindows-gui2fs-20050831
Jeffrey Altman [Thu, 1 Sep 2005 01:00:41 +0000 (01:00 +0000)]
windows-gui2fs-20050831

Apply AFS Client Admins group protect to AFS Shell Extension

Add support for \\afs\<name> to most commands except the symlink methods.

20 years agowindows-cell-expiration-20050831
Jeffrey Altman [Thu, 1 Sep 2005 00:52:03 +0000 (00:52 +0000)]
windows-cell-expiration-20050831

When updating cell information from DNS, be sure to set a new timeout.
When obtaining cell information from a file, check every two hours to
see if it changed.

20 years agovolser-audit-setids-fix-20050831
Derrick Brashear [Wed, 31 Aug 2005 22:35:40 +0000 (22:35 +0000)]
volser-audit-setids-fix-20050831

FIXES 21263

type is an int, not a string

20 years agowindows-freelance-fs-symlink-20050831
Jeffrey Altman [Wed, 31 Aug 2005 11:59:06 +0000 (11:59 +0000)]
windows-freelance-fs-symlink-20050831

Add support to allow use of \\AFS\<foo> where <foo> is either a mount
point or symlink.   As <foo> is normally treated as a share name, we
transform it into \\AFS\all\<foo> for processing.

20 years agowindows-afslogon-code-init-20050829
Eric Williams [Mon, 29 Aug 2005 20:39:56 +0000 (20:39 +0000)]
windows-afslogon-code-init-20050829

Init 'code' to prevent false errors when integrated logon is disabled
and the service is not running

20 years agoobsd-krb5flags-20050828
Jim Rees [Mon, 29 Aug 2005 19:58:05 +0000 (19:58 +0000)]
obsd-krb5flags-20050828

KRB5CFLAGS and KRB5LIBS for OpenBSD

20 years agowindows-notes-20050828
Jeffrey Altman [Sun, 28 Aug 2005 21:48:25 +0000 (21:48 +0000)]
windows-notes-20050828

updates

20 years agoaklog-no-gmake-20050828
Derrick Brashear [Sun, 28 Aug 2005 20:59:55 +0000 (20:59 +0000)]
aklog-no-gmake-20050828

FIXES 21031

make aklog Makefile not use gmake/non standard make += syntax

20 years agowindows-default-trace-log-off-20050827
Jeffrey Altman [Sun, 28 Aug 2005 04:43:55 +0000 (04:43 +0000)]
windows-default-trace-log-off-20050827

Now that OAFW is ready for a stable series, we will default "fs trace"
to off on non-Debug builds.   It can be set to on via the TraceOption
registry value.  (see registry.txt)

20 years agowindows-add-tid-to-mutex-20050827
Jeffrey Altman [Sun, 28 Aug 2005 04:32:44 +0000 (04:32 +0000)]
windows-add-tid-to-mutex-20050827

Add to mutex objects the ID of the thread that holds the lock.  This
will make future debugging much easier.

20 years agowindows-scache-deadlock-fix-20050827
Jeffrey Altman [Sun, 28 Aug 2005 04:29:31 +0000 (04:29 +0000)]
windows-scache-deadlock-fix-20050827

It was reported that Microsoft Word when editing files stored in AFS
would cause OAFW to fail to respond.  It was determined that a scp->mx
lock was not being released in buf_WaitIO if the no one was waiting
on the scp.

This patch corrects the deadlock and fixes some debugging messages.

20 years agowindows-remove-log-messages-20050826
Jeffrey Altman [Fri, 26 Aug 2005 14:46:11 +0000 (14:46 +0000)]
windows-remove-log-messages-20050826

The log message added to buf_LockedCleanAsync() during the debugging
post 1.3.8201 is output for 1/10th of all buffers once every 5 seconds.
This is a huge performance hit.  Move the message so that it is only
output for buffers that are actually dirty.

Also, change the algorithm so that the sqrt() of the number of buffers
are checked every 5 seconds instead of 1/10th.   This will do a better
job with very large cache sizes.

20 years agowindows-trace-log-to-dbgview-20050820
Jeffrey Altman [Fri, 26 Aug 2005 14:39:31 +0000 (14:39 +0000)]
windows-trace-log-to-dbgview-20050820

Added a new option for viewing the trace log data in real time

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

Include the Thread ID in the output to make it usable for debugging
deadlocks.

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

alter the afsd_init.log tag for the TraceOption to not be
Windows Event Log specific.

20 years agoFinalize changes for 1.4rc1-1. debian/1.4rc1-1
Russ Allbery [Fri, 26 Aug 2005 08:30:22 +0000 (08:30 +0000)]
Finalize changes for 1.4rc1-1.

20 years agoFlesh out TODO a little more.
Russ Allbery [Fri, 26 Aug 2005 08:29:12 +0000 (08:29 +0000)]
Flesh out TODO a little more.

20 years agoFix a couple of minor nits in the transcript.
Russ Allbery [Fri, 26 Aug 2005 08:26:09 +0000 (08:26 +0000)]
Fix a couple of minor nits in the transcript.

20 years agoAdd a check to be sure the user has tokens, and add some whitespace to
Russ Allbery [Fri, 26 Aug 2005 08:25:43 +0000 (08:25 +0000)]
Add a check to be sure the user has tokens, and add some whitespace to
help readability.

20 years agoAlso use inet_ntoa before comparing to textual IP addresses.
Russ Allbery [Fri, 26 Aug 2005 08:01:24 +0000 (08:01 +0000)]
Also use inet_ntoa before comparing to textual IP addresses.

20 years agoUse inet_ntoa on IP addresses we're printing out.
Russ Allbery [Fri, 26 Aug 2005 07:59:15 +0000 (07:59 +0000)]
Use inet_ntoa on IP addresses we're printing out.

20 years agoThe krb4 support options are full or nopreauth, not full or preauth.
Russ Allbery [Fri, 26 Aug 2005 07:48:14 +0000 (07:48 +0000)]
The krb4 support options are full or nopreauth, not full or preauth.

20 years agoAdd some additional explanation of afs-rootcell, afs-newcell, and
Russ Allbery [Fri, 26 Aug 2005 06:33:03 +0000 (06:33 +0000)]
Add some additional explanation of afs-rootcell, afs-newcell, and
bosserver.

20 years ago * Update the configuration transcript to reflect the current packages,
Russ Allbery [Fri, 26 Aug 2005 05:53:43 +0000 (05:53 +0000)]
  * Update the configuration transcript to reflect the current packages,
    messages, and instructions.  Thanks, Faheem Mitha.

20 years ago * Update standards version to 3.6.2 for the kernel module packages (no
Russ Allbery [Fri, 26 Aug 2005 05:40:46 +0000 (05:40 +0000)]
  * Update standards version to 3.6.2 for the kernel module packages (no
    changes required).

20 years agoFix minor typos in the prerequisites section.
Russ Allbery [Fri, 26 Aug 2005 05:28:32 +0000 (05:28 +0000)]
Fix minor typos in the prerequisites section.

20 years agoAdd an explicit mention of addprinc in the section on creating an admin
Russ Allbery [Fri, 26 Aug 2005 05:25:03 +0000 (05:25 +0000)]
Add an explicit mention of addprinc in the section on creating an admin
account in Kerberos.

20 years agoClean up error handling and reporting a little bit more. Add a warning
Russ Allbery [Fri, 26 Aug 2005 05:19:41 +0000 (05:19 +0000)]
Clean up error handling and reporting a little bit more.  Add a warning
before creating the pt database, saying to expect a few harmless errors.
Add an unwind for deleting the root.afs volume, in case starting the
client fails.

20 years agoMake errors and the beginning of rollback a little more obvious; people
Russ Allbery [Wed, 24 Aug 2005 20:52:36 +0000 (20:52 +0000)]
Make errors and the beginning of rollback a little more obvious; people
were overlooking which line was the real failure.

20 years agoFix a couple of typos.
Russ Allbery [Wed, 24 Aug 2005 20:46:08 +0000 (20:46 +0000)]
Fix a couple of typos.

20 years agoPass -wait to bos shutdown to make sure all of the processes have exited
Russ Allbery [Wed, 24 Aug 2005 20:44:41 +0000 (20:44 +0000)]
Pass -wait to bos shutdown to make sure all of the processes have exited
before moving on.  Otherwise, a file server that's slow to shut down
causes the bos delete call to fail.

20 years agoUpdate the Project-Version for all of the up-to-date translations.
Russ Allbery [Tue, 23 Aug 2005 17:58:05 +0000 (17:58 +0000)]
Update the Project-Version for all of the up-to-date translations.

20 years agoMerge upstream 1.4.0-rc1 but call it 1.4rc1 so that version numbers
Russ Allbery [Tue, 23 Aug 2005 17:51:37 +0000 (17:51 +0000)]
Merge upstream 1.4.0-rc1 but call it 1.4rc1 so that version numbers
sort correctly.

20 years agoImport OpenAFS 1.4.0-rc1 from /afs/grand.central.org/software/openafs/candidate upstream/1.4.0.rc1
Russ Allbery [Tue, 23 Aug 2005 17:41:24 +0000 (17:41 +0000)]
Import OpenAFS 1.4.0-rc1 from /afs/grand.central.org/software/openafs/candidate

20 years ago * Provide a way of setting sysname in afs.conf. (Closes: #324694)
Russ Allbery [Tue, 23 Aug 2005 17:30:14 +0000 (17:30 +0000)]
  * Provide a way of setting sysname in afs.conf.  (Closes: #324694)

20 years ago * Translation updates.
Russ Allbery [Tue, 23 Aug 2005 17:14:15 +0000 (17:14 +0000)]
  * Translation updates.
    - French, thanks Christian Perrier.

20 years ago * Fill in the server CellServDB with information about the local cell,
Russ Allbery [Tue, 23 Aug 2005 06:19:31 +0000 (06:19 +0000)]
  * Fill in the server CellServDB with information about the local cell,
    if available in the client CellServDB, rather than always initializing
    it to contain just the name of the cell.

Also reformat openafs-fileserver.postinst to make it a bit easier to
read.

20 years ago * Also install pam_afs.krb.so on hppa. I believe the new PAM module
Russ Allbery [Tue, 23 Aug 2005 06:17:50 +0000 (06:17 +0000)]
  * Also install pam_afs.krb.so on hppa.  I believe the new PAM module
    build process fixes the issue that was being worked around before.

20 years agoEnsure that the new cell is listed in /etc/openafs/CellServDB before
Russ Allbery [Tue, 23 Aug 2005 06:07:33 +0000 (06:07 +0000)]
Ensure that the new cell is listed in /etc/openafs/CellServDB before
continuing.

20 years agorecommended-bsd-options-20050822
Jim Rees [Mon, 22 Aug 2005 15:22:58 +0000 (15:22 +0000)]
recommended-bsd-options-20050822

Document recommended build options for Open and FreeBSD.

20 years agoFix a few nits caught by Sergio Gelato.
Russ Allbery [Sun, 21 Aug 2005 17:58:24 +0000 (17:58 +0000)]
Fix a few nits caught by Sergio Gelato.

20 years ago * Suggest openafs-doc.
Russ Allbery [Sun, 21 Aug 2005 17:31:13 +0000 (17:31 +0000)]
  * Suggest openafs-doc.

20 years agowindows-afscreds-deadlock-20050820
Jeffrey Altman [Sun, 21 Aug 2005 00:22:59 +0000 (00:22 +0000)]
windows-afscreds-deadlock-20050820

found a deadlock in the expiration check if a MessageBox dialog is
being displayed

20 years agowindows-dfs-support-disable-20050820
Asanka Herath [Sat, 20 Aug 2005 23:58:21 +0000 (23:58 +0000)]
windows-dfs-support-disable-20050820

remove the trailing 1

20 years agowindows-better-vol-missing-messages-20050819
Jeffrey Altman [Sat, 20 Aug 2005 02:27:48 +0000 (02:27 +0000)]
windows-better-vol-missing-messages-20050819

Use a different message for each vol error code instead of one for all

20 years ago * Translation updates.
Russ Allbery [Sat, 20 Aug 2005 00:50:14 +0000 (00:50 +0000)]
  * Translation updates.
    - Czech, thanks Martin Sin.
    - Vietnamese, thanks Clytie Siddall.

20 years agodirpath-canonical-should-be-local-20050819
Stefaan De Roeck [Fri, 19 Aug 2005 20:34:34 +0000 (20:34 +0000)]
dirpath-canonical-should-be-local-20050819

FIXES 20954

ConstructLocalPath only checks
the first argument (cpath) for needed translation from canonical to
local, but not the relativeTo path, which is simply prepended when
cpath doesn't begin with a '/'.

20 years agofix-busyat-enforcement-20050819
Derrick Brashear [Fri, 19 Aug 2005 20:20:44 +0000 (20:20 +0000)]
fix-busyat-enforcement-20050819

FIXES 20659

enforce busyat in the other half of the if

20 years agoDocument the need for krb4 support in krb5-kdc for aklog.
Russ Allbery [Fri, 19 Aug 2005 20:00:56 +0000 (20:00 +0000)]
Document the need for krb4 support in krb5-kdc for aklog.

20 years agoMake it clearer that the third line of the new PRDB starts with a space.
Russ Allbery [Fri, 19 Aug 2005 19:46:48 +0000 (19:46 +0000)]
Make it clearer that the third line of the new PRDB starts with a space.

20 years agormdir-dont-hold-kernel-lock-20050819
Chas Williams [Fri, 19 Aug 2005 16:32:24 +0000 (16:32 +0000)]
rmdir-dont-hold-kernel-lock-20050819

potentially fix one of the deadlocks people have been seeing

20 years ago * Don't create the unused /etc/openafs/AFSLog file. (Closes: #120097)
Russ Allbery [Fri, 19 Aug 2005 01:55:57 +0000 (01:55 +0000)]
  * Don't create the unused /etc/openafs/AFSLog file.  (Closes: #120097)

20 years ago * Detect AFS caches on non-ext2/ext3 file systems and abort AFS client
Russ Allbery [Fri, 19 Aug 2005 00:37:34 +0000 (00:37 +0000)]
  * Detect AFS caches on non-ext2/ext3 file systems and abort AFS client
    initialization.  (Closes: #249315)

20 years ago * Remove the openafs-client warning against dynroot for the first system
Russ Allbery [Thu, 18 Aug 2005 20:10:48 +0000 (20:10 +0000)]
  * Remove the openafs-client warning against dynroot for the first system
    in a cell now that afs-rootvol can cope.  Provide some basic
    documentation of the CellAlias syntax in that message until we have a
    real man page.

20 years ago * Redo how library object files are found for the PAM module build to
Russ Allbery [Thu, 18 Aug 2005 19:38:52 +0000 (19:38 +0000)]
  * Redo how library object files are found for the PAM module build to
    avoid assuming C locale character set behavior.  (Closes: #323582)

20 years agoCope with duplicate entries in /etc/openafs/CellServDB. This shouldn't
Russ Allbery [Thu, 18 Aug 2005 19:12:03 +0000 (19:12 +0000)]
Cope with duplicate entries in /etc/openafs/CellServDB.  This shouldn't
happen in practice, but if it does for some reason, it's easy to avoid
making it a problem.

20 years agoFix a syntax error in the last change I made. (It's always the simple ones
Russ Allbery [Thu, 18 Aug 2005 19:11:09 +0000 (19:11 +0000)]
Fix a syntax error in the last change I made.  (It's always the simple ones
you don't retest.)

20 years ago * Improve the documentation and scripts for setting up new servers or a
Russ Allbery [Thu, 18 Aug 2005 17:36:20 +0000 (17:36 +0000)]
  * Improve the documentation and scripts for setting up new servers or a
    new cell.  afs-rootvol can now be run from a client configured to use
    dynroot.  afs-newcell generates the server CellServDB directly to work
    around oddities with bos addhost.  Thanks to Fahemm Mitha and Sergio
    Gelato for analysis and patches.  (Closes: #322638)

20 years agodes-nostats-20050818
Tom Keiser [Thu, 18 Aug 2005 05:55:00 +0000 (05:55 +0000)]
des-nostats-20050818

FIXES 20921

just yank for now, we'll fix for 1.4.1

20 years agolinux-inactive-in-place-of-remunlink-20050818
Chas Williams [Thu, 18 Aug 2005 05:11:59 +0000 (05:11 +0000)]
linux-inactive-in-place-of-remunlink-20050818

FIXES 20912

call afs_InactiveVCache() instead of afs_remunlink()
for unlink, the "inactive" refcount is 1 now instead of 0.

20 years agoirix-gop-lookupname-20050817
Derrick Brashear [Wed, 17 Aug 2005 20:25:29 +0000 (20:25 +0000)]
irix-gop-lookupname-20050817

irix of course won't build when your function doesn't match the prototype

20 years agowindows-dfs-support-disable-20050817
Jeffrey Altman [Wed, 17 Aug 2005 19:50:18 +0000 (19:50 +0000)]
windows-dfs-support-disable-20050817

disable dfs processing until we get the Unicode CIFS support

20 years agocache-autotune-20050817
Niklas Edmundsson [Wed, 17 Aug 2005 17:16:50 +0000 (17:16 +0000)]
cache-autotune-20050817

This patch tries to implement the afsd default tuning parameters
discussed in the thread starting at
https://www.openafs.org/pipermail/openafs-devel/2005-May/012158.html

I took the liberty of adding chunksize-tuning to the memcache too,
with the motivation that people using large memcaches usually wants
better bulk performance too.

It seems to work for me using both disk cache and memcache of various
sizes.

20 years agowindows-freelance-admin-20050817
Jeffrey Altman [Wed, 17 Aug 2005 17:06:26 +0000 (17:06 +0000)]
windows-freelance-admin-20050817

When testing for IsFreelance() use the right path for symlink rm and
fs rmmount.

20 years agowindows-version-1-5-20050817
Jeffrey Altman [Wed, 17 Aug 2005 11:38:55 +0000 (11:38 +0000)]
windows-version-1-5-20050817

Development version to 1.5.xxxx

20 years agowindows-version-1-4-20050817
Jeffrey Altman [Wed, 17 Aug 2005 11:22:50 +0000 (11:22 +0000)]
windows-version-1-4-20050817

Update version to 1.4.0000   Yay!!!!!

20 years agokasadmin-prototyping-20050816
Derrick Brashear [Tue, 16 Aug 2005 19:09:49 +0000 (19:09 +0000)]
kasadmin-prototyping-20050816

FIXES 20766

make kasadmin module prototyping correct again

20 years agosgistuff-missing-files-20050816
Derrick Brashear [Tue, 16 Aug 2005 18:58:27 +0000 (18:58 +0000)]
sgistuff-missing-files-20050816

FIXES 20766

these were overzealously killed (by me)

fix

20 years agoreindent-afsd-c-20050816
Jim Rees [Tue, 16 Aug 2005 17:59:12 +0000 (17:59 +0000)]
reindent-afsd-c-20050816

reindent

20 years agowindows-byte-range-locks-20050816
Asanka Herath [Tue, 16 Aug 2005 17:17:13 +0000 (17:17 +0000)]
windows-byte-range-locks-20050816

 Byte range locks:

   The OpenAFS Windows client has to fake byte range locks given no
   server side support for such locks.  This is implemented as keyed
   byte range locks on the cache manager.

   Keyed byte range locks:

   Each cm_scache_t structure keeps track of a list of keyed locks.
   The key for a lock is essentially a token which identifies an owner
   of a set of locks (referred to as a client).  The set of keys used
   within a specific cm_scache_t structure form a namespace that has a
   scope of just that cm_scache_t structure.  The same key value can
   be used with another cm_scache_t structure and correspond to a
   completely different client.  However it is advantageous for the
   SMB or IFS layer to make sure that there is a 1-1 mapping between
   client and keys irrespective of the cm_scache_t.

   Assume a client C has key Key(C) (although, since the scope of the
   key is a cm_scache_t, the key can be Key(C,S), where S is the
   cm_scache_t.  But assume a 1-1 relation between keys and clients).
   A byte range (O,+L) denotes byte addresses (O) through (O+L-1)
   inclusive (a.k.a. [O,O+L-1]).  The function Key(x) is implemented
   through cm_generateKey() function for both SMB and IFS.

   The cache manager will set a lock on the AFS file server in order
   to assert the locks in S->fileLocks.  If only shared locks are in
   place for S, then the cache manager will obtain a LockRead lock,
   while if there are any exclusive locks, it will obtain a LockWrite
   lock.  If the exclusive locks are all released while the shared
   locks remain, then the cache manager will downgrade the lock from
   LockWrite to LockRead.

   Lock states:

   A lock exists iff it is in S->fileLocks for some cm_scache_t
   S. Existing locks are in one of the following states: ACTIVE,
   WAITLOCK, WAITUNLOCK, LOST, DELETED.

   The following sections describe each lock and the associated
   transitions.

   1. ACTIVE: A lock L is ACTIVE iff the cache manager has asserted
      the lock with the AFS file server.  This type of lock can be
      exercised by a client to read or write to the locked region (as
      the lock allows).

      1.1 ACTIVE->LOST: When the AFS file server fails to extend a
        server lock that was required to assert the lock.

      1.2 ACTIVE->DELETED: Lock is released.

   2. WAITLOCK: A lock is in a WAITLOCK state if the cache manager
      grants the lock but the lock is yet to be asserted with the AFS
      file server.  Once the file server grants the lock, the state
      will transition to an ACTIVE lock.

      2.1 WAITLOCK->ACTIVE: The server granted the lock.

      2.2 WAITLOCK->DELETED: Lock is abandoned, or timed out during
        waiting.

      2.3 WAITLOCK->LOST: One or more locks from this client were
        marked as LOST.  No further locks will be granted to this
        client until al lost locks are removed.

   3. WAITUNLOCK: A lock is in a WAITUNLOCK state if the cache manager
      receives a request for a lock that conflicts with an existing
      ACTIVE or WAITLOCK lock.  The lock will be placed in the queue
      and will be granted at such time the conflicting locks are
      removed, at which point the state will transition to either
      WAITLOCK or ACTIVE.

      3.1 WAITUNLOCK->ACTIVE: The conflicting lock was removed.  The
        current serverLock is sufficient to assert this lock, or a
        sufficient serverLock is obtained.

      3.2 WAITUNLOCK->WAITLOCK: The conflicting lock was removed,
        however the required serverLock is yet to be asserted with the
        server.

      3.3 WAITUNLOCK->DELETED: The lock is abandoned or timed out.

      3.5 WAITUNLOCK->LOST: One or more locks from this client were
        marked as LOST.  No further locks will be granted to this
        client until all lost locks are removed.

   4. LOST: A lock L is LOST if the server lock that was required to
      assert the lock could not be obtained or if it could not be
      extended, or if other locks by the same client were LOST.
      Effectively, once a lock is LOST, the contract between the cache
      manager and that specific client is no longer valid.

      The cache manager rechecks the server lock once every minute and
      extends it as appropriate.  If this is not done for 5 minutes,
      the AFS file server will release the lock.  Once released, the
      lock cannot be re-obtained without verifying that the contents
      of the file hasn't been modified since the time the lock was
      released.  Doing so may cause data corruption.

      4.1 LOST->DELETED: The lock is released.

      4.2 LOST->ACTIVE: The lock is reassertd.  This requires
        verifying that the file was not modified in between.

      4.3 LOST->WAITLOCK: All LOST ACTIVE locks from this client were
        reasserted.  The cache manager can reinstate this waiting
        lock.

      4.4 LOST->WAITUNLOCK: All LOST ACTIVE locks from this client
        were reasserted.  The cache manager can reinstate this waiting
        lock.

   5. DELETED: The lock is no longer relevant.  Eventually, it will
      get removed from the cm_scache_t. In the meantime, it will be
      treated as if it does not exist.

      5.1 DELETED->not exist: The lock is removed from the
        cm_scache_t.

   6* A lock L is ACCEPTED if it is ACTIVE or WAITLOCK.
      These locks have been accepted by the cache manager, but may or
      may not have been granted back to the client.

   7* A lock L is QUEUED if it is ACTIVE, WAITLOCK or WAITUNLOCK.

   8* A lock L is EFFECTIVE if it is ACTIVE or LOST.

   9* A lock L is WAITING if it is WAITLOCK or WAITUNLOCK.

   Lock operation:

   A client C can READ range (Offset,+Length) of cm_scache_t S iff:

   1. for all _a_ in (Offset,+Length), one of the following is true:

       1.1 There does NOT exist an ACTIVE lock L in S->fileLocks such
         that _a_ in (L->LOffset,+L->LLength) (IOW: byte _a_ of S is
         unowned)

         AND

         For each LOST lock M in S->fileLocks such that
         _a_ in (M->LOffset,+M->LLength), M->LockType is shared AND
         M->key != Key(C).

         (Note: If this is a different client from one whose shared
         lock was LOST, then the contract between this client and the
         cache manager is indistinguishable from that where no lock
         was lost.  If an exclusive lock was lost, then the range is
         considered unsafe for consumption.)

       1.3 There is an ACTIVE lock L in S->fileLocks such that: L->key
         == Key(C) && _a_ in (L->LOffset,+L->LLength) (IOW: byte _a_
         of S is owned by C under lock L)

       1.4 There is an ACTIVE lock L in S->fileLocks such that _a_ in
         (L->LOffset,L->+LLength) && L->LockType is shared (IOW: byte
         _a_ of S is shared) AND there is no LOST lock M such that _a_
         in (M->LOffset,+M->LLength) and M->key == Key(C)

   A client C can WRITE range (Offset,+Length) of cm_scache_t S iff:

   2. for all _a_ in (Offset,+Length), one of the following is true:

       2.1 Byte _a_ of S is unowned (as above) AND for each LOST lock
         L in S->fileLocks _a_ NOT in (L->LOffset,+L->LLength).

       2.2 Byte _a_ of S is owned by C under lock L (as above) AND
         L->LockType is exclusive.

   A client C can OBTAIN a lock L on cm_scache_t S iff:

   3. for all _a_ in (L->LOffset,+L->LLength), ALL of the following is
      true:

       3.1 L->LockType is exclusive IMPLIES there does NOT exist a QUEUED lock
         M in S->fileLocks such that _a_ in (M->LOffset,+M->LLength).

         (Note: If we count all QUEUED locks then we hit cases such as
         cascading waiting locks where the locks later on in the queue
         can be granted without compromising file integrity.  On the
         other hand if only ACCEPTED locks are considered, then locks
         that were received earlier may end up waiting for locks that
         were received later to be unlocked. The choice of QUEUED
         locks were made so that large locks don't consistently get
         trumped by smaller locks which were requested later.)

       3.2 L->LockType is shared IMPLIES for each QUEUED lock M in
         S->fileLocks, if _a_ in (M->LOffset,+M->LLength) then
         M->LockType is shared.

   4. For each LOST lock M in S->fileLocks, M->key != Key(C)

         (Note: If a client loses a lock, it loses all locks.
         Subsequently, it will not be allowed to obtain any more locks
         until all existing LOST locks that belong to the client are
         released.  Once all locks are released by a single client,
         there exists no further contract between the client and AFS
         about the contents of the file, hence the client can then
         proceed to obtain new locks and establish a new contract.)

   A client C can only unlock locks L in S->fileLocks which have
   L->key == Key(C).

   The representation and invariants are as follows:

   - Each cm_scache_t structure keeps:

       - A queue of byte-range locks (cm_scache_t::fileLocks) which
         are of type cm_file_lock_t.

       - A record of the highest server-side lock that has been
         obtained for this object (cm_scache_t::serverLock), which is
         one of (-1), LockRead, LockWrite.

       - A count of ACCEPTED exclusive and shared locks that are in the
         queue (cm_scache_t::sharedLocks and
         cm_scache_t::exclusiveLocks)

   - Each cm_file_lock_t structure keeps:

       - The type of lock (cm_file_lock_t::LockType)

       - The key associated with the lock (cm_file_lock_t::key)

       - The offset and length of the lock (cm_file_lock_t::LOffset
         and cm_file_lock_t::LLength)

       - The state of the lock.

       - Time of issuance or last successful extension

   Semantic invariants:

       I1. The number of ACCEPTED locks in S->fileLocks are
           (S->sharedLocks + S->exclusiveLocks)

   External invariants:

       I3. S->serverLock is the lock that we have asserted with the
           AFS file server for this cm_scache_t.

       I4. S->serverLock == LockRead iff there is at least one ACTIVE
           shared lock, but no ACTIVE exclusive locks.

       I5. S->serverLock == LockWrite iff there is at least one ACTIVE
           exclusive lock.

       I6. If a WAITUNLOCK lock L exists in S->fileLocks, then all
           locks that L is waiting on are ahead of L in S->fileLocks.

       I7. If L is a LOST lock, then for each lock M in S->fileLocks,
           M->key == L->key IMPLIES M is LOST or DELETED.

   --asanka

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

Byte range locks added to change list

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

should improve error codes, and allow lock promotions and demotions
by releasing locks.

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

More improvements to the byte range locking.  Handle errors caused
by a failure to have locking privs; report sharing violations when
opening files; lie about locks on read-only volumes; implement
shared read/write file creation in the smb layer.

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

remove assertion

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

must reference count local references to objects if the lock
is being released

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

Do not use a variable until you assign it a value

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

remove an unwanted assertion and move the resetting of scp->serverLock
to -1 into cm_LockMarkSCacheLost() so that others do not forget to set
it.  cm_LockMarkSCacheLost() is always called when the scp->mx is held
so it is ok to do so.

20 years agoopenbsd-pthread-20050815
Jim Rees [Mon, 15 Aug 2005 23:30:47 +0000 (23:30 +0000)]
openbsd-pthread-20050815

Build pthread servers for OpenBSD.
There is some evidence they might even work.

20 years agoautomate-freebsd-systype-20050815
Jim Rees [Mon, 15 Aug 2005 21:36:53 +0000 (21:36 +0000)]
automate-freebsd-systype-20050815

Determine freebsd systype automatically too.
Thanks to "Todd T. Fries" <todd@fries.net>

20 years agoafssyscalls-declarations-20050815
Jeffrey Altman [Mon, 15 Aug 2005 18:35:05 +0000 (18:35 +0000)]
afssyscalls-declarations-20050815

declare lsetpag() and lpioctl() since they are exported

20 years agowindows-smb-error-codes-20050815
Jeffrey Altman [Mon, 15 Aug 2005 18:27:52 +0000 (18:27 +0000)]
windows-smb-error-codes-20050815

Do not return error codes from the SMB/CIFS server that can be interpretted
by the SMB/CIFS client as meaning that the AFS Client Service is not
available.

20 years agovos-format-cleanup-20050815
Klas Lindfors [Mon, 15 Aug 2005 16:54:50 +0000 (16:54 +0000)]
vos-format-cleanup-20050815

FIXES 20783

make sure partition name actually gets printed

20 years agoaix-afsdb-20050815
Niklas Edmundsson [Mon, 15 Aug 2005 16:51:29 +0000 (16:51 +0000)]
aix-afsdb-20050815

FIXES 20801

make afsdb work on aix.
use storage as thread-local when it is

20 years agoput-inode-speedup-20050815
Chas Williams [Mon, 15 Aug 2005 16:47:38 +0000 (16:47 +0000)]
put-inode-speedup-20050815

FIXES 20820

don't bother with credp

20 years agolarge-cache-fix-20050815
Chas Williams [Mon, 15 Aug 2005 16:39:51 +0000 (16:39 +0000)]
large-cache-fix-20050815

FIXES 20821

make large caches actually work