openafs.git
15 years agogeneric-inline-20080924
Simon Wilkinson [Wed, 24 Sep 2008 22:34:19 +0000]
generic-inline-20080924

LICENSE IPL10

move static_inline macro to generic location

15 years agorx-dpf-clarify-20080924
Simon Wilkinson [Wed, 24 Sep 2008 22:31:54 +0000]
rx-dpf-clarify-20080924

LICENSE IPL10

rework dpf macro slightly so there are no trailing ; issues

15 years agodisconnected-rw-20080922
Dragos Tatulea [Mon, 22 Sep 2008 14:36:16 +0000]
disconnected-rw-20080922

LICENSE IPL10
FIXES 114605 114606 114607

add read-write disconnected support

15 years agomacos-panic-decoder-format-fix-20080921
Derrick Brashear [Sun, 21 Sep 2008 14:03:20 +0000]
macos-panic-decoder-format-fix-20080921

LICENSE IPL10

handle new panic format

15 years agowindows-local-dir-updates-20080916
Asanka Herath [Tue, 16 Sep 2008 12:45:22 +0000]
windows-local-dir-updates-20080916

LICENSE MIT

When a local directory update occurs to the directory pages stored
in the dcache, there is no guarrantee that the same modifications
will be made to the cached pages as are being made by the file server.
In the situation that one or more of the cached pages are recycled,
it is not permissible to obtain the missing pages from the file server
without first invalidating the rest of the cached pages.  This is
necessary to prevent mixing of incompatible data representations.

Define a new flag CM_SCACHEFLAG_LOCAL which is used to indicate that
dcache entries were locally modified even though they are not dirty.

As the previous code could have corrupted the contents of the dcache,
bump CM_CONFIG_DATA_VERSION in order to force the rebuilding of the
cache.

Add error CM_ERROR_NOTINCACHE to indicate that a requested directory
page is not present in the cache and will not be created on the fly.

Prefetch all dcache entries for directories and ensure that a consistent
set is being used.

15 years agowindows-dir-search-star-dot-pattern-20080916
Asanka Herath [Tue, 16 Sep 2008 12:32:38 +0000]
windows-dir-search-star-dot-pattern-20080916

LICENSE MIT

Replicate the FAT and NTFS behavior that the "*." pattern should match
all files without an extension.

15 years agowindows-lock-order-20080916
Jeffrey Altman [Tue, 16 Sep 2008 12:26:45 +0000]
windows-lock-order-20080916

LICENSE MIT

do not violate lock order when freeing server reference lists

15 years agowindows-byte-range-locks-20080913
Jeffrey Altman [Sat, 13 Sep 2008 14:51:16 +0000]
windows-byte-range-locks-20080913

LICENSE MIT

Replace the int64 key with a struct because process ids on 64-bit
Windows can be 64-bit when obtained through the redirector interface.

15 years agowindows-vnovol-20080912
Jeffrey Altman [Sat, 13 Sep 2008 05:20:02 +0000]
windows-vnovol-20080912

LICENSE MIT

The cm_serverRef_t list reference counts were undercounting and
prematurely freeing the server lists for volumes that experienced
VNOVOL and VMOVED errors.  cm_Analyze() must release the server
list before forcibly updating the volume location info.  Otherwise,
the list that gets freed is the old one concatenated with the new
one.

Add more trace messages.

15 years agowindows-service-procs-20080912
Jeffrey Altman [Fri, 12 Sep 2008 15:32:23 +0000]
windows-service-procs-20080912

LICENSE MIT

if we are going to use hot threads it would be useful if there were
some additional server threads available to become listeners as
needed.

15 years agoredhat-mockbuild-dksm-20080912
Simon Wilkinson [Fri, 12 Sep 2008 14:07:31 +0000]
redhat-mockbuild-dksm-20080912

LICENSE IPL10

make mockbuild do the dkms rpms also

15 years agowindows-dir-new-pages-20080911
Asanka Herath [Fri, 12 Sep 2008 05:08:00 +0000]
windows-dir-new-pages-20080911

LICENSE MIT

A small patch to permit the directory package to allocate additional
directory pages when adding new entries that do not fit in the pages
that were obtained from the file server.

15 years agowindows-vnovol-20080911
Jeffrey Altman [Thu, 11 Sep 2008 18:24:38 +0000]
windows-vnovol-20080911

LICENSE MIT

Modify MSG_SERVER_REPORTS_VNOVOL to mention that the volume may
have been moved or deleted.

