openafs.git
18 years agowindows-byte-range-locks-20050816
Asanka Herath [Tue, 16 Aug 2005 17:17:13 +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.

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

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

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

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

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

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

18 years agowindows-smb-error-codes-20050815
Jeffrey Altman [Mon, 15 Aug 2005 18:27:52 +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.

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

FIXES 20783

make sure partition name actually gets printed

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

FIXES 20801

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

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

FIXES 20820

don't bother with credp

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

FIXES 20821

make large caches actually work

18 years agoaix-make-install-20050815
Tom Keiser [Mon, 15 Aug 2005 16:04:12 +0000]
aix-make-install-20050815

FIXES 20827

make install was broken on aix. fix it.

18 years agowindows-afscreds-20050814
Jeffrey Altman [Sun, 14 Aug 2005 12:25:06 +0000]
windows-afscreds-20050814

When tokens expire, do not display an obtain tokens dialog if there
is no network connectivity to the kdc for the realm associated with
the cell.

In the en_US build, stop displaying the expiration time of tokens
after the tokens expire.

18 years agoaudit-fetchacl-20050813
Jeffrey Altman [Sun, 14 Aug 2005 03:10:07 +0000]
audit-fetchacl-20050813

Include the ACL value in the FetchACL logging.  This combined with
StoreACL can be used to compute ACL changes.

18 years agoauto-obsd-version-20050813
Todd Fries [Sat, 13 Aug 2005 21:49:00 +0000]
auto-obsd-version-20050813

Determine openbsd version automatically.

18 years agoopenbsd38-20050812
Jim Rees [Fri, 12 Aug 2005 22:26:09 +0000]
openbsd38-20050812

With thanks to "Todd T. Fries" <todd@fries.net>
OpenBSD 3.8.
Introduce HAVE_STRCASESTR.

18 years agolinux-pic-everywhere-20050811
Russ Allbery [Thu, 11 Aug 2005 18:55:50 +0000]
linux-pic-everywhere-20050811

FIXES 20781

Build shared libraries with -fPIC on all Linux platforms, not just the ones
that absolutely require it.

18 years agorefrigerator-20050809
Chas Williams [Wed, 10 Aug 2005 20:21:27 +0000]
refrigerator-20050809

FIXES 20728

refrigerator takes void starting in 2.6.13

18 years agovos-ctime-fix-20050809
David Thompson [Tue, 9 Aug 2005 19:39:26 +0000]
vos-ctime-fix-20050809

FIXES 20748

fix larger than 4 byte ctime case

18 years agolinux26-umount-force-doesnt-work-20050809
Chas Williams [Tue, 9 Aug 2005 14:41:13 +0000]
linux26-umount-force-doesnt-work-20050809

this was never finished, just revoke it for now

18 years agologthreadnum-libafsauthent-20050808
Derrick Brashear [Mon, 8 Aug 2005 16:37:28 +0000]
logthreadnum-libafsauthent-20050808

FIXES 20412

export LogThreadNum so hings can link our libraries again

18 years agorevert-linux-write-dirty-pages-once-20050802
Derrick Brashear [Mon, 8 Aug 2005 16:04:10 +0000]
revert-linux-write-dirty-pages-once-20050802

this needs to be revisited

18 years agolinux-panic-20050727
Chas Williams [Mon, 8 Aug 2005 15:58:32 +0000]
linux-panic-20050727

FIXES 20392

just call panic() on linux

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

call BUG() instead

18 years agowindows-notes-20050806
Jeffrey Altman [Sat, 6 Aug 2005 01:38:53 +0000]
windows-notes-20050806

updates for 1.3.8700

18 years agowindows-version-20050806
Jeffrey Altman [Sat, 6 Aug 2005 01:37:13 +0000]
windows-version-20050806

1.3.8700

18 years agowindows-afscache-validate-20050806
Jeffrey Altman [Sat, 6 Aug 2005 01:34:50 +0000]
windows-afscache-validate-20050806

Ensure that queues that have forward and reverse pointers are
consistent that either both are NULL or neither are.

18 years agoclient-omit-zero-length-reads-20050804
Rainer Toebbicke [Thu, 4 Aug 2005 21:44:57 +0000]
client-omit-zero-length-reads-20050804

The attached patch restores the behaviour of the 1.2.x client: writes
appending to a file do not trigger a 0-length read which at best updates the
current status. If another cache manager wrote to the same file in the
meantime, the file status is updated only after the StoreData RPC (and for
the changes the last one wins).

18 years agocheckservers-set-back-deadtime-correctly-20050804
Horst Birthelmer [Thu, 4 Aug 2005 21:03:53 +0000]
checkservers-set-back-deadtime-correctly-20050804

the multirx version of this does this wrong. fix it.

18 years agorevert-cache-size-limit-upping-20050728
Derrick Brashear [Thu, 4 Aug 2005 20:53:30 +0000]
revert-cache-size-limit-upping-20050728

let's re-examine this

18 years agoclient-omit-zero-length-reads-20050804
Rainer Toebbicke [Thu, 4 Aug 2005 20:31:33 +0000]
client-omit-zero-length-reads-20050804

The attached patch restores the behaviour of the 1.2.x client: writes
appending to a file do not trigger a 0-length read which at best updates the
current status. If another cache manager wrote to the same file in the
meantime, the file status is updated only after the StoreData RPC (and for
the changes the last one wins).

18 years agowindows-afsifs-20050804
Eric Williams [Thu, 4 Aug 2005 17:32:32 +0000]
windows-afsifs-20050804

addresses:
byte-range locks work (mildly tested)
fixes a reference counting error
can shutdown/restart client
code formatting
major speed improvements
fixes delete operation problem
internal locking in more places

i have reviewed this patch myself carefully.  specifically, please review
the changes to cm_buf.c and cm_callback.c.  in cm_buf, i added the looping
code because i ran into the following assert once.  i am not sure why, and
my attempt to diagnose the problem was not successful.

apart from the byte-range locking code, the code has not change for quite
a bit.

18 years agowindows-pioctl-update-20050804
Jeffrey Altman [Thu, 4 Aug 2005 17:03:50 +0000]
windows-pioctl-update-20050804

change "fs wscell" to report the registry configured cell name when
using freelance mode.

change "fs mkmount|rmmount" to require membership in AFS Client Admins
group when freelance mode is being used

change "symlink make|remove" to require membership in AFS Client Admins
group when freelance mode is being used

Move some smb init debug messages to afsd_init.log

18 years agoviced-dont-crash-on-link-enospc-20050803
Rainer Toebbicke [Wed, 3 Aug 2005 05:45:53 +0000]
viced-dont-crash-on-link-enospc-20050803

when symlink gets ENOSPC don't assert.

18 years agolinux-vnode-aliases-20050802
Chaskiel M Grundman [Tue, 2 Aug 2005 19:59:46 +0000]
linux-vnode-aliases-20050802

FIXES 18613

you can end up hanging when you end up with multiple aliases for a single direct
ory (dentry) as a result of @sys or multiple mountpoints.

don't end up with multiple aliases, and avoid the situation

18 years agolinux-fix-refrigerator-calls-20050802
Derrick Brashear [Tue, 2 Aug 2005 15:03:42 +0000]
linux-fix-refrigerator-calls-20050802

it's CONFIG_PF, not CONFIG_PM

18 years agolinux-4gb-32bit-file-fix-20050802
Chas Williams [Tue, 2 Aug 2005 14:46:28 +0000]
linux-4gb-32bit-file-fix-20050802

FIXCES 20560

fix wrapping error on page offset

18 years agolinux-group-putback-20050802
Chas Williams [Tue, 2 Aug 2005 06:15:54 +0000]
linux-group-putback-20050802

FIXES 20562

put back reference before discarding group pointer

18 years agolinux-write-dirty-pages-once-20050802
Chas Williams [Tue, 2 Aug 2005 06:11:38 +0000]
linux-write-dirty-pages-once-20050802

FIXES 20561

also done in afs_linux_write

18 years agolinux-4gb-32bit-file-fix-20050802
Chas Williams [Tue, 2 Aug 2005 06:08:45 +0000]
linux-4gb-32bit-file-fix-20050802

FIXCES 20560

fix wrapping error on page offset

18 years agotq-uq-scope-20050731
Jim Rees [Sun, 31 Jul 2005 18:22:50 +0000]
tq-uq-scope-20050731

Move local vars tq and uq back into proper scope

18 years agolinux-osi-vfs-mkdir-20050729
Chas Williams [Fri, 29 Jul 2005 15:49:31 +0000]
linux-osi-vfs-mkdir-20050729

FIXES 20479

mkdir so this works when building outside our tree

18 years agoaudit-use-va-arg-20050729
Stefaan De Roeck [Fri, 29 Jul 2005 15:24:05 +0000]
audit-use-va-arg-20050729

FIXES 20311

use va_arg instead of int

18 years agowindows-doc-updates-20050728
Jeffrey Altman [Thu, 28 Jul 2005 23:15:50 +0000]
windows-doc-updates-20050728

updates for 1.3.8600

18 years agowindows-version-update-20050728
Jeffrey Altman [Thu, 28 Jul 2005 23:09:20 +0000]
windows-version-update-20050728

version number to 1.3.8600

18 years agovc-hashing-be-less-expensive-20050728
Chas Williams [Thu, 28 Jul 2005 15:38:36 +0000]
vc-hashing-be-less-expensive-20050728

use an afs_q so this is less expensive to deal with

18 years agocache-size-limit-upping-20050728
Derrick Brashear [Thu, 28 Jul 2005 15:17:47 +0000]
cache-size-limit-upping-20050728

based on work from wes chow

allow larger caches without variable overflows.

does not port to 1.4 as-is.

18 years agoaudit-use-va-arg-20050726
Stefaan De Roeck [Tue, 26 Jul 2005 19:14:14 +0000]
audit-use-va-arg-20050726

FIXES 20311

use va_arg instead of int

18 years agolinux-mmap-cleanup-20050726
Chas Williams [Tue, 26 Jul 2005 18:39:00 +0000]
linux-mmap-cleanup-20050726

FIXES 20391

avoid the vma close business, we don't need to do this to track maps

18 years agolinux-reduce-stack-use-20050726
Chas Williams [Tue, 26 Jul 2005 18:34:05 +0000]
linux-reduce-stack-use-20050726

FIXES 20337

don't do pointless work in osi_NetSend, and save some stack

18 years agoopenafs-sleep-20050726
Jim Rees [Tue, 26 Jul 2005 16:25:43 +0000]
openafs-sleep-20050726

tsleep on "afsslp" in afs_osi_Sleep

18 years agolinux-largefile-fix-20050726
Chas Williams [Tue, 26 Jul 2005 14:34:31 +0000]
linux-largefile-fix-20050726

FIXES 20396

use the generic read/write functions, but set the superblock up correctly.

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

make old 2.4 happy

18 years agoamd64-no-red-zone-20050725
Derrick Brashear [Thu, 28 Jul 2005 22:50:01 +0000]
amd64-no-red-zone-20050725

why are we not -mno-red-zone here?

18 years agowindows-misc-20050722
Jeffrey Altman [Sat, 23 Jul 2005 02:16:06 +0000]
windows-misc-20050722

Add debug logging to SMB and CM Locking code

Optimize cm_Analyze by only performing a cm_CheckServers on the current
cell instead of all cells

Add code to detect loops to the cm_scache_t validation routines.

18 years agounlink-fix-20050721
Chas Williams [Thu, 21 Jul 2005 17:30:50 +0000]
unlink-fix-20050721

fill in parent after processFS

18 years agoviced-multiprobe-fix-20050721
Jeffrey Altman [Thu, 21 Jul 2005 15:54:18 +0000]
viced-multiprobe-fix-20050721

see if a uuid actually matches what we though was there

18 years agofssync-fix-log-20050721
Hans-Werner Paulsen [Thu, 21 Jul 2005 06:06:27 +0000]
fssync-fix-log-20050721

don't call Log like it's ViceLog

18 years agoafsclient-cellopen-avoid-global-var-20050721
Peter Somogyi [Thu, 21 Jul 2005 05:56:02 +0000]
afsclient-cellopen-avoid-global-var-20050721

FIXES 20215

avoid use of global variable in CellOpen to avoid thread problems

18 years agodir-buffers-use-nullidx-as-none-20050721
Hartmut Reuter [Thu, 21 Jul 2005 05:52:33 +0000]
dir-buffers-use-nullidx-as-none-20050721

FIXES 20214

since 0 is a valid number use -1 (NULLIDX)

18 years agochecksysname-stack-usage-20050721
Chas Williams [Thu, 21 Jul 2005 05:46:51 +0000]
checksysname-stack-usage-20050721

FIXES 20227

fix misuse of MAXSYSNAME for MAXNUMSYSNAMES

18 years agolinux-refrigerator-check-20050721
Sabin Iacob [Thu, 21 Jul 2005 05:41:09 +0000]
linux-refrigerator-check-20050721

FIXES 20209

don't call refrigerator unless we have a kernel which supports it

18 years agovnrehash-avoid-cachecheck-change-20050618
Derrick Brashear [Tue, 19 Jul 2005 15:44:53 +0000]
vnrehash-avoid-cachecheck-change-20050618

unlocking and locking lets us race and makes cacheCheck potentially go bad

18 years agowindows-explorer-remove-mountpt-fix-20050719
Jeffrey Altman [Tue, 19 Jul 2005 06:06:12 +0000]
windows-explorer-remove-mountpt-fix-20050719

FIXES 20137

the gui version of fs rmmount was reading random memory.

18 years agoaklog-segfault-fix-20050718
Karl E. Kelley [Tue, 19 Jul 2005 03:51:26 +0000]
aklog-segfault-fix-20050718

FIXES 20198

I have built openafs 1.3.85 on an emt64 platform on RedHat Enterprise 4,
and found that the aklog supplied with 1.3.85 (not the one in the afs-krb5
conversion kit) consistently segfaults when aklog is called with the
"-path ...." parm. It works properly when called with no parms.

I traced this down to the call to the readlink() call in aklog_main.c,
when the params structure references were removed the nesting was
changed on an if statement that changed the logic and allowed the
do while loop to loop past the end and de-reference a NULL pointer.

18 years agopt-util-no-cmd-seek-20050715
Derrick Brashear [Fri, 15 Jul 2005 20:16:27 +0000]
pt-util-no-cmd-seek-20050715

i guess someone was dumb at some point and failed to completely remove bogus options

18 years agowindows-cmdebug-20050715
Jeffrey Altman [Fri, 15 Jul 2005 13:17:53 +0000]
windows-cmdebug-20050715

add TellMeAboutYourself functionality and report on capabilities if they
are known.  Used instead of WhoAreYou when supported by the cache manager.

18 years agowindows-aklog-tweaks-20050715
Jeffrey Altman [Fri, 15 Jul 2005 13:09:47 +0000]
windows-aklog-tweaks-20050715

* type correction

* formatting

* other cleanup

18 years agowindows-config-cache-path-20050715
Jeffrey Altman [Fri, 15 Jul 2005 12:56:42 +0000]
windows-config-cache-path-20050715

FIXES 20007

Update AFS Control Panel to display the default cache location based upon
the SYSTEM %TEMP% environment variable.

18 years agoaudit-pts-supergroups-20050714
Jeffrey Altman [Fri, 15 Jul 2005 04:23:18 +0000]
audit-pts-supergroups-20050714

PTS SuperGroups failed to compile with auditing due to a missing #define

18 years agomisc-aklog-fixes-20050714
Christopher Allen Wing [Fri, 15 Jul 2005 02:19:27 +0000]
misc-aklog-fixes-20050714

FIXES 20092

Fix various minor problems with aklog, including the return type from main,
removal of #ifndef __STDC__ code, missing includes, removal of unused
variables, correct number of arguments to pr_Initialize, correct argument
type for pr_SNameToId, and use of getcwd instead of getwd.

18 years agolinux-dynamic-inodes-20050713
Chas Williams [Wed, 13 Jul 2005 16:51:50 +0000]
linux-dynamic-inodes-20050713

remove errant log message

18 years agowindows-aclent-deadlock-20050713
Jeffrey Altman [Wed, 13 Jul 2005 15:22:06 +0000]
windows-aclent-deadlock-20050713

Discovered a deadlock due to a violation of lock order.  We may not
attempt to obtain a lock on a cm_scache_t mutex while holding the
cm_aclLock.

18 years agofreevclist-static-20050711
Zach Schimke [Tue, 12 Jul 2005 18:48:49 +0000]
freevclist-static-20050711

these are static now, make it so

18 years agowindows-version-20050712
Jeffrey Altman [Tue, 12 Jul 2005 05:26:23 +0000]
windows-version-20050712

1.3.8500

18 years agoauditlog-include-timestamp-20050710
Jeffrey Altman [Mon, 11 Jul 2005 23:12:49 +0000]
auditlog-include-timestamp-20050710

add a timestamp to auditlog

18 years agolinux-dynamic-inodes-20050710
Chas Williams [Mon, 11 Jul 2005 19:45:47 +0000]
linux-dynamic-inodes-20050710

i slipped a rollback on the linux 2.4 dentry stuff for osi_UFS* in here
at the same time. this patch lets us use kernel inodes instead of our own pool.

18 years agolinux-and-64bit-cleanup-20050710
Karl E. Kelley [Mon, 11 Jul 2005 04:22:16 +0000]
linux-and-64bit-cleanup-20050710

FIXES 19166

fix warnings found on x86_64 linux

18 years agoaudit-add-and-fix-messages-20050708
Jeffrey Altman [Sat, 9 Jul 2005 15:20:38 +0000]
audit-add-and-fix-messages-20050708

update and add some more audit logging

====================
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 logging of authenticated user name

18 years agokdump-vcache-update-20050708
Derrick Brashear [Fri, 8 Jul 2005 22:22:44 +0000]
kdump-vcache-update-20050708

FIXES 19292

wasn't updated when struct vcache was. oops.

18 years agopr_Initialize-fix-20050707
Jeffrey Altman [Fri, 8 Jul 2005 20:58:25 +0000]
pr_Initialize-fix-20050707

The previous patch to pr_Initialize() opened an opportunity for
afsconf_Check() to be called with a NULL pointer if tdir == 0.
Prevent this occurrance.

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

fixed one null pointer reference but not the other.

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

commit the rest of jeff's fix

18 years agofreebsd60-20050708
Jim Rees [Fri, 8 Jul 2005 17:53:43 +0000]
freebsd60-20050708

Fixes for FreeBSD 6.0 snap5.
Builds and runs but has locking issues.

18 years agokrb5-configure-fixes-20050707
Russ Allbery [Fri, 8 Jul 2005 02:18:55 +0000]
krb5-configure-fixes-20050707

FIXES 19862

Use krb5_creds rather than struct krb5_creds, add missing test in if
statements for krb5_creds structure probes, and tweak the configure output.

18 years agocoda-xfs-header-defines-fun-20050706
Pascal Terjan [Thu, 7 Jul 2005 03:32:39 +0000]
coda-xfs-header-defines-fun-20050706

make this better, we should never have been doing it as we were before

18 years agoaklog-assume-old-autoconf-20050706
Derrick Brashear [Thu, 7 Jul 2005 03:00:45 +0000]
aklog-assume-old-autoconf-20050706

old autoconf is my fiend

18 years agovos-ctime-help-20050705
Derrick Brashear [Thu, 7 Jul 2005 02:31:05 +0000]
vos-ctime-help-20050705

FIXES 6031

kept looking at this backwards, fix is obvious

18 years agowindows-vs2005b2-20050706
Jeffrey Altman [Thu, 7 Jul 2005 01:23:15 +0000]
windows-vs2005b2-20050706

Visual Studio 2005 Beta 2 has been released.   As part of this
release Microsoft has tightened the rules for their C++ compliance.

* no longer can a variable declared in a for() statement be used
  outside of the associated command block

* no longer can a function or variable be declared implicitly as
  'int'

* several types such as size_t have become 64-bit values on all platforms

* due to type changes the C++ function names in libraries have changed.
  This requires the use of different .DEF file export lists

18 years agowindows-ntbuild-20050706
Jeffrey Altman [Wed, 6 Jul 2005 15:11:28 +0000]
windows-ntbuild-20050706

Update the default sysname to i386_w2k in the ntbuild.bat file

18 years agowindows-config-param-20050706
Jeffrey Altman [Wed, 6 Jul 2005 06:10:46 +0000]
windows-config-param-20050706

New param files for new sysnames

18 years agoutil-admin-64bit-20050705
Peter Somogyi [Wed, 6 Jul 2005 00:43:38 +0000]
util-admin-64bit-20050705

FIXES 19631

serverAddress is an int; don't copy a pointer size

18 years agoauditlogs-for-everyone-20050702
Derrick Brashear [Tue, 5 Jul 2005 16:33:24 +0000]
auditlogs-for-everyone-20050702

all servers now take -auditlog (path), send ibm-style auditlogs there, rotate the logs like the normal server logs, and will log thread ids when it's multiprocessor. /usr/afs/local/Audit can also be used like on aix on other platforms now.

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

all servers now take -auditlog (path), send ibm-style auditlogs there, rotate th
e logs like the normal server logs, and will log thread ids when it's multiproce
ssor. /usr/afs/local/Audit can also be used like on aix on other platforms now.

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

all servers now take -auditlog (path), send ibm-style auditlogs there, rotate th
e logs like the normal server logs, and will log thread ids when it's multiproce
ssor. /usr/afs/local/Audit can also be used like on aix on other platforms now.

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

all servers now take -auditlog (path), send ibm-style auditlogs there, rotate th
e logs like the normal server logs, and will log thread ids when it's multiproce
ssor. /usr/afs/local/Audit can also be used like on aix on other platforms now.

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

Windows build dependency changes to support the audit logs

18 years agoaklog-update-20050705
Ken Hornstein [Tue, 5 Jul 2005 16:08:34 +0000]
aklog-update-20050705

fix typo in #error statement

18 years agoaklog-principal-rewrite-20050705
Troy Benjegerdes [Tue, 5 Jul 2005 16:06:08 +0000]
aklog-principal-rewrite-20050705

fix second_comp call to be correct for macro

18 years agowindows-afsdb-fix-20050701
Jeffrey Altman [Sat, 2 Jul 2005 03:44:42 +0000]
windows-afsdb-fix-20050701

Fix AFSDB queries using DNSAPI to always terminate the query string with
a period.

18 years agoaklog-forgot-quote-20050701
Ken Hornstein [Fri, 1 Jul 2005 05:40:52 +0000]
aklog-forgot-quote-20050701

Forgot closing quote in #error directive.

18 years agoaklog-heimdal-integration-20050630
Ken Hornstein [Thu, 30 Jun 2005 22:06:15 +0000]
aklog-heimdal-integration-20050630

The necessary autoconf/C glue to make aklog work with Heimdal.

18 years agowindows-logon-20050630
Jeffrey Altman [Thu, 30 Jun 2005 19:02:03 +0000]
windows-logon-20050630

Add a method to disable the deletion of tokens at logoff

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

add a registry entry to prevent token destruction at logoff

18 years agopts-logging-20050619
Jeffrey Altman [Thu, 30 Jun 2005 06:06:54 +0000]
pts-logging-20050619

enhance pts logging

18 years agowindows-notes-20050630
Jeffrey Altman [Thu, 30 Jun 2005 06:02:50 +0000]
windows-notes-20050630

latest updates including new afs-install-notes section on debugging

18 years agothreadid-logging-20050629
Derrick Brashear [Thu, 30 Jun 2005 04:10:31 +0000]
threadid-logging-20050629

log thread ids for any debug level

18 years agowindows-nsis-20050628
Robert S Murawski IV [Wed, 29 Jun 2005 03:43:28 +0000]
windows-nsis-20050628

Support for NSIS 2.07 including named installation configurations
and an Icon for the uninstall entry listed in the Add/Remove Programs
control panel.

18 years agowindows-notes-20050628
Jeffrey Altman [Wed, 29 Jun 2005 03:42:14 +0000]
windows-notes-20050628

pre-1.4

18 years agowindows-readme-20050628
Jeffrey Altman [Wed, 29 Jun 2005 03:41:55 +0000]
windows-readme-20050628

Updates to describe NSIS 2.07

18 years agofix-kerberos-autoconf-20060623
Ken Hornstein [Fri, 24 Jun 2005 04:57:39 +0000]
fix-kerberos-autoconf-20060623

Commit remaining autoconf fixes for aklog.