openafs.git
15 years agoDEVEL15-namei-by-default-on-sol10-20080816 openafs-devel-1_5_52
Derrick Brashear [Sat, 16 Aug 2008 22:37:39 +0000]
DEVEL15-namei-by-default-on-sol10-20080816

LICENSE IPL10

default to namei, not inode, on solaris 10 except by request

(cherry picked from commit 03982bd54839f81cdc691ad83e946fac8f8789b7)

15 years agoDEVEL15-volser-initialize-volume-updatedate-20080816
Dan Hyde [Sat, 16 Aug 2008 21:07:45 +0000]
DEVEL15-volser-initialize-volume-updatedate-20080816

LICENSE IPL10
FIXES 110943

right now this isn't set until a vnode update happens. technically creating
the root directory is an update, so let's set it to now.

(cherry picked from commit b080c5d82ba5c7641afeb6836961cacf283e4902)

15 years agoDEVEL15-netbsd-sigwait-broken-til-nbsd5-20080816
Tracy Di Marco White [Sat, 16 Aug 2008 20:46:55 +0000]
DEVEL15-netbsd-sigwait-broken-til-nbsd5-20080816

LICENSE IPL10
FIXES 111404

work around netbsd sigwait brokenness

(cherry picked from commit 8190e75b38a7cd136ce70050fdd71b1d62888055)

15 years agoDEVEL15-linux-2-6-27-20080816
Marc Dionne [Sat, 16 Aug 2008 20:42:56 +0000]
DEVEL15-linux-2-6-27-20080816

LICENSE IPL10
FIXES 111634

add support for 2.6.27, which removes asm/semaphore.h

(cherry picked from commit d7a5619e5bd8241dd13611a4be37f04f3aa4ed27)

15 years agoDEVEL15-windows-build-20080815
Jeffrey Altman [Sat, 16 Aug 2008 18:59:03 +0000]
DEVEL15-windows-build-20080815

LICENSE MIT

remove duplicate rules for man-pages

(cherry picked from commit 4274e854c58655ae2d1142ec3e08d62aebb07be0)

15 years agoDEVEL15-no-more-win95-20080816
Jeffrey Altman [Sat, 16 Aug 2008 18:49:42 +0000]
DEVEL15-no-more-win95-20080816

LICENSE MIT

remove win95 pthread dll from the build

15 years agoDEVEL15-windows-version-20080816
Jeffrey Altman [Sat, 16 Aug 2008 18:15:51 +0000]
DEVEL15-windows-version-20080816

LICENSE MIT

1.5.5200.0 == 1.5.52

15 years agoDEVEL15-windows-rx-extra-packets-20080816
Jeffrey Altman [Sat, 16 Aug 2008 18:11:01 +0000]
DEVEL15-windows-rx-extra-packets-20080816

LICENSE MIT

Make the default number of pre-allocated rx packets equal to the number
of threads times the rx window size.

(cherry picked from commit dbd98583d35d6aea57cb4d9c46790479dc1a137e)

15 years agoDEVEL15-windows-pioctl-getdrivetype-20080816
Jeffrey Altman [Sat, 16 Aug 2008 17:50:06 +0000]
DEVEL15-windows-pioctl-getdrivetype-20080816

LICENSE MIT

Use GetDriveType() to check if the current path is a local disk.
If it is, fail the pioctl attempt immediately.  This should avoid
the reported 30 second delay in the AFS Shell Extension.

(cherry picked from commit ffbee95174ad1fffecff2889e80e168cea60a531)

15 years agoDEVEL15-windows-freelance-deadlock-20080815
Jeffrey Altman [Fri, 15 Aug 2008 21:19:06 +0000]
DEVEL15-windows-freelance-deadlock-20080815

LICENSE MIT

avoid a deadlock in cm_reInitLockMountPoints() and make the function
useful again by actually using the index value in the construction
of the FIDs

(cherry picked from commit 20d38bc268b13258e2358591756824d712cdb403)

15 years agoDEVEL15-windows-shlibafsauthent-20080814
Jeffrey Altman [Fri, 15 Aug 2008 00:39:12 +0000]
DEVEL15-windows-shlibafsauthent-20080814

LICENSE MIT

export pioctl_utf8

(cherry picked from commit aa011cc0d8bbff96d5772d0069520b41826c3857)

15 years agoDEVEL15-windows-server-dereference-null-two-20080814
Jeffrey Altman [Thu, 14 Aug 2008 21:24:03 +0000]
DEVEL15-windows-server-dereference-null-two-20080814

LICENSE MIT

protect against a potential null pointer dereference of a cm_server_t
object

(cherry picked from commit 357223aefd86c007987333b2a8859faa33f21424)

15 years agoDEVEL15-windows-server-dereference-null-20080814
Jeffrey Altman [Thu, 14 Aug 2008 21:21:27 +0000]
DEVEL15-windows-server-dereference-null-20080814

LICENSE MIT

protect against a null pointer dereference of a cm_server_t object

(cherry picked from commit 90fe95e994efe62175959aab95c276898f1ff54c)

15 years agoDEVEL15-windows-memdump-20080814
Jeffrey Altman [Thu, 14 Aug 2008 18:25:04 +0000]
DEVEL15-windows-memdump-20080814

LICENSE MIT

add locks, waiting lock requests, smb user, smb tid, and cell expiration
to the memory dump output (fs memdump)

(cherry picked from commit f430aee67c4f3d1f3c644f97c30db081d2a9880f)

15 years agoDEVEL15-windows-release-notes-20080813
Jeffrey Altman [Thu, 14 Aug 2008 04:18:07 +0000]
DEVEL15-windows-release-notes-20080813

