openafs.git
15 years agorx-buffer-allocation-20080812
Jeffrey Altman [Tue, 12 Aug 2008 19:39:59 +0000]
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()

15 years agowindows-stack-overruns-20080811
Jeffrey Altman [Tue, 12 Aug 2008 05:29:52 +0000]
windows-stack-overruns-20080811

LICENSE MIT

prevent stack overruns

15 years agowindows-fs-mkmount-20080811
Jeffrey Altman [Tue, 12 Aug 2008 00:54:48 +0000]
windows-fs-mkmount-20080811

LICENSE MIT

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

15 years agowindows-make-nls-win2000-compat-20080809
Jeffrey Altman [Sun, 10 Aug 2008 01:00:59 +0000]
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.

15 years agowindows-freelance-deadlock-20080809
Jeffrey Altman [Sat, 9 Aug 2008 23:31:09 +0000]
windows-freelance-deadlock-20080809

LICENSE MIT

avoid a deadlock between cm_freelanceLock and cm_scacheLock

15 years agowindows-rx-udpbufsize-20080809
Jeffrey Altman [Sat, 9 Aug 2008 05:52:36 +0000]
windows-rx-udpbufsize-20080809

LICENSE MIT

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

15 years agowindows-smb-skip-nuls-20080809
Jeffrey Altman [Sat, 9 Aug 2008 05:48:10 +0000]
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.

15 years agowindows-lock-corrections-20080808
Jeffrey Altman [Fri, 8 Aug 2008 17:43:37 +0000]
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.

15 years agowindows-max-cell-name-20080807
Jeffrey Altman [Thu, 7 Aug 2008 14:46:11 +0000]
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.

15 years agowindows-misc-20080806
Jeffrey Altman [Thu, 7 Aug 2008 06:35:36 +0000]
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.

15 years agowindows-cell-name-length-consistency-two-20080806
Jeffrey Altman [Wed, 6 Aug 2008 21:25:43 +0000]
windows-cell-name-length-consistency-two-20080806

LICENSE MIT

fix what I broke

15 years agowindows-afssw-20080806
Jeffrey Altman [Wed, 6 Aug 2008 06:10:14 +0000]
windows-afssw-20080806

LICENSE MIT

prevent buffer underrun and overrun errors

15 years agowindows-cell-name-length-consistency-20080806
Jeffrey Altman [Wed, 6 Aug 2008 06:09:34 +0000]
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

15 years agowindows-getaccessrights-20080805
Jeffrey Altman [Tue, 5 Aug 2008 16:45:35 +0000]
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.

15 years agowindows-ioctl-make-submount-20080802
Jeffrey Altman [Sun, 3 Aug 2008 04:28:32 +0000]
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().

15 years agowindows-afsconfig-header-20080802
Jeffrey Altman [Sat, 2 Aug 2008 20:46:14 +0000]
windows-afsconfig-header-20080802

LICENSE MIT

Enable Bos Restricted mode for Windows

15 years agowindows-smb-dir-search-20080802
Jeffrey Altman [Tue, 5 Aug 2008 15:29:14 +0000]
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.

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

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 agowindows-smb-dir-search-20080801
Jeffrey Altman [Sat, 2 Aug 2008 05:56:57 +0000]
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

15 years agowindows-scache-deadlock-20080801
Jeffrey Altman [Fri, 1 Aug 2008 22:35:06 +0000]
windows-scache-deadlock-20080801

LICENSE MIT

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

15 years agowindows-smb-dumpvars-20080801
Jeffrey Altman [Fri, 1 Aug 2008 22:01:49 +0000]
windows-smb-dumpvars-20080801

LICENSE MIT

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

15 years agowindows-smb-warnings-20080801
Jeffrey Altman [Fri, 1 Aug 2008 14:36:54 +0000]
windows-smb-warnings-20080801

LICENSE MIT

cast away a number of compile time data size warnings

15 years agowindows-smb-vc-refcount-debugging-20080801
Jeffrey Altman [Fri, 1 Aug 2008 14:30:21 +0000]
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.

15 years agowindows-smb-dead-vc-gc-on-head-20080801
Jeffrey Altman [Fri, 1 Aug 2008 14:14:50 +0000]
windows-smb-dead-vc-gc-on-head-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.

(This commit was committed incorrectly to the 1-5
branch first.  delta name on the head was modified
to avoid the delta name collision.)

15 years agowindows-osilog-20080731
Jeffrey Altman [Fri, 1 Aug 2008 05:22:08 +0000]
windows-osilog-20080731

LICENSE MIT

increase the number of parms from 4 to 5 for osi_Log

15 years agowindows-ioctl-create-mount-point-validate-volume-20080731
Jeffrey Altman [Thu, 31 Jul 2008 18:01:12 +0000]
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".