In cm_Analyze(), do not call cm_ForceUpdateVolume() or force a retry
when processing CM_ERROR_NOSUCHVOLUME.  This CM error value is the
result of a VNOVOL already being processed which would have forced
the update.

When a VMOVED or VNOVOL error is received, remove the volume id from
the server's volume list.

If cm_ForceUpdateVolume() returns a failure, do not retry if a
VMOVED or VNOVOL error was received.

Make sure that if a cm_serverRef_t object is marked srv_deleted
that its references not be used.

Now that cm_ForceUpdateVolume() is being called only when processing
VMOVED and VNOVOL errors, permit it to call cm_UpdateVolumeLocation()
immediately.

Refactor cm_CheckOfflineVolume() to reduce code duplication.

15 years agowindows-flush-btrees-20080911
Jeffrey Altman [Thu, 11 Sep 2008 18:09:34 +0000]
windows-flush-btrees-20080911

LICENSE MIT

fs flushall, fs flushvolume, and fs flush should tear down directory
B+ trees so that when the data buffers are re-read from the file server
with the same data version, the B+ trees will be rebuilt.

15 years agowindows-cell-list-validation-20080911
Jeffrey Altman [Thu, 11 Sep 2008 18:03:52 +0000]
windows-cell-list-validation-20080911

LICENSE MIT

correct cell list validation now that the free cell list exists

15 years agowindows-rx-jumbo-20080911
Jeffrey Altman [Thu, 11 Sep 2008 17:59:18 +0000]
windows-rx-jumbo-20080911

LICENSE MIT

Disable rx jumbo by default.  Permit rx jumbo to be enabled with
registry value "RxJumbo" set to 1 or "RxNoJumbo" set to 0.

RxNoJumbo has priority.

15 years agowindows-multi-check-server-20080911
Jeffrey Altman [Thu, 11 Sep 2008 17:49:53 +0000]
windows-multi-check-server-20080911

LICENSE MIT

Permit rx_multi check server to be toggled via a registry setting
at checked prior to each invocation.  "MultiCheckServers".
Default is on.

Remove volume status updates for vldb server status changes.

15 years agoaix-export-build-fix-20080906
Derrick Brashear [Sat, 6 Sep 2008 12:58:39 +0000]
aix-export-build-fix-20080906

LICENSE IPL10

add missing ; to case actions

15 years agooops-sias-dead-20080906
Derrick Brashear [Sat, 6 Sep 2008 12:52:59 +0000]
oops-sias-dead-20080906

LICENSE IPL10

while we should try all the auth modules, sia is tru64 only, so, no...

15 years agosyncserv-syncvldb-manpages-dryrun-20080906
Derrick Brashear [Sat, 6 Sep 2008 12:51:01 +0000]
syncserv-syncvldb-manpages-dryrun-20080906

LICENSE IPL10

make syncserv and syncvldb manpages reflect dryrun option

15 years agowindows-vnovol-20080905
Jeffrey Altman [Sat, 6 Sep 2008 05:24:31 +0000]
windows-vnovol-20080905

LICENSE MIT

force a volume location update upon receipt of a VNOVOL error
in case the volume was moved.  VMOVED is only returned by the file
server if the volume is in the process of being moved.  Once it has
been deleted the file server returns VNOVOL.

15 years agofileserver-sticky-bit-admin-only-20080905
Derrick Brashear [Fri, 5 Sep 2008 17:57:33 +0000]
fileserver-sticky-bit-admin-only-20080905

LICENSE IPL10

do restrict the sticky bit to admins.

15 years agowindows-smb-volname-20080904
Jeffrey Altman [Thu, 4 Sep 2008 21:07:40 +0000]
windows-smb-volname-20080904

LICENSE MIT

Advertise the correct length for the volume name.  Do not include the NUL.

Add more create option values as #defines.

15 years agofileserver-sticky-bit-not-admin-only-20080904
Derrick Brashear [Thu, 4 Sep 2008 20:41:14 +0000]
fileserver-sticky-bit-not-admin-only-20080904

LICENSE IPL10

don't restrict the sticky bit to admins.

15 years agowindows-cell-locking-20080903
Jeffrey Altman [Wed, 3 Sep 2008 22:03:54 +0000]
windows-cell-locking-20080903

LICENSE MIT

fix a lock order issue and protect the timeout and flags field
of cm_cell_t with the mutex instead of the global lock.