LICENSE MIT

1.5.52

15 years agoDEVEL15-windows-notes-20080813
Jeffrey Altman [Thu, 14 Aug 2008 03:55:30 +0000]
DEVEL15-windows-notes-20080813

LICENSE MIT

1.5.52

15 years agoDEVEL15-windows-free-server-deadlock-20080813
Jeffrey Altman [Thu, 14 Aug 2008 03:37:59 +0000]
DEVEL15-windows-free-server-deadlock-20080813

LICENSE MIT

avoid a deadloc when freeing servers.  cm_serverLock must be released
around cm_GCConnections()

(cherry picked from commit 06b5006517c77767a246df2b6d66a344a44cbea1)

15 years agoDEVEL15-windows-search-cell-file-20080813
Jeffrey Altman [Thu, 14 Aug 2008 03:34:32 +0000]
DEVEL15-windows-search-cell-file-20080813

LICENSE MIT

if a cell has been found with addresses and the next cell name
is reached before the EOF, return success.

If the cell has been found and there are no addresses, return -6

(cherry picked from commit 4e7e66d4dc14513e1beed465fc5180429571921b)

15 years agoDEVEL15-rx-buffer-allocation-corrected-20080813
Jeffrey Altman [Thu, 14 Aug 2008 03:29:02 +0000]
DEVEL15-rx-buffer-allocation-corrected-20080813

LICENSE MIT

a corrected version of delta rx-buffer-allocation-20080812

(cherry picked from commit 919fb5e14bdcde66218e64cfdd7fecccab67d8f5)

15 years agoDEVEL15-windows-build-man-pages-20080813
Jeffrey Altman [Thu, 14 Aug 2008 03:21:42 +0000]
DEVEL15-windows-build-man-pages-20080813

LICENSE MIT

move building of man pages to installer phase

(cherry picked from commit 844d7e570772ab2bdbfa2d59ac0f48afff37d8b7)

15 years agoDEVEL15-nfstrans-extra-protection-20080813
Derrick Brashear [Thu, 14 Aug 2008 00:49:26 +0000]
DEVEL15-nfstrans-extra-protection-20080813

LICENSE IPL10

ensure, at least, that there is a filehandle for everything we check

(cherry picked from commit 04a25e0a4057b63cf7c700b17b1a6ab28e469547)

15 years agoDEVEL15-salvager-dont-corrupt-dir-lengths-20080812
Rainer Toebbicke [Thu, 14 Aug 2008 00:44:29 +0000]
DEVEL15-salvager-dont-corrupt-dir-lengths-20080812

LICENSE IPL10
FIXES 111585

make the int64 macros work when the "64 bit" number to fill isn't.
use the correct variable type for length in salvager

(cherry picked from commit e5bf9b91eaf8cb930c6cf70419983901907db84d)

15 years agoDEVEL15-rx-buffer-allocation-pulled-20080813
Jeffrey Altman [Wed, 13 Aug 2008 15:16:31 +0000]
DEVEL15-rx-buffer-allocation-pulled-20080813

LICENSE MIT

remove delta rx-buffer-allocation-20080812 as it leads to data corruption

(cherry picked from commit 156b13f74d4cc4e42644c9c9d7c63cb42f1d4ae3)

15 years agoDEVEL15-rx-buffer-allocation-20080812
Jeffrey Altman [Tue, 12 Aug 2008 19:42:03 +0000]
DEVEL15-rx-buffer-allocation-20080812

LICENSE MIT

Prevent rxi_MorePacketsNoLock() from dereferencing a NULL pointer if
the requested allocation size cannot be satsified.  In that case back
off the number of packets until osi_Alloc() succeeds or panic if no
packets can be allocated at all.

In AllocPacketBufs() do not transfer more than rx_TSFPQGlobSize packets.

Modify RX_TS_FPQ_GTOL2() macro to protect against transfering more packets
that are actually free.

Modify RX_TS_FPQ_COMPUTE_LIMITS() to enforce a rx_TSFPQGlobSize maximum
value of 64 packets to prevent ever increasing allocation sizes within
AllocPacketBufs()

(cherry picked from commit 643a632a38d3a9b0b9d4819abb37e227b5946c47)

15 years agoDEVEL15-windows-stack-overruns-20080811
Jeffrey Altman [Tue, 12 Aug 2008 05:31:30 +0000]
DEVEL15-windows-stack-overruns-20080811

LICENSE MIT

prevent stack overruns

(cherry picked from commit c19c4b3ebb9460eb373081fcbfcca6b7ae1f1495)

15 years agoDEVEL15-windows-fs-mkmount-20080811
Jeffrey Altman [Tue, 12 Aug 2008 00:56:14 +0000]
DEVEL15-windows-fs-mkmount-20080811

LICENSE MIT

fix volume name validity test.  strip trailing '.' from volume name

(cherry picked from commit 1f6c7ca14a10ec476dc6720c264a004bc2c9d955)

15 years agoDEVEL15-openafs-1-5-52-20080811
Derrick Brashear [Mon, 11 Aug 2008 05:40:03 +0000]
DEVEL15-openafs-1-5-52-20080811

LICENSE IPL10

make 1.5.52

15 years agoDEVEL15-windows-make-nls-win2000-compat-20080809
Jeffrey Altman [Sun, 10 Aug 2008 01:01:43 +0000]
DEVEL15-windows-make-nls-win2000-compat-20080809

LICENSE MIT