15 years agowindows-wix-custom-20080731
Jeffrey Altman [Thu, 31 Jul 2008 13:43:00 +0000]
windows-wix-custom-20080731

LICENSE MIT

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

15 years agowindows-handle-vl_badname-20080731
Jeffrey Altman [Thu, 31 Jul 2008 13:37:29 +0000]
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.

15 years agowindows-volume-recycling-race-condition-20080731
Jeffrey Altman [Thu, 31 Jul 2008 05:45:44 +0000]
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.

15 years agowindows-buf-clean-error-handling-20080731
Jeffrey Altman [Thu, 31 Jul 2008 05:39:29 +0000]
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.

15 years agowindows-remove-unnecessary-malloc-include-20080731
Jeffrey Altman [Thu, 31 Jul 2008 05:32:57 +0000]
windows-remove-unnecessary-malloc-include-20080731

LICENSE MIT

remove unnecessary #include <malloc.h>

15 years agowindows-stat-resource-files-20080730
Jeffrey Altman [Wed, 30 Jul 2008 23:16:24 +0000]
windows-stat-resource-files-20080730

LICENSE MIT

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

15 years agoviced-write-perm-grants-read-lock-20080730
Jeffrey Altman [Wed, 30 Jul 2008 21:00:21 +0000]
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.

15 years agowindows-buf-overquota-20080728
Jeffrey Altman [Tue, 29 Jul 2008 03:54:34 +0000]
windows-buf-overquota-20080728

LICENSE MIT

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

15 years agowindows-large-files-20080728
Jeffrey Altman [Mon, 28 Jul 2008 23:57:24 +0000]
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.

15 years agosalvager-avoid-directory-issues-and-mark-volumes-busy-20080728
Hartmut Reuter [Mon, 28 Jul 2008 13:58:30 +0000]
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

15 years agowindows-ioctl-prefix-data-20080726
Jeffrey Altman [Sun, 27 Jul 2008 03:43:14 +0000]
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.

15 years agowindows-build-20080725
Jeffrey Altman [Fri, 25 Jul 2008 21:25:55 +0000]
windows-build-20080725

LICENSE MIT

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

15 years agowindows-nsis-vc-runtime-install-20080725
Jeffrey Altman [Fri, 25 Jul 2008 20:43:36 +0000]
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.

15 years agowindows-buf-setdirty-20080724
Jeffrey Altman [Thu, 24 Jul 2008 20:32:58 +0000]
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.

15 years agowindows-cm-makedir-20080724
Jeffrey Altman [Thu, 24 Jul 2008 18:54:53 +0000]
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.

15 years agowindows-cm-req-smb-20080723
Jeffrey Altman [Wed, 23 Jul 2008 22:40:34 +0000]
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.

15 years agowindows-cm-rename-debugging-20080723
Jeffrey Altman [Wed, 23 Jul 2008 22:24:51 +0000]
windows-cm-rename-debugging-20080723

LICENSE MIT

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

15 years agowindows-btree-enum-20080723
Jeffrey Altman [Wed, 23 Jul 2008 22:19:19 +0000]
windows-btree-enum-20080723

LICENSE MIT

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

15 years agowindows-volume-deadlock-20080722
Jeffrey Altman [Wed, 23 Jul 2008 05:55:36 +0000]
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.

15 years agowindows-build-system-20080722
Jeffrey Altman [Tue, 22 Jul 2008 16:01:22 +0000]
windows-build-system-20080722

LICENSE MIT

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

15 years agowindows-volume-vlgetaddrs-deadlock-20080721
Jeffrey Altman [Tue, 22 Jul 2008 07:42:20 +0000]
windows-volume-vlgetaddrs-deadlock-20080721

LICENSE MIT

A missing tilde makes a huge difference.

15 years agowindows-more-rxconnp-20080721
Jeffrey Altman [Mon, 21 Jul 2008 21:55:06 +0000]
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.

15 years agowindows-cm_conn-20080721
Jeffrey Altman [Mon, 21 Jul 2008 19:34:05 +0000]
windows-cm_conn-20080721

LICENSE MIT

callp -> rxconnp

15 years agowindows-callp-to-rxcallp-20080721
Jeffrey Altman [Mon, 21 Jul 2008 17:18:41 +0000]
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.

15 years agowindows-smb-ioctl-setacl-20080721
Jeffrey Altman [Mon, 21 Jul 2008 10:19:26 +0000]
windows-smb-ioctl-setacl-20080721

LICENSE MIT

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

15 years agowindows-volume-vlgetaddrs-deadlock-20080719
Jeffrey Altman [Sat, 19 Jul 2008 15:47:40 +0000]
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.