15 years agowindows-smb-lock-order-20080903
Jeffrey Altman [Wed, 3 Sep 2008 21:37:00 +0000]
windows-smb-lock-order-20080903

LICENSE MIT

another lock order violation to fix

15 years agoaix61-initial-support-20080903
Niklas Edmundsson [Wed, 3 Sep 2008 19:26:29 +0000]
aix61-initial-support-20080903

LICENSE IPL10
FIXES 113638

aix 6.1 support

15 years agorx-mutex-init-once-20080903
Jeffrey Altman [Wed, 3 Sep 2008 19:07:11 +0000]
rx-mutex-init-once-20080903

LICENSE IPL10
FIXES 114555

because rx_Finalize doesn't clean up, we end up reiniting mutexes. use
pthread_once when not in the kernel.
(kernel does not now call rx_Finalize, ever)

15 years agolinux26-libafs-makefileproto-trust-kbuild-system-no-really-20080903
Derrick Brashear [Wed, 3 Sep 2008 17:59:08 +0000]
linux26-libafs-makefileproto-trust-kbuild-system-no-really-20080903

LICENSE IPL10

if we are really not using COMMON_KERN_CFLAGS and being trusting, let's do so.

15 years agowindows-afsd-dns-env-20080902
Jeffrey Altman [Tue, 2 Sep 2008 23:34:41 +0000]
windows-afsd-dns-env-20080902

LICENSE MIT

Fix the conditionals so that the right thing happens if AFS_AFSDB_ENV
is not defined.

15 years agowindows-fs-setcrypt-auth-20080902
Jeffrey Altman [Tue, 2 Sep 2008 22:25:25 +0000]
windows-fs-setcrypt-auth-20080902

LICENSE MIT

fix parsing and display of fs setcrypt auth

15 years agosmb-string-conversion-20080902
Jeffrey Altman [Tue, 2 Sep 2008 22:20:58 +0000]
smb-string-conversion-20080902

LICENSE MIT

more cases where -1 should be passed in as opposed to the strlen value
when converting between char and wchar forms

15 years agowindows-rxkad-auth-20080902
Jeffrey Altman [Tue, 2 Sep 2008 22:15:36 +0000]
windows-rxkad-auth-20080902

LICENSE MIT

Add ability for users to select rxkad auth only mode.
"fs setcrypt auth".

15 years agowindows-afsd-init-20080902
Jeffrey Altman [Tue, 2 Sep 2008 22:08:24 +0000]
windows-afsd-init-20080902

LICENSE MIT

report state of "Rx Jumbo" and "RxExtraPackets" more often

15 years agowindows-cell-free-list-20080902
Jeffrey Altman [Tue, 2 Sep 2008 21:17:42 +0000]
windows-cell-free-list-20080902

LICENSE MIT

add a free list to the cm_cell_t structure.  if during cm_GetCellGen()
the cm_SearchCellXXX() calls fail, store the allocated cm_cell_t object
on a free list so that it can be reused for the next request.

15 years agowindows-cell-alloc-reversed-20080902
Jeffrey Altman [Tue, 2 Sep 2008 17:34:00 +0000]
windows-cell-alloc-reversed-20080902

LICENSE MIT

The approach taken in windows-cell-alloc-20080902 won't work.

15 years agowindows-cell-alloc-20080902
Jeffrey Altman [Tue, 2 Sep 2008 16:20:13 +0000]
windows-cell-alloc-20080902

LICENSE MIT

Perform the initial cm_SearchCellXXX call using a temporary cm_cell_t
object in case the search fails.

15 years agowindows-smb-free-lsa-response-20080901
Jeffrey Altman [Mon, 1 Sep 2008 13:35:42 +0000]
windows-smb-free-lsa-response-20080901

LICENSE MIT

Whether or not LsaCallAuthenticationPackage succeeds, it may return
a response buffer.  If it does, free it.

15 years agowindows-afsd-init-lock-order-validation-20080830
Jeffrey Altman [Sat, 30 Aug 2008 15:13:03 +0000]
windows-afsd-init-lock-order-validation-20080830

LICENSE MIT

Add TransarcAFSDaemon/Parameters key "LockOrderValidation" DWORD
to control lock order validation functionality.  Defaults to off
for release builds and on for checked builds.

15 years agowindows-lock-order-validation-20080830
Jeffrey Altman [Sat, 30 Aug 2008 15:03:27 +0000]
windows-lock-order-validation-20080830