make the nls module compatible with windows 2000.
cannot use LOCALE_INVARIANT instead must lie and
say everyone is US English.  windows 2000 does not
have normalization functions and now doesn't have
case insensitive string comparison functions either
for languages other than English.

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

not all applications that link to cm_nls perform initialization.
Call initialization if it has not already been done explicitly.

(cherry picked from commit eaf2843a81839d1431280fa54f05c69135205e5c)

15 years agoDEVEL15-windows-freelance-deadlock-20080809
Jeffrey Altman [Sat, 9 Aug 2008 23:32:38 +0000]
DEVEL15-windows-freelance-deadlock-20080809

LICENSE MIT

avoid a deadlock between cm_freelanceLock and cm_scacheLock

(cherry picked from commit d5af3b4236f72349551ce326d615d2e74d993c97)

15 years agoDEVEL15-windows-rx-udpbufsize-20080809
Jeffrey Altman [Sat, 9 Aug 2008 05:53:42 +0000]
DEVEL15-windows-rx-udpbufsize-20080809

LICENSE MIT

Set UdpBufSize to 256K.  Add RxUdpBufSize registry value to permit
runtime configuration.

(cherry picked from commit cd316ff51c12b8c6dd5c09384bbe1d700735fe3c)

15 years agoDEVEL15-windows-smb-skip-nuls-20080809
Jeffrey Altman [Sat, 9 Aug 2008 05:49:50 +0000]
DEVEL15-windows-smb-skip-nuls-20080809

LICENSE MIT

rename SMB_STF_IGNORENULL to SMB_STF_IGNORENUL

apply SMB_STR_IGNORENUL when copying length tagged strings into
the smb response packets.

(cherry picked from commit 4eea9caac3cf260cf99ec67c30e31dd2d8c623d9)

15 years agoDEVEL15-windows-lock-corrections-20080808
Jeffrey Altman [Fri, 8 Aug 2008 17:46:35 +0000]
DEVEL15-windows-lock-corrections-20080808

LICENSE MIT

Derrick helped identify a few locations where rw or mx locks where
not properly being tracked.  As a result there were some locations
in which an assertion could be thrown due to releasing the wrong
type of lock.

Also added lock_AssertXXX calls to some locations to ensure that
the correct lock type is being held when the calls are made.  volume
location updates, cm_SyncOp, cm_SyncOpDone.

(cherry picked from commit 423cdb708f21dcbc28f6563c7c49069f6a6ec155)

15 years agoDEVEL15-windows-max-cell-name-20080807
Jeffrey Altman [Thu, 7 Aug 2008 14:48:12 +0000]
DEVEL15-windows-max-cell-name-20080807

LICENSE MIT

Anywhere cm_GetCell_Gen() is called CELL_MAXNAMELEN must be used
otherwise there will be a stack overflow error.

(cherry picked from commit 425d6e2e159798e8d6a6d092d780edef6b3a2220)

15 years agoDEVEL15-windows-misc-20080806
Jeffrey Altman [Thu, 7 Aug 2008 06:37:18 +0000]
DEVEL15-windows-misc-20080806

LICENSE MIT

Return CM_ERROR_READONLY if the caller wants PRSFS_DELETE and the
volume is readonly.

In cm_CheckNTDelete() do not call cm_SyncOpDone if cm_SyncOp failed

Do not force the use of fake directory data if the user does not
have PRSFS_READ on the directory.  Let the bulkstatus call take
place now that it is actually being used efficiently.

In ApplyV3SearchDirPatches, use cm_SyncOp(CM_SCACHESYNC_GETSTATUS)
to obtain the status info for Freelance entries instead of the
bulkstatus call.

Fix the truncation of 8.3 names in directory search responses.

(cherry picked from commit 467ac5e32d5d57056e6e19a47bb69b9d8ac0ba2d)

15 years agoDEVEL15-windows-cell-name-length-consistency-two-20080806
Jeffrey Altman [Wed, 6 Aug 2008 21:26:47 +0000]
DEVEL15-windows-cell-name-length-consistency-two-20080806

LICENSE MIT

fix what I broke

(cherry picked from commit d0ed34baa0e23b7bb24ea009004a527331baf275)

15 years agoDEVEL15-windows-afssw-20080806
Jeffrey Altman [Wed, 6 Aug 2008 06:13:09 +0000]
DEVEL15-windows-afssw-20080806

LICENSE MIT

prevent buffer underrun and overrun errors

(cherry picked from commit d44f1a17e4e1831ef39b8f5767a2ca7aad870fb2)

15 years agoDEVEL15-windows-cell-name-length-consistency-20080806
Jeffrey Altman [Wed, 6 Aug 2008 06:11:30 +0000]
DEVEL15-windows-cell-name-length-consistency-20080806

LICENSE MIT

make all cell name lengths consistent so that safer string copy/cat
functions can be used to prevent buffer overruns

(cherry picked from commit 255d055e6123bcce76ef9e531a0c4963da4f0fef)

15 years agoDEVEL15-windows-getaccessrights-20080805
Jeffrey Altman [Tue, 5 Aug 2008 16:46:37 +0000]
DEVEL15-windows-getaccessrights-20080805

LICENSE MIT

Do not permit GetAccessRights() to be called multiple times within
cm_SyncOp for the same rights check.  If the GetAccessRights() succeeded
and in the next loop the rights check fails, the user simply doesn't
have the rights.

Move a call to cm_SyncOpDone(FETCHSTATUS) from GetBuffer() to MergeStatus().
Anytime an RPC completes successfully we get updated status info for
the object.  Might as well allow threads waiting for status info to us
it.