15 years agoalways-wrap-vos-ctime-20080718
Russ Allbery [Sat, 19 Jul 2008 07:41:06 +0000]
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.

15 years agokill-ubik-pthread-env-20080718
Russ Allbery [Sat, 19 Jul 2008 07:11:05 +0000]
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.

15 years agowindows-volume-vlgetaddrs-deadlock-20080718
Jeffrey Altman [Sat, 19 Jul 2008 06:58:02 +0000]
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.

15 years agosuppress-cellconfig-warnings-20080718
Russ Allbery [Sat, 19 Jul 2008 06:44:49 +0000]
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.

15 years agomore-no-unconditional-pthreaded-ubik-20080718
Russ Allbery [Sat, 19 Jul 2008 06:42:23 +0000]
more-no-unconditional-pthreaded-ubik-20080718

LICENSE BSD

More directories should be conditional on pthreaded ubik.

15 years agono-unconditional-pthreaded-ubik-20080718
Russ Allbery [Sat, 19 Jul 2008 04:27:33 +0000]
no-unconditional-pthreaded-ubik-20080718

LICENSE BSD

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

15 years agodiscon-prototype-correction-20080718
Simon Wilkinson [Fri, 18 Jul 2008 15:54:22 +0000]
discon-prototype-correction-20080718

LICENSE IPL10

correct prototype for disconnected afs

15 years agoman-page-fileserver-long-line-20080717
Russ Allbery [Fri, 18 Jul 2008 07:14:12 +0000]
man-page-fileserver-long-line-20080717

LICENSE BSD

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

15 years agodemand-attach-vos-install-location-20080717
Russ Allbery [Fri, 18 Jul 2008 01:21:44 +0000]
demand-attach-vos-install-location-20080717

LICENSE IPL10

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

15 years agowindows-nls-zero-length-input-20080716
Asanka Herath [Wed, 16 Jul 2008 16:22:31 +0000]
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.

15 years agowindows-set-rx-dead-time-20080715
Jeffrey Altman [Wed, 16 Jul 2008 05:43:06 +0000]
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.

15 years agosoftsig-structure-handling-20080716
Derrick Brashear [Wed, 16 Jul 2008 05:25:09 +0000]
softsig-structure-handling-20080716

LICENSE IPL10

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

15 years agovolser-reclone-bring-online-before-giveback-20080716
Derrick Brashear [Wed, 16 Jul 2008 05:15:44 +0000]
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

15 years agowindows-nsis-vs2008-runtime-20080715
Asanka Herath [Wed, 16 Jul 2008 00:58:28 +0000]
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

15 years agowindows-wix-html-cmdref-20080715
Jeffrey Altman [Tue, 15 Jul 2008 22:17:37 +0000]
windows-wix-html-cmdref-20080715

LICENSE MIT

Add new files to the installer.

15 years agodafs-avoid-assert-while-moving-volumes-20080714
Tom Keiser [Mon, 14 Jul 2008 14:37:58 +0000]
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().

15 years agowindows-smb-misc-two-20080714
Jeffrey Altman [Mon, 14 Jul 2008 14:36:44 +0000]
windows-smb-misc-two-20080714

LICENSE MIT

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

15 years agowindows-smb-misc-20080714
Jeffrey Altman [Mon, 14 Jul 2008 14:10:19 +0000]
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".

15 years agowindows-btree-enum-bulk-stat-20080714
Jeffrey Altman [Mon, 14 Jul 2008 13:59:48 +0000]
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.

15 years agoreadme-devel-doxygen-20080713
Russ Allbery [Mon, 14 Jul 2008 06:53:14 +0000]
readme-devel-doxygen-20080713

LICENSE IPL10

Document the preferred Doxygen comment style.

15 years agoreadme-fix-demand-attach-spelling-20080713
Russ Allbery [Mon, 14 Jul 2008 06:46:27 +0000]
readme-fix-demand-attach-spelling-20080713

LICENSE IPL10

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

15 years agoreadme-improvements-20080713
Russ Allbery [Mon, 14 Jul 2008 06:35:04 +0000]
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.

15 years agothreaded-ubik-cvsignore-20080713
Russ Allbery [Mon, 14 Jul 2008 05:12:46 +0000]
threaded-ubik-cvsignore-20080713

LICENSE BSD

Add .cvsignore patterns for threaded ubik builds.

15 years agoautoconf-help-text-20080713
Russ Allbery [Mon, 14 Jul 2008 05:05:46 +0000]
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.

15 years agoman-page-html-index-underscores-20080713
Russ Allbery [Mon, 14 Jul 2008 03:27:00 +0000]
man-page-html-index-underscores-20080713