LICENSE MIT

Add osi_SetLockOrderValidation(int) to permit lock order validation
to be turned on and off.  Must be executed before the first lock
is obtained.

15 years agowindows-buf-shutdown-20080829
Jeffrey Altman [Sat, 30 Aug 2008 03:08:20 +0000]
windows-buf-shutdown-20080829

LICENSE MIT

During buf_Shutdown() all dirty buffers should be written to the file
server if they can be.

15 years agowindows-afsd-shutdown-20080829
Jeffrey Altman [Sat, 30 Aug 2008 03:04:53 +0000]
windows-afsd-shutdown-20080829

LICENSE MIT

reorganize the service shutdown order to permit dirty buffers to be
flushed to the file server without competition from incoming requests.

15 years agowindows-check-servers-20080828
Jeffrey Altman [Thu, 28 Aug 2008 10:45:45 +0000]
windows-check-servers-20080828

LICENSE MIT

if the server count is zero, don't both trying

15 years agowindows-check-server-heap-overwrite2-20080827
Jeffrey Altman [Thu, 28 Aug 2008 00:42:26 +0000]
windows-check-server-heap-overwrite2-20080827

LICENSE MIT

the incorporation of nconns into the foo incremental was a mistake

15 years agowindows-check-server-heap-overwrite-20080827
Jeffrey Altman [Wed, 27 Aug 2008 23:08:06 +0000]
windows-check-server-heap-overwrite-20080827

LICENSE MIT

Protect against a heap overwrite that could occur is the number of file
servers or vldb servers grows while the maximum number of connections
is computed and when the connection list is populated.

15 years agowindows-callback-lock-order-20080827
Jeffrey Altman [Wed, 27 Aug 2008 23:01:51 +0000]
windows-callback-lock-order-20080827

LICENSE MIT

do not hold cm_server_t mutex when calling cm_FindVolumeByID because
the cm_volume_t lock must be obtained ahead of the cm_server_t mutex

15 years agowindows-lock-order-20080827
Jeffrey Altman [Wed, 27 Aug 2008 13:17:05 +0000]
windows-lock-order-20080827

LICENSE MIT

do not hold cm_scacheLock while obtaining cm_scache_t->rw

15 years agowindows-short-names-20080827
Jeffrey Altman [Wed, 27 Aug 2008 12:47:23 +0000]
windows-short-names-20080827

LICENSE MIT

plus and equal are not valid characters in short names.
we replace them with left and right brace in order to
minimize the instability in the file names.

15 years agofreebsd-70-client-20080826
Matt Benjamin [Tue, 26 Aug 2008 15:59:42 +0000]
freebsd-70-client-20080826

LICENSE IPL10