(cherry picked from commit aab4b2b32f933daf48cc138c0eb5d8cf5a2023b5)

15 years agoDEVEL15-windows-smb-dir-search-20080805
Jeffrey Altman [Tue, 5 Aug 2008 15:32:05 +0000]
DEVEL15-windows-smb-dir-search-20080805

LICENSE MIT

Only return 50 items at a time to the caller.
Do not apply patches based on buffer boundaries.  Instead
apply patches when AFSCBMAX entries are ready to be processed
in order to minimize the number of RPCs.

15 years agoDEVEL15-windows-ioctl-make-submount-20080802
Jeffrey Altman [Sun, 3 Aug 2008 04:30:14 +0000]
DEVEL15-windows-ioctl-make-submount-20080802

LICENSE MIT
FIXES 109951

Restore the ascii version of cm_NormalizeAfsPathAscii() so that it
can be used by cm_IoctlMakeSubmount().

(cherry picked from commit a021b79556f7918598fc48bcd8742429f5620cc9)

15 years agoDEVEL15-windows-afsconfig-header-20080802
Jeffrey Altman [Sat, 2 Aug 2008 20:47:45 +0000]
DEVEL15-windows-afsconfig-header-20080802

LICENSE MIT

Enable Bos Restricted mode for Windows

(cherry picked from commit 1fbbaaa8781d0cbdb484ea6c731622e79325fa2d)

15 years agoDEVEL15-windows-smb-dir-search-20080802
Jeffrey Altman [Sat, 2 Aug 2008 18:40:17 +0000]
DEVEL15-windows-smb-dir-search-20080802

LICENSE MIT

Apply the bulk stat improvements to smb_ApplyDirListPatches() and
smb_ReceiveCoreSearchDir() for consistency even though
smb_ReceiveCoreSearchDir() is no longer called by any of the platforms
we support.

(cherry picked from commit cc8e39872e1663599c1172573c75cd35b839a370)

15 years agoDEVEL15-windows-smb-dir-search-20080801
Jeffrey Altman [Sat, 2 Aug 2008 05:58:46 +0000]
DEVEL15-windows-smb-dir-search-20080801

LICENSE MIT

minimize the number of RPCs sent to the file server. only request
status for objects that we are actually reporting on and only if
we do not already have status for the object
and then make sure that we return as much as we can at once but
not so much that it exceeds the RDR timeout

(cherry picked from commit b9e0ab9f5bc1d45fa5cb6ca9342d06ea29119149)

15 years agoDEVEL15-windows-scache-deadlock-20080801
Jeffrey Altman [Fri, 1 Aug 2008 22:36:05 +0000]
DEVEL15-windows-scache-deadlock-20080801

LICENSE MIT

do not recycle a deleted scache object unless the refcount is 0

(cherry picked from commit 807a9aa7b20ab4f457f5235513a5ab15828d6e5c)

15 years agoDEVEL15-windows-smb-dumpvars-20080801
Jeffrey Altman [Fri, 1 Aug 2008 22:03:30 +0000]
DEVEL15-windows-smb-dumpvars-20080801

LICENSE MIT

When dumping the smb data structs, report flags in hex and
paths are now wchar_t strings.

(cherry picked from commit 0c0b89e04627cc43ab3e31c607be4470292a1d0a)

15 years agoDEVEL15-windows-callback-shutdown-20080801
Jeffrey Altman [Fri, 1 Aug 2008 20:13:51 +0000]
DEVEL15-windows-callback-shutdown-20080801

LICENSE MIT

When the cache manager is shutting down, return an error to all
callback requests.  Otherwise, it is possible for a callback to get
stuck waiting for a lock and when the lock clears to be left with
nothing but invalid memory addresses to crash on.

In the meantime, the file server is waiting for the response.

15 years agoDEVEL15-windows-smb-warnings-20080801
Jeffrey Altman [Fri, 1 Aug 2008 14:37:49 +0000]
DEVEL15-windows-smb-warnings-20080801

LICENSE MIT

cast away a number of compile time data size warnings

(cherry picked from commit 005077a7e4fdc9ca8bedb357050875df8f1aa898)

15 years agoDEVEL15-windows-smb-vc-refcount-debugging-20080801
Jeffrey Altman [Fri, 1 Aug 2008 14:31:38 +0000]
DEVEL15-windows-smb-vc-refcount-debugging-20080801

LICENSE MIT

define DEBUG_SMB_REFCOUNT in smb.h to activate refcount debugging
versions of the functions that log the file and line number as
well as object and refcount.  This is for use in debugging refcount
leaks.

rename GetPacket and GetNCB to smb_GetPacket and smb_GetNCB, etc.,
to enforce the name space.  Do not confuse with similar Win32 API
functions.

restructure some code that refers to smb_vc_t references in order
to clarify where the refcount is dropped.

(cherry picked from commit 1f7ab13b6fffcf236927c7e3173d6e59d1521f4c)

15 years agoDEVEL15-windows-smb-dead-vc-gc-20080801
Jeffrey Altman [Fri, 1 Aug 2008 13:53:38 +0000]
DEVEL15-windows-smb-dead-vc-gc-20080801

LICENSE MIT

deltas windows-smb-dead-vc-gc-20080627 and
windows-dead-vc-cleanup-take-two-20080703 attempted to
protect against an infinite recursion when cleaning up
dead smb virtual circuits.  they failed to address the
incrementing of the vc refcount in smb_ReleaseVCInternal
when it is about to call smb_CleanupDeadVC.  If the vc
is already being cleaned, then smb_ReleaseVCInternal
should not increment the refCount and should not call
smb_CleanupDeadVC.

