openafs.git
18 years agowindows-cell-expiration-20050831
Jeffrey Altman [Thu, 1 Sep 2005 00:52:03 +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.

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

FIXES 21263

type is an int, not a string

18 years agowindows-freelance-fs-symlink-20050831
Jeffrey Altman [Wed, 31 Aug 2005 11:59:06 +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.

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

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

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

KRB5CFLAGS and KRB5LIBS for OpenBSD

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

updates

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

FIXES 21031

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

18 years agowindows-default-trace-log-off-20050827
Jeffrey Altman [Sun, 28 Aug 2005 04:43:55 +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)

18 years agowindows-add-tid-to-mutex-20050827
Jeffrey Altman [Sun, 28 Aug 2005 04:32:44 +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.

18 years agowindows-scache-deadlock-fix-20050827
Jeffrey Altman [Sun, 28 Aug 2005 04:29:31 +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.

18 years agowindows-remove-log-messages-20050826
Jeffrey Altman [Fri, 26 Aug 2005 14:46:11 +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.

18 years agowindows-trace-log-to-dbgview-20050820
Jeffrey Altman [Fri, 26 Aug 2005 14:39:31 +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.

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

Document recommended build options for Open and FreeBSD.

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

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

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

remove the trailing 1

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

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

18 years agodirpath-canonical-should-be-local-20050819
Stefaan De Roeck [Fri, 19 Aug 2005 20:34: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 '/'.

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

FIXES 20659

enforce busyat in the other half of the if

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

potentially fix one of the deadlocks people have been seeing

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

FIXES 20921

just yank for now, we'll fix for 1.4.1

18 years agolinux-inactive-in-place-of-remunlink-20050818
Chas Williams [Thu, 18 Aug 2005 05:11:59 +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.

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

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

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

disable dfs processing until we get the Unicode CIFS support

18 years agocache-autotune-20050817
Niklas Edmundsson [Wed, 17 Aug 2005 17:16:50 +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.

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

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

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

Development version to 1.5.xxxx

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

Update version to 1.4.0000   Yay!!!!!

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

FIXES 20766

make kasadmin module prototyping correct again

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

FIXES 20766

these were overzealously killed (by me)

fix

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

reindent

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