FreeBSD 7.0 client support (and 8.0 support but that's a moving target)

15 years agostudio12-solaris-updates-20080826
Tom Keiser [Tue, 26 Aug 2008 15:11:28 +0000]
studio12-solaris-updates-20080826

LICENSE IPL10
FIXES 113671

update so we build with studio 12 on solaris

15 years agolinux-rpm-make-dkms-remove-work-20080826
Derrick Brashear [Tue, 26 Aug 2008 14:44:31 +0000]
linux-rpm-make-dkms-remove-work-20080826

LICENSE IPL10

rpm -e failed because of a typo here when removing our dkms rpm

15 years agowindows-scache-lock-20080825
Jeffrey Altman [Tue, 26 Aug 2008 05:55:40 +0000]
windows-scache-lock-20080825

LICENSE MIT

restore a missing obtain write lock

15 years agowindows-misc-20080825
Jeffrey Altman [Tue, 26 Aug 2008 05:36:34 +0000]
windows-misc-20080825

LICENSE MIT

avoid a deadlock in cm_GiveUpAllCallbacks

log UAEEXIST / EEXIST in cm_Analyze

15 years agowindows-client-osi-20080825
Jeffrey Altman [Tue, 26 Aug 2008 05:14:14 +0000]
windows-client-osi-20080825

LICENSE MIT

add more asserts to attempt to catch locks released in threads other
than the one that obtained them.

15 years agoserver-argument-consistency-and-jumbograms-off-20080824
Derrick Brashear [Mon, 25 Aug 2008 02:14:39 +0000]
server-argument-consistency-and-jumbograms-off-20080824

LICENSE IPL10
FIXES 108703

go through and make servers able to take debug log level on command line;
add -jumbo; default to -nojumbo

15 years agowindows-smb-more-check-open-done-20080824
Jeffrey Altman [Sun, 24 Aug 2008 22:45:24 +0000]
windows-smb-more-check-open-done-20080824

LICENSE MIT

call cm_CheckNTOpenDone() in error conditions as well

15 years agowindows-prefetch-lock-order-20080824
Jeffrey Altman [Sun, 24 Aug 2008 18:46:23 +0000]
windows-prefetch-lock-order-20080824

LICENSE MIT

lock order violation between cm_daemonLock and cm_scache_t rw lock

15 years agowindows-smb-locks-20080224
Jeffrey Altman [Sun, 24 Aug 2008 17:31:28 +0000]
windows-smb-locks-20080224

LICENSE MIT

smb_dirSearch_t refCount field is protected by smb_globalLock not the
smb_dirSearch_t mutex.

Do not hold the smb_fid_t mutex across calls to smb_NotifyChange()

15 years agowindows-check-nt-open-lock-sync-20080224
Jeffrey Altman [Sun, 24 Aug 2008 17:25:57 +0000]
windows-check-nt-open-lock-sync-20080224

LICENSE MIT

Move cm_SyncOpDone(CM_SCACHESYNC_LOCK) from cm_CheckNTOpen to
cm_CheckNTOpenDone.  This is necessary to synchronize lock operations.

15 years agowindows-callback-shutdown-head-20080801
Jeffrey Altman [Fri, 22 Aug 2008 21:57:53 +0000]
windows-callback-shutdown-head-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 agodarwin-fake-afs-bigger-20080822
Derrick Brashear [Fri, 22 Aug 2008 20:26:38 +0000]
darwin-fake-afs-bigger-20080822

LICENSE IPL10
FIXES 112564

set up max uint64 "free" in afs so finder isn't dumb.

15 years agoanalyze-srvr-safety-check-20080822
Derrick Brashear [Fri, 22 Aug 2008 19:52:44 +0000]
analyze-srvr-safety-check-20080822

LICENSE IPL10
FIXES 112681

safety check to make sure a conn's srvr is set before dereferencing it

15 years agowindows-misc-20080822
Jeffrey Altman [Fri, 22 Aug 2008 19:06:04 +0000]
windows-misc-20080822

LICENSE MIT

1. In multi-threaded applications deadlocking is always a problem.
Deadlock avoidance requires a strict adherence to a documented
hierarchy.  The lock hierarchy for OAFW is described in a file
called locks.txt.  There are two problems.  First, some of the
locks are not included in locks.txt.  Second, it is nearly
impossible given the depth of function calls for any programmer
 to identify all of the locks that are held at any given time
a function is called.  This patch implements a new locking order
verification mechanism.  Each lock is assigned a lock level at
initialization.  Each thread maintains a queue of held locks.
Each time a lock is acquired the queue is checked to ensure that
no locks with a higher level than the requested lock has already
been acquired.  If a violation occurs, the service panics.

2. When the service panics ensure that a minidump will always be generated.

3. Remove unused lock cm_bufGetMutex.

4. The lock order verifier identified approximately a dozen
lock order violations that are corrected.

5. A race condition within the function path cm_GetSCache() ->
cm_GetNewSCache() -> cm_RecycleSCache() permitted a cm_scache_t
object to be issued simultaneously to two threads.  This would
eventually result in a panic due to the resulting under count.

6. Fix interpretation of the empty string as the ioctl path to
mean the current directory.   "fs lsm", "symlink list", etc.
now return a "not a ..." error instead of "does not exist".

7. Add SMB_STRF_SRCNULTERM flag to smb_ParseStringXXX functions
to indicate that the input string is a nul terminated string.
Assign it when input strings are nul terminated.

8. The CIFS protocol specification for handling NT_TRANSACT_CREATE
does not match the observed behavior.  The 'nameLength' is specified
in bytes not in characters.  Fix the implementation to match.

9. The cm_HaveAccessRights() attempt at deadlock avoidance by calling
lock_TryRead() on the parent directory cm_scache_t rw-lock does not
avoid the deadlock.  Avoid the deadlock by enforcing the lock order
of lowest vnode first.  Then remove the infinite loop avoidance in
cm_SyncOp() that was returning an unwarranted access denied error.

15 years agorx-allow-jumbogram-disabling-really-20080822
Derrick Brashear [Fri, 22 Aug 2008 05:31:32 +0000]
rx-allow-jumbogram-disabling-really-20080822

LICENSE IPL10

right now, jumbograms can still be sent when -nojumbo is specified. make the
current macro a default and override when we're supposed to.

15 years agowindows-list-symlink-20080820
Jeffrey Altman [Wed, 20 Aug 2008 20:44:56 +0000]
windows-list-symlink-20080820

LICENSE MIT

Another casaulty of the Unicode transition, the return value of the
ListLink operation was not being convered from wchar to char before
it was copied into the output buffer.

15 years agowindows-afsd-service-20080820
Jeffrey Altman [Wed, 20 Aug 2008 20:41:17 +0000]
windows-afsd-service-20080820

LICENSE MIT

When afsd_service.exe is not running as a service do not call the
Service Manager functions.  Doing so causes invalid access exceptions
to be thrown in the kernel and can corrupt the heap.

15 years agoredhat-spec-default-build-authlibs-20080820
Derrick Brashear [Wed, 20 Aug 2008 19:45:05 +0000]
redhat-spec-default-build-authlibs-20080820

LICENSE IPL10
FIXES 101879

make build_authlibs default usefully

15 years agonamei-by-default-on-sol10-20080816
Derrick Brashear [Sat, 16 Aug 2008 22:37:29 +0000]
namei-by-default-on-sol10-20080816

LICENSE IPL10

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

15 years agovolser-initialize-volume-updatedate-20080816
Dan Hyde [Sat, 16 Aug 2008 21:07:30 +0000]
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.

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

LICENSE IPL10
FIXES 111404

work around netbsd sigwait brokenness

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

LICENSE IPL10
FIXES 111634

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

15 years agowindows-build-20080815
Jeffrey Altman [Sat, 16 Aug 2008 18:39:33 +0000]
windows-build-20080815

LICENSE MIT

remove duplicate rules for man-pages

15 years agowindows-rx-extra-packets-20080816
Jeffrey Altman [Sat, 16 Aug 2008 18:00:50 +0000]
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.

15 years agowindows-pioctl-getdrivetype-20080816
Jeffrey Altman [Sat, 16 Aug 2008 17:48:17 +0000]
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.

15 years agowindows-freelance-deadlock-20080815
Jeffrey Altman [Fri, 15 Aug 2008 21:17:02 +0000]
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

15 years agowindows-shlibafsauthent-20080814
Jeffrey Altman [Fri, 15 Aug 2008 00:37:20 +0000]
windows-shlibafsauthent-20080814

LICENSE MIT

export pioctl_utf8

15 years agowindows-server-dereference-null-two-20080814
Jeffrey Altman [Thu, 14 Aug 2008 21:22:49 +0000]
windows-server-dereference-null-two-20080814

LICENSE MIT

protect against a potential null pointer dereference of a cm_server_t
object

15 years agowindows-server-dereference-null-20080814
Jeffrey Altman [Thu, 14 Aug 2008 21:19:34 +0000]
windows-server-dereference-null-20080814

LICENSE MIT

protect against a null pointer dereference of a cm_server_t object

15 years agowindows-memdump-20080814
Jeffrey Altman [Thu, 14 Aug 2008 18:23:28 +0000]
windows-memdump-20080814

LICENSE MIT

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

15 years agowindows-free-server-deadlock-20080813
Jeffrey Altman [Thu, 14 Aug 2008 03:36:43 +0000]
windows-free-server-deadlock-20080813

LICENSE MIT

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

15 years agowindows-search-cell-file-20080813
Jeffrey Altman [Thu, 14 Aug 2008 03:32:54 +0000]
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

15 years agorx-buffer-allocation-corrected-20080813
Jeffrey Altman [Thu, 14 Aug 2008 03:27:36 +0000]
rx-buffer-allocation-corrected-20080813

LICENSE MIT

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

15 years agowindows-build-man-pages-20080813
Jeffrey Altman [Thu, 14 Aug 2008 03:15:34 +0000]
windows-build-man-pages-20080813

LICENSE MIT

move building of man pages to installer phase

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

LICENSE IPL10

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

15 years agosalvager-dont-corrupt-dir-lengths-20080812
Rainer Toebbicke [Thu, 14 Aug 2008 00:44:16 +0000]
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

15 years agorx-buffer-allocation-pulled-20080813
Jeffrey Altman [Wed, 13 Aug 2008 15:10:42 +0000]
rx-buffer-allocation-pulled-20080813

LICENSE MIT

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

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.