15 years agoDEVEL15-windows-osilog-20080731
Jeffrey Altman [Fri, 1 Aug 2008 05:23:56 +0000]
DEVEL15-windows-osilog-20080731

LICENSE MIT

increase the number of parms from 4 to 5 for osi_Log

(cherry picked from commit c38036761eef51f26b085ca8bc69f4a0a65a2f4a)

15 years agoDEVEL15-windows-ioctl-create-mount-point-validate-volume-20080731
Jeffrey Altman [Thu, 31 Jul 2008 18:02:49 +0000]
DEVEL15-windows-ioctl-create-mount-point-validate-volume-20080731

LICENSE MIT

validate the specified volume to make sure it exists before permitting
the mount point to be created.   This will catch many instances in which
the user swaps the parameters to "fs mkmount".

(cherry picked from commit 91d1501be5e8ca0f957de2897c4c4ea0782dfbc3)

15 years agoDEVEL15-windows-wix-custom-20080731
Jeffrey Altman [Thu, 31 Jul 2008 13:44:31 +0000]
DEVEL15-windows-wix-custom-20080731

LICENSE MIT

in c++, arrays allocated with new[] must be deallocated with delete[]

(cherry picked from commit 14e516f1d5304a1b00c40321124a6b2067b977f2)

15 years agoDEVEL15-windows-handle-vl_badname-20080731
Jeffrey Altman [Thu, 31 Jul 2008 13:39:24 +0000]
DEVEL15-windows-handle-vl_badname-20080731

LICENSE MIT

Process VL_BADNAME so that when a user creates an mount point with
an invalid volume name we will do something sane.

(cherry picked from commit a46b1879dc187b44c48691946479d1e9599abcfb)

15 years agoDEVEL15-windows-volume-recycling-race-condition-20080731
Jeffrey Altman [Thu, 31 Jul 2008 05:47:20 +0000]
DEVEL15-windows-volume-recycling-race-condition-20080731

LICENSE MIT

When recycling cm_volume_t objects, avoid a race condition that could
result in the same cm_volume_t object being recycling simultaneously
in two threads.  The end result would be a reference count miscount
and an undercount assertion being thrown.

(cherry picked from commit b61ac7dc6ffb05b03011fef8cfdd5e72886fb705)

15 years agoDEVEL15-windows-buf-clean-error-handling-20080731
Jeffrey Altman [Thu, 31 Jul 2008 05:41:20 +0000]
DEVEL15-windows-buf-clean-error-handling-20080731

LICENSE MIT

When an error such as access denied, out of space, out of quota,
invalid fid, etc. is received while writing a dirty buffer to the
file server, apply that error code to all outstanding dirty buffers
immediately instead of attempting to write each buffer to the file
server only to obtain the same error.

(cherry picked from commit aa24715f068dad4dfdc2140bf8f793297ba10ac9)

15 years agoDEVEL15-windows-remove-unnecessary-malloc-include-20080731
Jeffrey Altman [Thu, 31 Jul 2008 05:34:16 +0000]
DEVEL15-windows-remove-unnecessary-malloc-include-20080731

LICENSE MIT

remove unnecessary #include <malloc.h>

(cherry picked from commit 24fd571c5210764212e0de30a474f252b46353b3)

15 years agoDEVEL15-windows-stat-resource-files-20080730
Jeffrey Altman [Wed, 30 Jul 2008 23:17:40 +0000]
DEVEL15-windows-stat-resource-files-20080730

LICENSE MIT

Add version resource info to xstat_cm_test.exe and xstat_fs_test.exe

(cherry picked from commit 8c22d2388af3a2e99aeb70fdb81dbfa158413840)

15 years agoDEVEL15-viced-write-perm-grants-read-lock-20080730
Jeffrey Altman [Wed, 30 Jul 2008 21:01:58 +0000]
DEVEL15-viced-write-perm-grants-read-lock-20080730

LICENSE MIT

Remove extra return(EACCES) added by delta
viced-write-perm-grants-read-lock-20070423 on head and 1.5 branch.

(cherry picked from commit 34923419b3d680005375b1598c09b20ec49bcb1e)

15 years agoDEVEL15-windows-release-notes-20080729
Jeffrey Altman [Wed, 30 Jul 2008 02:56:38 +0000]
DEVEL15-windows-release-notes-20080729

LICENSE MIT

remove comment that UseDNS registry value no longer works.

15 years agoDEVEL15-windows-notes-20080728 openafs-devel-1_5_51
Jeffrey Altman [Tue, 29 Jul 2008 04:20:49 +0000]
DEVEL15-windows-notes-20080728

LICENSE MIT

1.5.51

15 years agoDEVEL15-windows-buf-overquota-20080728
Jeffrey Altman [Tue, 29 Jul 2008 03:55:41 +0000]
DEVEL15-windows-buf-overquota-20080728

LICENSE MIT

propagate overquota errors through buf_Write() and cm_FSync().

(cherry picked from commit 8cce5d2a61227da8623dcd08b11d997c66815cf1)

15 years agoDEVEL15-windows-version-20080728
Jeffrey Altman [Tue, 29 Jul 2008 00:09:28 +0000]
DEVEL15-windows-version-20080728

LICENSE MIT

1.5.51

15 years agoDEVEL15-windows-large-files-20080728
Jeffrey Altman [Tue, 29 Jul 2008 00:05:32 +0000]
DEVEL15-windows-large-files-20080728

LICENSE MIT

as part of the restructuring of code to separate the smb layer
from the cm layer, large file support was broken.   Define AFS_LARGEFILES
in the right place so that it will be used in the cm.

