]> git.michaelhowe.org Git - packages/o/openafs.git/log
packages/o/openafs.git
17 years agoDEVEL15-windows-smb-dir-search-20080801
Jeffrey Altman [Sat, 2 Aug 2008 05:58:46 +0000 (05:58 +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)

17 years agoDEVEL15-windows-scache-deadlock-20080801
Jeffrey Altman [Fri, 1 Aug 2008 22:36:05 +0000 (22:36 +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)

17 years agoDEVEL15-windows-smb-dumpvars-20080801
Jeffrey Altman [Fri, 1 Aug 2008 22:03:30 +0000 (22:03 +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)

17 years agoDEVEL15-windows-callback-shutdown-20080801
Jeffrey Altman [Fri, 1 Aug 2008 20:13:51 +0000 (20:13 +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.

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

LICENSE MIT

cast away a number of compile time data size warnings

(cherry picked from commit 005077a7e4fdc9ca8bedb357050875df8f1aa898)

17 years agoDEVEL15-windows-smb-vc-refcount-debugging-20080801
Jeffrey Altman [Fri, 1 Aug 2008 14:31:38 +0000 (14:31 +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)

17 years agoDEVEL15-windows-smb-dead-vc-gc-20080801
Jeffrey Altman [Fri, 1 Aug 2008 13:53:38 +0000 (13:53 +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.

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

LICENSE MIT

increase the number of parms from 4 to 5 for osi_Log

(cherry picked from commit c38036761eef51f26b085ca8bc69f4a0a65a2f4a)

17 years agoDEVEL15-windows-ioctl-create-mount-point-validate-volume-20080731
Jeffrey Altman [Thu, 31 Jul 2008 18:02:49 +0000 (18:02 +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)

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

LICENSE MIT

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

(cherry picked from commit 14e516f1d5304a1b00c40321124a6b2067b977f2)

17 years agoDEVEL15-windows-handle-vl_badname-20080731
Jeffrey Altman [Thu, 31 Jul 2008 13:39:24 +0000 (13:39 +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)

17 years agoDEVEL15-windows-volume-recycling-race-condition-20080731
Jeffrey Altman [Thu, 31 Jul 2008 05:47:20 +0000 (05:47 +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)

17 years agoDEVEL15-windows-buf-clean-error-handling-20080731
Jeffrey Altman [Thu, 31 Jul 2008 05:41:20 +0000 (05:41 +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)

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

LICENSE MIT

remove unnecessary #include <malloc.h>

(cherry picked from commit 24fd571c5210764212e0de30a474f252b46353b3)

17 years agoDEVEL15-windows-stat-resource-files-20080730
Jeffrey Altman [Wed, 30 Jul 2008 23:17:40 +0000 (23:17 +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)

17 years agoDEVEL15-viced-write-perm-grants-read-lock-20080730
Jeffrey Altman [Wed, 30 Jul 2008 21:01:58 +0000 (21:01 +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)

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

LICENSE MIT

remove comment that UseDNS registry value no longer works.

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

LICENSE MIT

1.5.51

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

LICENSE MIT

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

(cherry picked from commit 8cce5d2a61227da8623dcd08b11d997c66815cf1)

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

LICENSE MIT

1.5.51

17 years agoDEVEL15-windows-large-files-20080728
Jeffrey Altman [Tue, 29 Jul 2008 00:05:32 +0000 (00:05 +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)

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

LICENSE IPL10

make 1.5.51

17 years agoDEVEL15-salvager-avoid-directory-issues-and-mark-volumes-busy-20080728
Hartmut Reuter [Mon, 28 Jul 2008 13:58:42 +0000 (13:58 +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)

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

LICENSE IPL10
FIXES 108449

copy environment to children

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

LICENSE MIT

1.5.5100.0 == 1.5.51

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

LICENSE MIT

1.5.51

17 years agoDEVEL15-windows-ioctl-prefix-data-20080726
Jeffrey Altman [Sun, 27 Jul 2008 03:48:11 +0000 (03:48 +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)

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

LICENSE MIT

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

(cherry picked from commit 61d1578324b8b4f4a18fc12a3d199155692e8e4b)

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

LICENSE MIT

1.5.51

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

LICENSE MIT

1.5.51

17 years agoDEVEL15-windows-nsis-vc-runtime-install-20080725
Jeffrey Altman [Fri, 25 Jul 2008 20:45:32 +0000 (20:45 +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)

17 years agoDEVEL15-windows-buf-setdirty-20080724
Jeffrey Altman [Thu, 24 Jul 2008 20:33:53 +0000 (20:33 +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)

17 years agoDEVEL15-windows-cm-makedir-20080724
Jeffrey Altman [Thu, 24 Jul 2008 18:56:54 +0000 (18:56 +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)

17 years agoDEVEL15-windows-cm-req-smb-20080723
Jeffrey Altman [Wed, 23 Jul 2008 22:46:44 +0000 (22:46 +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)

17 years agoDEVEL15-windows-cm-rename-debugging-20080723
Jeffrey Altman [Wed, 23 Jul 2008 22:26:42 +0000 (22:26 +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)

17 years agoDEVEL15-windows-btree-enum-20080723
Jeffrey Altman [Wed, 23 Jul 2008 22:20:45 +0000 (22:20 +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)

17 years agoDEVEL15-windows-volume-deadlock-20080722
Jeffrey Altman [Wed, 23 Jul 2008 05:56:59 +0000 (05:56 +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)

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

LICENSE MIT

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

(cherry picked from commit 5db162c8dcb6ae81a631d5ae6e95959428b61a6a)

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

LICENSE MIT

A missing tilde makes a huge difference.

(cherry picked from commit 44379715638563f6271cf1853d7081cea18a6824)

17 years agoDEVEL15-backout-rx-connection-clones-20080721
Jeffrey Altman [Tue, 22 Jul 2008 05:18:28 +0000 (05:18 +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.

17 years agoDEVEL15-windows-more-rxconnp-20080721
Jeffrey Altman [Mon, 21 Jul 2008 21:56:30 +0000 (21:56 +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)

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

LICENSE MIT

callp -> rxconnp

(cherry picked from commit 0172a6aa2637a6f7d2df584f4dba60cce0285c9e)

17 years agoDEVEL15-windows-callp-to-rxcallp-20080721
Jeffrey Altman [Mon, 21 Jul 2008 17:19:53 +0000 (17:19 +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)

17 years agoDEVEL15-windows-smb-ioctl-setacl-20080721
Jeffrey Altman [Mon, 21 Jul 2008 10:20:38 +0000 (10:20 +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)

17 years agoDEVEL15-windows-volume-vlgetaddrs-deadlock-20080719
Jeffrey Altman [Sat, 19 Jul 2008 15:54:10 +0000 (15:54 +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)

17 years agoDEVEL15-always-wrap-vos-ctime-20080718
Russ Allbery [Sat, 19 Jul 2008 07:56:47 +0000 (07:56 +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)

17 years agoDEVEL15-kill-ubik-pthread-env-20080718
Russ Allbery [Sat, 19 Jul 2008 07:15:01 +0000 (07:15 +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)

17 years agoDEVEL15-windows-volume-vlgetaddrs-deadlock-20080718
Jeffrey Altman [Sat, 19 Jul 2008 06:59:23 +0000 (06:59 +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)

17 years agoDEVEL15-suppress-cellconfig-warnings-20080718
Russ Allbery [Sat, 19 Jul 2008 06:47:17 +0000 (06:47 +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)

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

LICENSE BSD

More directories should be conditional on pthreaded ubik.

(cherry picked from commit 227f7e8eda70fbd62d0747a4334149fcd43deaf8)

17 years agoDEVEL15-no-unconditional-pthreaded-ubik-20080718
Russ Allbery [Sat, 19 Jul 2008 04:31:17 +0000 (04:31 +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)

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

LICENSE IPL10

correct prototype for disconnected afs

(cherry picked from commit 5bbdc3fb6904825f75ebdb1f2a17ed0ee6aefcfe)

17 years agoDEVEL15-man-page-fileserver-long-line-20080717
Russ Allbery [Fri, 18 Jul 2008 07:19:33 +0000 (07:19 +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)

17 years agoDEVEL15-demand-attach-vos-install-location-20080717
Russ Allbery [Fri, 18 Jul 2008 01:24:13 +0000 (01:24 +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)

17 years agoDEVEL15-windows-nls-zero-length-input-20080716 openafs-devel-1_5_50
Asanka Herath [Wed, 16 Jul 2008 16:23:46 +0000 (16:23 +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)

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

LICENSE MIT

1.5.50

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

LICENSE MIT

1.5.50.  Add description for Unicode support.

17 years agoDEVEL15-windows-set-rx-dead-time-20080715
Jeffrey Altman [Wed, 16 Jul 2008 05:44:27 +0000 (05:44 +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)

17 years agoDEVEL15-openafs-1-5-50-20080716
Derrick Brashear [Wed, 16 Jul 2008 05:29:41 +0000 (05:29 +0000)]
DEVEL15-openafs-1-5-50-20080716

LICENSE IPL10

make 1.5.50

17 years agoDEVEL15-softsig-structure-handling-20080716
Derrick Brashear [Wed, 16 Jul 2008 05:25:25 +0000 (05:25 +0000)]
DEVEL15-softsig-structure-handling-20080716

LICENSE IPL10

this is sort of a dumb ifdef. harmless, but fix it to be what it's supposed to

(cherry picked from commit 4d7cfa129353001759c6224cc5c590be7e043fe9)

17 years agoDEVEL15-volser-reclone-bring-online-before-giveback-20080716
Derrick Brashear [Wed, 16 Jul 2008 05:15:57 +0000 (05:15 +0000)]
DEVEL15-volser-reclone-bring-online-before-giveback-20080716

LICENSE IPL10
FIXES 107258

when giving back a volume after reclone, make it inService to avoid a race
between callers and the SetFlags RPC

(cherry picked from commit b4ce530d365e97342a92f4a8d59de12b0570c699)

17 years agoDEVEL15-windows-nsis-vs2008-runtime-20080715
Asanka Herath [Wed, 16 Jul 2008 00:59:33 +0000 (00:59 +0000)]
DEVEL15-windows-nsis-vs2008-runtime-20080715

LICENSE MIT

Add support for VS2008

Use MSI runtime installation package instead of EXE package

Cleanup runtime from the correct directory

(cherry picked from commit 447915ce6a6f07a84affc22611287fe00b057534)

17 years agoDEVEL15-windows-wix-html-cmdref-20080715
Jeffrey Altman [Tue, 15 Jul 2008 22:19:34 +0000 (22:19 +0000)]
DEVEL15-windows-wix-html-cmdref-20080715

LICENSE MIT

Add new files to the installer.

(cherry picked from commit 66754898d93c1b7c2862dd78801f8b14b5e74e72)

17 years agoDEVEL15-dafs-avoid-assert-while-moving-volumes-20080714
Tom Keiser [Mon, 14 Jul 2008 14:42:30 +0000 (14:42 +0000)]
DEVEL15-dafs-avoid-assert-while-moving-volumes-20080714

LICENSE IPL10

The volume state is perfectly consistent. FSYNC_NEEDVOLUME (and the
other state in the pending_vol_op object) is perfectly normal -- it
simply means the volser has exclusive access to the volume for the
purposes of cloning. The bug is that during the DAFS development, I
changed the semantics of the VGetVolume interface without updating the
control logic in afsfileprocs accordingly:

In 1_4_x:
vp->specialstatus != 0 results in returning vp with nUsers incremented
and *ec = vp->sepcialstatus

In DAFS:
V_AttachState(vp) == VOL_STATE_UNATTACHED results in returning a NULL
vp. Since (vp->specialstatus != 0), *ec = vp->specialstatus.

The net result is we need to modify the VBUSY logic in CheckVnode().

(cherry picked from commit 5c762d3b7672a88fcf4df85e919ac11be7946d4f)

17 years agoDEVEL15-windows-smb-misc-two-20080714
Jeffrey Altman [Mon, 14 Jul 2008 14:38:23 +0000 (14:38 +0000)]
DEVEL15-windows-smb-misc-two-20080714

LICENSE MIT

Fix the assignment of SMB_ATTR_DIRECTORY.  Apply it to the correct field
name.

(cherry picked from commit 03fb36bd534a1ff13340e8d322c1e13eeef8ef43)

17 years agoDEVEL15-windows-smb-misc-20080714
Jeffrey Altman [Mon, 14 Jul 2008 14:12:03 +0000 (14:12 +0000)]
DEVEL15-windows-smb-misc-20080714

LICENSE MIT

Fix declaration of smb_ParseStringBuf to be consistent with
the prototype.

If the fileType of a cm_scache_t is unknown and if the vnode is odd,
then set the SMB_ATTR_DIRECTORY flag when reporting the DOS Extended
Attributes.

Fix the log message in smb_FindCMUserByName() to indicate "found"
instead of "not found".

(cherry picked from commit 077c788275bff6b17e5ba44d487135f74dbedaee)

17 years agoDEVEL15-windows-btree-enum-bulk-stat-20080714
Jeffrey Altman [Mon, 14 Jul 2008 14:01:31 +0000 (14:01 +0000)]
DEVEL15-windows-btree-enum-bulk-stat-20080714

LICENSE MIT

Refactor cm_TryBulkStat() to permit BulkStat RPCs to be executed
for lists of entries obtained either from the cm_dir structures
or a btree enumeration.   Add cm_BPlusDirEnumBulkStat() which
takes an enumeration object and performs a bulk status rpc on
every entry in the enumeration without advancing the enumeration
state.

(cherry picked from commit 33429756c14ed006566d01ad4ee070a4c040b424)

17 years agoDEVEL15-readme-devel-doxygen-20080713
Russ Allbery [Mon, 14 Jul 2008 06:54:57 +0000 (06:54 +0000)]
DEVEL15-readme-devel-doxygen-20080713

LICENSE IPL10

Document the preferred Doxygen comment style.

(cherry picked from commit faeb953142a15866f0a35e908114a2443f0ac703)

17 years agoDEVEL15-readme-fix-demand-attach-spelling-20080713
Russ Allbery [Mon, 14 Jul 2008 06:51:01 +0000 (06:51 +0000)]
DEVEL15-readme-fix-demand-attach-spelling-20080713

LICENSE IPL10

Fix the punctuation of the --enable-demand-attach-fs option.

(cherry picked from commit f49395a30adef98cb0deaea128393448565d364f)

17 years agoDEVEL15-readme-improvements-20080713
Russ Allbery [Mon, 14 Jul 2008 06:40:19 +0000 (06:40 +0000)]
DEVEL15-readme-improvements-20080713

LICENSE IPL10

Significant improvements to README, including:

- Add documentation of (nearly) all of the configure options.
- Update the platform list to reflect current reality.
- Update the HP-UX header download instructions for the current web site.
- Fiddle with formatting and wording in a few places.

(cherry picked from commit 1ed9e36ffc34fa5ea41b72131a222d0ab8195b54)

17 years agoDEVEL15-threaded-ubik-cvsignore-20080713
Russ Allbery [Mon, 14 Jul 2008 05:15:28 +0000 (05:15 +0000)]
DEVEL15-threaded-ubik-cvsignore-20080713

LICENSE BSD

Add .cvsignore patterns for threaded ubik builds.

(cherry picked from commit db9f59e9be12f791c122c4b8c6a8b8ecca8ce239)

17 years agoDEVEL15-autoconf-help-text-20080713
Russ Allbery [Mon, 14 Jul 2008 05:06:08 +0000 (05:06 +0000)]
DEVEL15-autoconf-help-text-20080713

LICENSE IPL10

Use AS_HELP_STRING for every AC_ARG_WITH invokation and add proper quoting
to all of them.  Based heavily on a patch by Simon Wilkinson, but with
less indentation and more quoting.

(cherry picked from commit 2b7d9ab5d7c7947b1a45974d9a3252ce7e203a3b)

17 years agoDEVEL15-man-page-html-index-underscores-20080713
Russ Allbery [Mon, 14 Jul 2008 03:28:00 +0000 (03:28 +0000)]
DEVEL15-man-page-html-index-underscores-20080713

LICENSE BSD

Remove underscores from the anchor in the index for all section 5 manual
pages.

(cherry picked from commit 6a322e4eb7e79896e3322e0ace16a6ed99668162)

17 years agoDEVEL15-html-man-index-links-20060802
Russ Allbery [Mon, 14 Jul 2008 02:59:09 +0000 (02:59 +0000)]
DEVEL15-html-man-index-links-20060802

Add links back to the index at the top and bottom of each generated page.

(cherry picked from commit b57f675bc3364c17fccc58ed56307f91213d3b3d)

17 years agoDEVEL15-man-page-html-generation-hack-20080713
Russ Allbery [Mon, 14 Jul 2008 02:54:18 +0000 (02:54 +0000)]
DEVEL15-man-page-html-generation-hack-20080713

LICENSE BSD

Pod::Simple::Search ignores every POD file that doesn't "look right," which
means it skips files containing a period (like krb.conf.pod) unless you set
a search option.  Pod::Simple::HTMLBatch has no way to set search options.

Apply a truly horrible hack to get around this.

(cherry picked from commit 2a92f43987cd08dc0134b775e0d118894d22d3e5)

17 years agoDEVEL15-docs-ticket-104110-20080713
Jason Edgecombe [Mon, 14 Jul 2008 00:53:50 +0000 (00:53 +0000)]
DEVEL15-docs-ticket-104110-20080713

LICENSE BSD
FIXES 104110

add krb.conf

update CellServDB to discuss AFSDB DNS records

(cherry picked from commit 298fb5ce52f3f5296c24ed1300287b5fa5870a3c)

17 years agoDEVEL15-docs-max-part-size-20080713
Jason Edgecombe [Mon, 14 Jul 2008 00:37:37 +0000 (00:37 +0000)]
DEVEL15-docs-max-part-size-20080713

LICENSE BSD
FIXES 86677

update discussion of max partition size.

(cherry picked from commit c766e74fd63a58e714d7b15ef1abfbc48b2a5a85)

17 years agoDEVEL15-man-page-fs-read-not-list-20080711
Jeffrey Altman [Sat, 12 Jul 2008 06:57:59 +0000 (06:57 +0000)]
DEVEL15-man-page-fs-read-not-list-20080711

LICENSE MIT

 - fs diskfree
 - fs examine
 - fs listquota
 - fs quota

require read permission not list for the root directory
of the volume and list permission for the preceding path.

(cherry picked from commit df9f2455fbe34ac105179797f85aacc63a8b8da8)

17 years agoDEVEL15-windows-cm_req-layer-purity-20080711
Jeffrey Altman [Fri, 11 Jul 2008 23:27:01 +0000 (23:27 +0000)]
DEVEL15-windows-cm_req-layer-purity-20080711

LICENSE MIT

Ensure that the cm_req_t object is allocated and initialized at the
SMB layer for all incoming requests.  This is done for two reasons:

1. ensure that request start time is consistent across the lifetime
   of the request

2. permit the request object to be used to carry a flag indicating
   the source of the request.  This will permit different timeout
   algorithms to be used for SMB vs RDR in the future.

(cherry picked from commit 30ba65bc5c216f73f89acf2aa97a4287a4de1f1f)

17 years agoDEVEL15-butc-xbsa-update-20080711
Todd DeSantis [Fri, 11 Jul 2008 10:50:37 +0000 (10:50 +0000)]
DEVEL15-butc-xbsa-update-20080711

LICENSE IPL10

update xbsa support for current tsm

(cherry picked from commit 5baf817a31e72d85415222af5c3dee70ed1f6bd3)

17 years agoDEVEL15-windows-install-loopback-ddk-20080710
Jeffrey Altman [Thu, 10 Jul 2008 19:28:26 +0000 (19:28 +0000)]
DEVEL15-windows-install-loopback-ddk-20080710

LICENSE MIT

Add support for dynamically determining which ddk include
path should be used.  The NTDDKDIR variable used to be set
to the specific directory in which netcfgx.h was located.
Now it is set to the top-level of the DDK install tree.
The specific directory that contains netcfgx.h varies based
upon whether the DDK is 3790.1830 or 6000.  Test for file
existence and specify the one that works.

(cherry picked from commit 4f5b808414c958e7629c83f93d610b57c54274ac)

17 years agoDEVEL15-dafs-update-exclusive-states-20080710
Tom Keiser [Thu, 10 Jul 2008 19:14:54 +0000 (19:14 +0000)]
DEVEL15-dafs-update-exclusive-states-20080710

LICENSE IPL10

VOL_STATE_SALVSYNC_REQ is a mutally exclusive state. don't allow other things
to attempt to trigger that state when an exclusive state is already present

(cherry picked from commit f52f1522367819712ea678b4e3cdf4644571fc57)

17 years agoDEVEL15-solaris-nevada-vfsdev-type-20080707
Dale Ghent [Mon, 7 Jul 2008 18:15:58 +0000 (18:15 +0000)]
DEVEL15-solaris-nevada-vfsdev-type-20080707

LICENSE IPL10
FIXES 105495

in nevada, struct vfsdev_v4 -> vfsdev_t. cope.

(cherry picked from commit acf76ac85f55e268e9a99d12dc89bad4b763038b)

17 years agoDEVEL15-solaris-udp-modname-20080707
Derrick Brashear [Mon, 7 Jul 2008 18:15:10 +0000 (18:15 +0000)]
DEVEL15-solaris-udp-modname-20080707

LICENSE IPL10

older solaris 10 lacked this

(cherry picked from commit 078f966e6293504dc7fd0a7c6b49997b6739be71)

17 years agoDEVEL15-linux-revalidate-renames-correctly-20080707
Chas Williams [Mon, 7 Jul 2008 17:53:59 +0000 (17:53 +0000)]
DEVEL15-linux-revalidate-renames-correctly-20080707

LICENSE IPL10
FIXES 74672

when renaming causes a dentry to be newer than its parent we handled it
incorrectly. zero the d_time to force correct evaluation to happen.

(cherry picked from commit 9f3629b018f9d25b205f911464789ed0a14103b4)

17 years agoDEVEL15-rhel3-disable-fedorakmod-20080707
Simon Wilkinson [Mon, 7 Jul 2008 17:42:29 +0000 (17:42 +0000)]
DEVEL15-rhel3-disable-fedorakmod-20080707

LICENSE IPL10
FIXES 102673

if we're building for 2.4.x we need to disable fedorakmod. do so here in our
packaging.

(cherry picked from commit 9946c027a33b89cdf128748b9fd3000b31bee48f)

17 years agoDEVEL15-windows-pioctl-debugging-20080705
Jeffrey Altman [Sat, 5 Jul 2008 16:51:22 +0000 (16:51 +0000)]
DEVEL15-windows-pioctl-debugging-20080705

LICENSE MIT
FIXES 105867

Replace multiple calls to IoctlDebug() within the same function
with a variable.

Save/restore more errno values.

(cherry picked from commit e5e9463568bcbf9aa574e15cf47d231fef44685b)

17 years agoDEVEL15-windows-pioctl-debugging-20080704
Jeffrey Altman [Sat, 5 Jul 2008 07:35:35 +0000 (07:35 +0000)]
DEVEL15-windows-pioctl-debugging-20080704

LICENSE MIT
FIXES 105867

David Botsch reports that when IoctlDebug is active, failures of
fprintf overwrite 'errno'.  Save and restore 'errno' around the
fprintf calls.

(cherry picked from commit 44cd9c4e4cf6ef468e7e5880c8cb71ed277085c7)

17 years agoDEVEL15-windows-afskfw-20080704
Jeffrey Altman [Sat, 5 Jul 2008 07:27:46 +0000 (07:27 +0000)]
DEVEL15-windows-afskfw-20080704

LICENSE MIT

if ktc_GetToken() fails, do not switch to krb524, just fail

(cherry picked from commit 99471963b3a035898419ace7bfafb24de464714c)

17 years agoDEVEL15-linux-probe-syscall-table-again-20080703
Benjamin Bennett [Thu, 3 Jul 2008 21:33:12 +0000 (21:33 +0000)]
DEVEL15-linux-probe-syscall-table-again-20080703

LICENSE IPL10
FIXES 105457

move the init_mm ifdef down far enough that it's effective and we actually
probe to be able to hook syscall table

(cherry picked from commit a4e3fb21f0fd8f02ffd2c01b4d39ac55cd3474b1)

17 years agoDEVEL15-windows-dead-vc-cleanup-take-two-20080703
Jeffrey Altman [Thu, 3 Jul 2008 06:54:47 +0000 (06:54 +0000)]
DEVEL15-windows-dead-vc-cleanup-take-two-20080703

LICENSE MIT

Prevent an infinite recursion when attempting to cleanup a previously
dead vc.

(cherry picked from commit be32aef3831529f30f59088be5ea2060b55a95f6)

17 years agoDEVEL15-windows-config-ntmakefile-i386_w2k-codesign-20080702
Jeffrey Altman [Thu, 3 Jul 2008 02:25:45 +0000 (02:25 +0000)]
DEVEL15-windows-config-ntmakefile-i386_w2k-codesign-20080702

LICENSE MIT

no underscore prepending CODESIGN_USERLAND macro

(cherry picked from commit 08974551cb5257caea7315bcf726e0dba1a4d052)

17 years agoDEVEL15-windows-config-version-20080702
Jeffrey Altman [Thu, 3 Jul 2008 00:01:50 +0000 (00:01 +0000)]
DEVEL15-windows-config-version-20080702

LICENSE MIT

Add AFSPRODUCT_VERSION to the AFS_component_version_number.h files

Update copyright info and add underscores to version strings in rc files

(cherry picked from commit 41927c3cbf068f71c2ef5f880f21a459477c62a0)

17 years agoDEVEL15-windows-code-signing-20080702
Jeffrey Altman [Wed, 2 Jul 2008 13:48:01 +0000 (13:48 +0000)]
DEVEL15-windows-code-signing-20080702

LICENSE MIT

Add code signing with signtool.exe to the build process.
If all three of the required CODESIGN_xxxx environment
variables are defined, signtool will be used to sign each
exe, dll, and installer as they are built.

The three environment variables are:

  CODESIGN_DESC = <description of application>
  CODESIGN_TIMESTAMP = <url of certificate authority timestamp server>
  CODESIGN_URL = <end user help URL>

The default signing certificate is the one that will be used by
signtool.  If these environment variables are not defined, code
signing will be skipped.

(cherry picked from commit 65bf7cdb6d20a1ff4e71c79347782aa3b5f1e3f8)

17 years agoDEVEL15-linux-packaging-module-build-20080701
Simon Wilkinson [Tue, 1 Jul 2008 23:51:51 +0000 (23:51 +0000)]
DEVEL15-linux-packaging-module-build-20080701

LICENSE IPL10

Add --with-linux-kernel-packaging configure flag which disables building
multiple kernels for different MP flavors, sets the kernel module name to
openafs.ko with no version, and installs the modules into the standard
Linux location.

(cherry picked from commit 1c96127e37c0ec41c7a30ea3e4aa68f3cc8a24f6)

17 years agoDEVEL15-libuafs-fixes-20080701
Andrew Deason [Tue, 1 Jul 2008 23:28:35 +0000 (23:28 +0000)]
DEVEL15-libuafs-fixes-20080701

LICENSE IPL10
FIXES 104698, 104699, 104305

make cellname get init'd right. correct startup argument order to match
what afsd does. call lookupname correctly (when did this break?)

at the same time, move the lookupname define out of afs_osi.h and into each
osi_machdep.h

(cherry picked from commit c61a8f37c9957034961aed8abc2a1adb046247d3)

17 years agoDEVEL15-redhat-build-updates-20080701
Andrew Deason [Tue, 1 Jul 2008 20:41:25 +0000 (20:41 +0000)]
DEVEL15-redhat-build-updates-20080701

LICENSE IPL10
FIXES 105231

update specfile for new manpages.
update patch for 1.5.x/head
update makesrpm to quote some arguments to system so perl doesn't eat them

some rewriting from shadow@dementia.org including the patch update

(cherry picked from commit 0d343077ac1ca8bd35921de2a2b19cac4eb75496)

17 years agoDEVEL15-volutil-partitionname2-r-return-value-20080701
Derrick Brashear [Tue, 1 Jul 2008 19:33:38 +0000 (19:33 +0000)]
DEVEL15-volutil-partitionname2-r-return-value-20080701

LICENSE IPL10

return 0 and not tbuffer on success since tbuffer is already returned via
a pointer

(cherry picked from commit 19551ae3a541644013f6e9e92d9354ec14cbc00e)

17 years agoDEVEL15-more-cpp-fixes-20080701
Russ Allbery [Tue, 1 Jul 2008 19:15:14 +0000 (19:15 +0000)]
DEVEL15-more-cpp-fixes-20080701

LICENSE BSD

Use PATH_CPP instead of CPP everywhere and always redirect the output
instead of assuming that it will write to a file.  Hopefully this is the
least common denominator across all systems, although it still isn't
fully correct for systems that have no separate cpp binary.

(cherry picked from commit c733e2e07aeb0cc981d53d843a1ffb787f43ed64)

17 years agoDEVEL15-linux-nfstrans-updates-20080701
Derrick Brashear [Tue, 1 Jul 2008 18:45:13 +0000 (18:45 +0000)]
DEVEL15-linux-nfstrans-updates-20080701

LICENSE IPL10
FIXES 105019

make libuafs also include afs_warn.c

(cherry picked from commit fb3490cdea7e45dbac4a8aa820f35bf1723af764)