LICENSE BSD

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

15 years agoman-page-html-generation-hack-20080713
Russ Allbery [Mon, 14 Jul 2008 02:45:14 +0000]
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.

15 years agodocs-ticket-104110-20080713
Jason Edgecombe [Mon, 14 Jul 2008 00:51:35 +0000]
docs-ticket-104110-20080713

LICENSE BSD
FIXES 104110

add vos clone and vos shadow to overall list

====================
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 BSD
FIXES 104110

add krb.conf

update CellServDB to discuss AFSDB DNS records

15 years agodocs-max-part-size-20080713
Jason Edgecombe [Mon, 14 Jul 2008 00:33:59 +0000]
docs-max-part-size-20080713

LICENSE BSD
FIXES 86677

remove discussion of max partition size now that 1.5 has a limit of 2^64 KB.

add discussion of techinical nature of fs minidump on windows.

====================
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 BSD
FIXES 86677

update discussion of max partition size.

15 years agoman-page-fs-read-not-list-20080711
Jeffrey Altman [Sat, 12 Jul 2008 06:54:58 +0000]
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.

15 years agowindows-cm_req-layer-purity-20080711
Jeffrey Altman [Fri, 11 Jul 2008 23:25:21 +0000]
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.

15 years agobutc-xbsa-update-20080711
Todd DeSantis [Fri, 11 Jul 2008 10:49:33 +0000]
butc-xbsa-update-20080711

LICENSE IPL10

update xbsa support for current tsm

15 years agowindows-install-loopback-ddk-20080710
Jeffrey Altman [Thu, 10 Jul 2008 19:17:44 +0000]
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.

15 years agodafs-update-exclusive-states-20080710
Tom Keiser [Thu, 10 Jul 2008 19:14:40 +0000]
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

15 years agosolaris-udp-modname-20080707
Derrick Brashear [Mon, 7 Jul 2008 18:14:58 +0000]
solaris-udp-modname-20080707

LICENSE IPL10

older solaris 10 lacked this

15 years agosolaris-nevada-vfsdev-type-20080707
Dale Ghent [Mon, 7 Jul 2008 18:14:26 +0000]
solaris-nevada-vfsdev-type-20080707

LICENSE IPL10
FIXES 105495

in nevada, struct vfsdev_v4 -> vfsdev_t. cope.

15 years agolinux-revalidate-renames-correctly-20080707
Chas Williams [Mon, 7 Jul 2008 17:53:48 +0000]
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.

15 years agorhel3-disable-fedorakmod-20080707
Simon Wilkinson [Mon, 7 Jul 2008 17:42:14 +0000]
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.

15 years agowindows-pioctl-debugging-20080705
Jeffrey Altman [Sat, 5 Jul 2008 16:48:36 +0000]
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.

15 years agowindows-pioctl-debugging-20080704
Jeffrey Altman [Sat, 5 Jul 2008 07:33:38 +0000]
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.

15 years agowindows-afskfw-20080704
Jeffrey Altman [Sat, 5 Jul 2008 07:26:22 +0000]
windows-afskfw-20080704

LICENSE MIT

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

15 years agolinux-probe-syscall-table-again-20080703
Benjamin Bennett [Thu, 3 Jul 2008 21:32:49 +0000]
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

15 years agowindows-dead-vc-cleanup-take-two-20080703
Jeffrey Altman [Thu, 3 Jul 2008 06:53:10 +0000]
windows-dead-vc-cleanup-take-two-20080703

LICENSE MIT

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

15 years agowindows-config-ntmakefile-i386_w2k-codesign-20080702
Jeffrey Altman [Thu, 3 Jul 2008 02:24:54 +0000]
windows-config-ntmakefile-i386_w2k-codesign-20080702

LICENSE MIT

no underscore prepending CODESIGN_USERLAND macro

15 years agowindows-config-version-20080702
Jeffrey Altman [Thu, 3 Jul 2008 00:00:37 +0000]
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

15 years agowindows-code-signing-20080702
Jeffrey Altman [Wed, 2 Jul 2008 13:41:07 +0000]
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.

15 years agolinux-packaging-module-build-20080701
Simon Wilkinson [Tue, 1 Jul 2008 23:44:14 +0000]
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.

15 years agolibuafs-fixes-20080701
Andrew Deason [Tue, 1 Jul 2008 23:28:26 +0000]
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

15 years agoredhat-build-updates-20080701
Andrew Deason [Tue, 1 Jul 2008 20:41:13 +0000]
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

15 years agovolutil-partitionname2-r-return-value-20080701
Derrick Brashear [Tue, 1 Jul 2008 19:33:26 +0000]
volutil-partitionname2-r-return-value-20080701

LICENSE IPL10

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