(cherry picked from commit b45b059ed9772642489d56372cbd74db4f0cfc02)

15 years agoDEVEL15-openafs-1-5-51-20080728
Derrick Brashear [Mon, 28 Jul 2008 14:13:25 +0000]
DEVEL15-openafs-1-5-51-20080728

LICENSE IPL10

make 1.5.51

15 years agoDEVEL15-salvager-avoid-directory-issues-and-mark-volumes-busy-20080728
Hartmut Reuter [Mon, 28 Jul 2008 13:58:42 +0000]
DEVEL15-salvager-avoid-directory-issues-and-mark-volumes-busy-20080728

LICENSE IPL10
FIXES 107767

avoid corrupting length in vnodeds when salvaging directories.
avoid tag reuse leaving data behind (not verified)
avoid not marking something busy during salvage

(cherry picked from commit 674e94b29c09cf87496d74a01ebeada14413daac)

15 years agoDEVEL15-pinstall-copy-env-20080728
Jason Edgecombe [Mon, 28 Jul 2008 13:16:06 +0000]
DEVEL15-pinstall-copy-env-20080728

LICENSE IPL10
FIXES 108449

copy environment to children

15 years agoDEVEL15-windows-version-20080727
Jeffrey Altman [Mon, 28 Jul 2008 00:07:33 +0000]
DEVEL15-windows-version-20080727

LICENSE MIT

1.5.5100.0 == 1.5.51

15 years agoDEVEL15-windows-notes-20080727
Jeffrey Altman [Mon, 28 Jul 2008 00:05:09 +0000]
DEVEL15-windows-notes-20080727

LICENSE MIT

1.5.51

15 years agoDEVEL15-windows-ioctl-prefix-data-20080726
Jeffrey Altman [Sun, 27 Jul 2008 03:48:11 +0000]
DEVEL15-windows-ioctl-prefix-data-20080726

LICENSE MIT

The ioctl-prefix-data can be accessed either via a char_t or a wchar_t.
Copy the data buffer with memcpy() and not strcpy() because we need to
copy the entire string if it happens to be Unicode.

(cherry picked from commit eb1ff11bf14cfc64b4e224ef574d62e6e3757bc1)

15 years agoDEVEL15-windows-build-20080725
Jeffrey Altman [Fri, 25 Jul 2008 21:27:20 +0000]
DEVEL15-windows-build-20080725

LICENSE MIT

update README-NT and src/ntbuild.bat build instructions.

(cherry picked from commit 61d1578324b8b4f4a18fc12a3d199155692e8e4b)

15 years agoDEVEL15-windows-release-notes-20080725
Jeffrey Altman [Fri, 25 Jul 2008 20:59:31 +0000]
DEVEL15-windows-release-notes-20080725

LICENSE MIT

1.5.51

15 years agoDEVEL15-windows-notes-20080725
Jeffrey Altman [Fri, 25 Jul 2008 20:56:37 +0000]
DEVEL15-windows-notes-20080725

LICENSE MIT

1.5.51

15 years agoDEVEL15-windows-nsis-vc-runtime-install-20080725
Jeffrey Altman [Fri, 25 Jul 2008 20:45:32 +0000]
DEVEL15-windows-nsis-vc-runtime-install-20080725

LICENSE MIT

The NSIS installer was building a msi for the vc runtime that included
the Debug merge modules when the Retail merge modules should have been
used instead.

(cherry picked from commit ba846eb82994469b904c104d52369fb55b985a20)

15 years agoDEVEL15-windows-buf-setdirty-20080724
Jeffrey Altman [Thu, 24 Jul 2008 20:33:53 +0000]
DEVEL15-windows-buf-setdirty-20080724

LICENSE MIT

Everytime the CM_BUF_DIRTY flag is set on a cm_buf_t, the userp field
on the cm_buf_t must also be set.  Add a cm_user_t parameter to buf_SetDirty()
so that each function that calls it doesn't have to manually set the
last write user.  This improves code readability and the abstraction layering.

(cherry picked from commit c10b26ca355e47bfb486de971ac275fb281461ca)

15 years agoDEVEL15-windows-cm-makedir-20080724
Jeffrey Altman [Thu, 24 Jul 2008 18:56:54 +0000]
DEVEL15-windows-cm-makedir-20080724

LICENSE MIT

Extend the cm_MakeDir() function signature to permit the (optional)
return of the cm_scache_t object that was created by the operation
in the same way that cm_Create() does.

Make the return of the cm_scache_t by cm_Create() optional although
it is never used that way.

In both cm_Create() and cm_MakeDir() avoid releasing the cm_scache_t
object until we are actually finished with it.

(cherry picked from commit 0ca9a136a79d78a81fb6a2e941b2a6feef0d4952)

15 years agoDEVEL15-windows-cm-req-smb-20080723
Jeffrey Altman [Wed, 23 Jul 2008 22:46:44 +0000]
DEVEL15-windows-cm-req-smb-20080723

LICENSE MIT

Add smb_InitReq() calls cm_InitReq() and then sets the new
CM_REQ_SOURCE_SMB flag.  When this flag is set, the source of the
request is known to be the SMB interface.  This flag will not be
set on requests generated by the various background daemons.

(cherry picked from commit 70bfb2c59b0f989a643a51ceac1fca86ef50b5dc)

15 years agoDEVEL15-windows-cm-rename-debugging-20080723
Jeffrey Altman [Wed, 23 Jul 2008 22:26:42 +0000]
DEVEL15-windows-cm-rename-debugging-20080723

LICENSE MIT

Add some trace log statements to cm_Rename() that can be used for
debugging.

(cherry picked from commit 8f75470349f4e9ce4b861bac10e2816edb69f15d)

15 years agoDEVEL15-windows-btree-enum-20080723
Jeffrey Altman [Wed, 23 Jul 2008 22:20:45 +0000]
DEVEL15-windows-btree-enum-20080723

LICENSE MIT

Fix next enum to return an invalid param error when beyond the end
of the list.

(cherry picked from commit a9c00f2638d44e1d077fbd953bf153df9cc319c4)

15 years agoDEVEL15-windows-volume-deadlock-20080722
Jeffrey Altman [Wed, 23 Jul 2008 05:56:59 +0000]
DEVEL15-windows-volume-deadlock-20080722

LICENSE MIT

When updating the volume location information, if a new server must
be allocated and the server is down, then it is possible for a deadlock
to occur on the cm_volume_t rw lock.  Prevent that from happening.

(cherry picked from commit 2ed0ee573c2b36cc6979693827e36f1ce6bdfa1b)

15 years agoDEVEL15-windows-build-system-20080722
Jeffrey Altman [Tue, 22 Jul 2008 16:02:56 +0000]
DEVEL15-windows-build-system-20080722

LICENSE MIT

Move the man-pages build out of the 'install' step.

(cherry picked from commit 5db162c8dcb6ae81a631d5ae6e95959428b61a6a)

15 years agoDEVEL15-windows-volume-vlgetaddrs-deadlock-20080721
Jeffrey Altman [Tue, 22 Jul 2008 07:43:35 +0000]
DEVEL15-windows-volume-vlgetaddrs-deadlock-20080721

LICENSE MIT

A missing tilde makes a huge difference.

(cherry picked from commit 44379715638563f6271cf1853d7081cea18a6824)

15 years agoDEVEL15-backout-rx-connection-clones-20080721
Jeffrey Altman [Tue, 22 Jul 2008 05:18:28 +0000]
DEVEL15-backout-rx-connection-clones-20080721

LICENSE MIT
FIXES 89557

connection clones.   Backing it off the 1_5_x branch as that branch is
used for the production releases of Windows.

15 years agoDEVEL15-windows-more-rxconnp-20080721
Jeffrey Altman [Mon, 21 Jul 2008 21:56:30 +0000]
DEVEL15-windows-more-rxconnp-20080721

LICENSE MIT

convert additional 'connp' instances to 'rxconnp'

in cm_volume.c, make sure that we hold a reference to the rxconnp
whenever we use it to perform an RPC.

(cherry picked from commit b7398a8a50522fe15f8a30dead6487b219c7b5f5)

15 years agoDEVEL15-windows-cm_conn-20080721
Jeffrey Altman [Mon, 21 Jul 2008 19:35:39 +0000]
DEVEL15-windows-cm_conn-20080721

LICENSE MIT

callp -> rxconnp

(cherry picked from commit 0172a6aa2637a6f7d2df584f4dba60cce0285c9e)

15 years agoDEVEL15-windows-callp-to-rxcallp-20080721
Jeffrey Altman [Mon, 21 Jul 2008 17:19:53 +0000]
DEVEL15-windows-callp-to-rxcallp-20080721

LICENSE MIT

There has been long time confusion in the windows cache manager because
there are cm_conn object ptrs call connp and rx_connection object ptrs
call connp and rx_call object ptrs called callp and rx_connection object
ptrs called callp.

From now on, rxconnp is a ptr to an rx_connection object;
rxcallp is a ptr to an rx_call object; and connp is a ptr to an
cm_conn object.

(cherry picked from commit a92cd4ec76509a84a93764b94831114e00bbc3d5)

15 years agoDEVEL15-windows-smb-ioctl-setacl-20080721
Jeffrey Altman [Mon, 21 Jul 2008 10:20:38 +0000]
DEVEL15-windows-smb-ioctl-setacl-20080721

LICENSE MIT

setacl does not support the options structure.  just call parse ioctl path.
bug introduced during ioctl refactoring.

(cherry picked from commit ab1ddbe803005004978b86516e4bcd68ef668e67)

15 years agoDEVEL15-windows-volume-vlgetaddrs-deadlock-20080719
Jeffrey Altman [Sat, 19 Jul 2008 15:54:10 +0000]
DEVEL15-windows-volume-vlgetaddrs-deadlock-20080719

LICENSE MIT

During cm_InitVolume() clear CM_VOLUMEFLAG_UPDATING_VL if we are reusing
the cache data just in case.

In cm_UpdateVolumeLocation() add trace logging to the sleeping, waking,
and awaking states; move the destruction of the old server list into
the region protected by the CM_VOLUMEFLAG_UPDATING_VL flag.

(cherry picked from commit ff0f4a596554bf4b09224ca000663b596a034013)

15 years agoDEVEL15-always-wrap-vos-ctime-20080718
Russ Allbery [Sat, 19 Jul 2008 07:56:47 +0000]
DEVEL15-always-wrap-vos-ctime-20080718

LICENSE MIT

When calling ctime on an afs_int32, always use a wrapper that assigns the
variable to a time_t before passing it in rather than conditionally doing
so on hosts with a large time_t.  This eliminates a configure test,
removes a bunch of warnings in vos.c on platforms with 32-bit time_t, and
will make no difference in generated code with any decent compiler.

(cherry picked from commit af5e519e8e72c37b732474e08b6648bbdf458e95)

15 years agoDEVEL15-kill-ubik-pthread-env-20080718
Russ Allbery [Sat, 19 Jul 2008 07:15:01 +0000]
DEVEL15-kill-ubik-pthread-env-20080718

LICENSE BSD

Everywhere AFS_PTHREAD_ENV was defined, UBIK_PTHREAD_ENV was defined as
well, so don't make them separate.  Building pthreaded Ubik is controlled
by deciding whether to build the t* versions of various directories, not
by the preprocessor directives.  AFS_PTHREAD_ENV is only defined when
building in those directories.

This change eliminates UBIK_PTHREAD_ENV and uses AFS_PTHREAD_ENV to mean
the same thing.

As a side effect, fixes compiles on arm with --enable-pthreaded-ubik, since
arm never defined UBIK_PTHREAD_ENV.

(cherry picked from commit 9682d4c1073846b13ae0825c8d6b020e5b31559c)

15 years agoDEVEL15-windows-volume-vlgetaddrs-deadlock-20080718
Jeffrey Altman [Sat, 19 Jul 2008 06:59:23 +0000]
DEVEL15-windows-volume-vlgetaddrs-deadlock-20080718

LICENSE MIT

If during volume location updating, the VL_GetAddrsU call fails for any
of the identified servers, return an error but do so without leaking
memory or deadlocking other threads that might be waiting.

(cherry picked from commit c797e0844328f2ee437e3c659eab52fc590388b3)

15 years agoDEVEL15-suppress-cellconfig-warnings-20080718
Russ Allbery [Sat, 19 Jul 2008 06:47:17 +0000]
DEVEL15-suppress-cellconfig-warnings-20080718

LICENSE BSD

Add a forward declaration for struct ktc_encryptionKey to suppress warnings
from cellconfig.h about declaring a struct in a prototype.

(cherry picked from commit d3900e4f357cbd8a475ee3e8a786e646bdb43a01)

15 years agoDEVEL15-more-no-unconditional-pthreaded-ubik-20080718
Russ Allbery [Sat, 19 Jul 2008 06:44:16 +0000]
DEVEL15-more-no-unconditional-pthreaded-ubik-20080718

LICENSE BSD

More directories should be conditional on pthreaded ubik.

(cherry picked from commit 227f7e8eda70fbd62d0747a4334149fcd43deaf8)

15 years agoDEVEL15-no-unconditional-pthreaded-ubik-20080718
Russ Allbery [Sat, 19 Jul 2008 04:31:17 +0000]
DEVEL15-no-unconditional-pthreaded-ubik-20080718

LICENSE BSD

Don't compile pthreaded Ubik by default and instead actually require the
--enable-pthreaded-ubik flag.

(cherry picked from commit d811361ce9b64938c0eeb4ab4ca7ad77f6502c60)

15 years agoDEVEL15-discon-prototype-correction-20080718 openafs-devel-1_5_50a
Simon Wilkinson [Fri, 18 Jul 2008 15:54:34 +0000]
DEVEL15-discon-prototype-correction-20080718

LICENSE IPL10

correct prototype for disconnected afs

(cherry picked from commit 5bbdc3fb6904825f75ebdb1f2a17ed0ee6aefcfe)

15 years agoDEVEL15-man-page-fileserver-long-line-20080717
Russ Allbery [Fri, 18 Jul 2008 07:19:33 +0000]
DEVEL15-man-page-fileserver-long-line-20080717

LICENSE BSD

Fix long line in the SYNOPSIS for the fileserver man page.

(cherry picked from commit 8009b045aa5d20c527f1fa1fec0642f9ca0f9cd5)

15 years agoDEVEL15-demand-attach-vos-install-location-20080717
Russ Allbery [Fri, 18 Jul 2008 01:24:13 +0000]
DEVEL15-demand-attach-vos-install-location-20080717

LICENSE IPL10

In the tvolser case, install vos in ${afssrvsbindir}/vos, not
${afssrvlibexecdir}/vos.

(cherry picked from commit a8e8287b755ab9cd8e6904f66334b8a5cd1bcb39)

15 years agoDEVEL15-windows-nls-zero-length-input-20080716 openafs-devel-1_5_50
Asanka Herath [Wed, 16 Jul 2008 16:23:46 +0000]
DEVEL15-windows-nls-zero-length-input-20080716

LICENSE MIT

If the input to the string conversion files is zero length
return nul string instead of NULL.

Pass in -1 instead of computing the strlen.

(cherry picked from commit 24ac19c606f28642d0ea5f339a7d0eb0a2526b96)

15 years agoDEVEL15-windows-notes-20080715
Jeffrey Altman [Wed, 16 Jul 2008 06:56:51 +0000]
DEVEL15-windows-notes-20080715

LICENSE MIT

1.5.50

15 years agoDEVEL15-windows-release-notes-20080715
Jeffrey Altman [Wed, 16 Jul 2008 06:34:53 +0000]
DEVEL15-windows-release-notes-20080715

LICENSE MIT

1.5.50.  Add description for Unicode support.

15 years agoDEVEL15-windows-set-rx-dead-time-20080715
Jeffrey Altman [Wed, 16 Jul 2008 05:44:27 +0000]
DEVEL15-windows-set-rx-dead-time-20080715

LICENSE MIT

No longer set the rx_SetConnDeadTime and rx_SetConnHardDeadTime to
the remaining request SMB RDR timeout within cm_ConnByMServers().
There are not per-call timeouts so simultaneous requests on the same
connection will race with each other either resulting in premature
timeouts or significantly extended timeouts.

(cherry picked from commit 6a749b71f7908129189ef10019372edc5b400c61)