4580 Commits

Author SHA1 Message Date
Jeffrey Altman
2c45d9ec9f windows-dir-20071103
Reorganize the locking for cm_BeginDirOp and cm_EndDirOp.
There are a number of locations where locks are obtained, dropped, and
reobtained.  This reorganization attempts to accomplish several things:

(1) be optimistic for the most common case so it will be fast

(2) add consistency checks after each location where locks are dropped
    and re-obtained.  If we lose a race in cm_BeginDirOp and the bplus
    tree is out of date, retry until we get to a consistent state
    that we can use.

(3) Ensure that all operations take place with the correct locks.
2007-11-03 16:18:14 +00:00
Jeffrey Altman
ef6684d005 windows-buf-20071103
assert that the cm_scache_t mutex is held when calling
buf_ForceDataVersion().
2007-11-03 16:08:03 +00:00
Jeffrey Altman
e4ddca6854 windows-bplus-tree-20071103
rename findNode to leafNode in bplus_Lookup

replace all OutputDebugString calls with osi_LogX calls

modify bestMatch to special case the return values for leaf nodes.
If an entry is above or below the values available in the leaf node
return BTLOWER or BTUPPER instead of BTERROR.

In insert and delete operations check for BTLOWER/BTUPPER and isleaf,
if true convert to either slot 0 or Max and perform the insertion.
This produces easier to read code when performing lookups.
2007-11-03 16:05:43 +00:00
Jeffrey Hutzelman
a08f0f4dc0 windows-cellservdb-20071103
GCO Public CellServDB 25 Oct 2007
2007-11-03 15:59:12 +00:00
Jeffrey Altman
75729fa4ae windows-install-des-prototypes-20071102
required by auth-getkey-prototyping-20071102
2007-11-03 01:05:53 +00:00
Derrick Brashear
32828680ae auth-getkey-prototyping-20071102
make this sane
2007-11-02 18:01:32 +00:00
Ken Raeburn
6b5146db5b viced-new-host-reup-h-lock-20071101
FIXES 69384

don't leave lock dropped
2007-11-01 19:12:38 +00:00
Dale Ghent
20a837c5cc solaris-cc-deal-with-new-64-bit-arch-specifier-20071101
FIXES 75908

switch from -xmarch=amd64 to -m64
2007-11-01 17:05:33 +00:00
Dale Ghent
7a0df48baf solaris-nevada-update-20071101
FIXES 75896

update for current solaris nevada
2007-11-01 16:57:26 +00:00
Simon Wilkinson
089a02bcbc auth-cleanup-20071101
kill warnings in auth directory
2007-11-01 16:09:22 +00:00
Simon Wilkinson
8b8e0935e4 rxgen-ansi-again-20071101
another look at lettign rxgen do ansification
2007-11-01 15:58:59 +00:00
Tom Keiser
eea1cb0814 dafs-salvage-deal-with-clones-20071101
FIXES 75591

cope with trying to salvage a clone correctly
2007-11-01 14:59:38 +00:00
Chaskiel M Grundman
c5678a4af7 linux-afs-unlinked-file-dentry-flagging-20071031
fix case:
 perl -e 'open FOO, ">foo"; unlink(foo); @stat = stat(FOO); print "inode for foo(unlinked) is $stat[1]\n"; system("/bin/ls -ali | grep $stat[1]");'
2007-11-01 03:23:09 +00:00
Simon Wilkinson
8214014855 more-anonymous-pointer-cleanup-20071031
more char*->void* conversion
2007-10-31 22:31:38 +00:00
Jeffrey Altman
27ce37c7a0 windows-btree-20071031
Add additional validation and error handling code after each call to
getSlot().  If an invalid slot is returned, return NONODE.  If the
invalid slot is returned when extracting a data node, invalidate the
tree.

Modify compareKeys() to always perform a case-insensitive comparison
and only perform a case sensistive comparison if the case-insensitive
one matches.  This ensures the ordering is consistently reported.

Add lock assertions to ensure that all calls are being performed with
the correct locks being held.  There have been some crash reports that
provide stack data that does not appear to be possible unless there is
a race.  However, there are no obvious locations where the race is
taking place and the test suite indicates that all of the correct locks
are being held. We shall see what happens in the field.

For consistency replace all calls to findKey in which the range is
(1,numentries) with calls to getSlot().

Optimize the depth search loop by testing the slot value in the for
statement instead of forcing the loop to be broken later.
2007-10-31 15:33:27 +00:00
Jeffrey Altman
cf0d1393f4 windows-begindirop-20071031
Avoid a race condition in cm_BeginDirOp() caused by the failure to
hold the cm_scache_t mutex while copying status data from the scp to
the dirop
2007-10-31 15:23:42 +00:00
Jeffrey Altman
ff4c519c78 windows-cm_analyze-ewouldblock-20071031
Add support for EWOULDBLOCK to cm_Analyze.  If the file server returns
EWOULDBLOCK, retry the request every two seconds for up to the RDRtimeout.
2007-10-31 15:20:14 +00:00
Jeffrey Altman
d16d5c0312 windows-uaewouldblock-20071031
Reorganize the order of the includes to ensure that EWOULDBLOCK is not
assigned the same value as EIO.
2007-10-31 15:18:10 +00:00
Simon Wilkinson
3e1646fed2 util-cleanup-20071031
kill the warnings in src/util
2007-10-31 12:36:33 +00:00
Simon Wilkinson
3f449eb48e openafs-bozo-varargs-20071031
convert bozo to be prototypable
2007-10-31 04:20:33 +00:00
Simon Wilkinson
855e644261 openafs-void-star-pointers-20071031
convert anonymous pointers from char* to void*
2007-10-31 04:05:27 +00:00
Simon Wilkinson
7d05bd439e openafs-string-header-cleanup-20071030
include only what we need
2007-10-30 15:10:37 +00:00
Simon Wilkinson
7fe8131c04 redhat-packaging-update-20071029
update rpm packaging stuff for what shipped in 1.4.5
2007-10-30 03:53:08 +00:00
Jim Rees
5a0dfa46f0 update-bsd-readme-20071026
Update build info for Open/FreeBSD.
2007-10-26 17:41:54 +00:00
Simon Wilkinson
1b3ecae23c redhat-fedora-build-driver-20071026
driver script for fedora builds
2007-10-26 17:20:22 +00:00
Derrick Brashear
2ced26c8ba redhat-spec-fix-hugemem-modpath-20071026
make this match other kernsls
2007-10-26 17:09:40 +00:00
Derrick Brashear
ed42d1f71a release-notes-1-4-5-20071025
release notes for 1.4.5
2007-10-25 06:19:17 +00:00
Jeffrey Altman
fb7595ad1d windows-aclent-remove-extraneous-code-20071024
Microsoft provided a dump showing cm_data.aclLRUEndp == NULL in
GetFreeACLEnt().  Couldn't find any reason why that would be true.
However, there is extraneous code that manipulates the value of
aclLRUEndp when it should be left to osi_QRemoveHT() to update
the pointer values.

Also add an additional explicit test for aclLRUEndp == NULL in
GetFreeACLEnt().
2007-10-25 05:47:23 +00:00
Derrick Brashear
511aed14e0 macos-installer-crap-20071025
put it back the way it was
2007-10-25 04:42:07 +00:00
Simon Wilkinson
d78b844133 linux-nfstrans-20071024
FIXES 75233

better track changes so we can build an nfstranslator module for new linux kernels
2007-10-24 16:44:26 +00:00
Dan Hyde
1d9ba682a5 cblater-bitmask-bug-20071024
FIXES 75304

add missing ()
2007-10-24 16:33:31 +00:00
Derrick Brashear
3973d82237 darwin-allow-finder-to-unlink-rsrc-files-20071024
finder tries hard to clean up resource fork files it creates when you drop something in a dropbox that don't then get updates.

let it think it won
2007-10-24 06:40:12 +00:00
Chaskiel M Grundman
f814c8a963 finder-and-tiger-cp-deal-with-dropboxes-20071024
FIXES 69363

this way copying finishes
2007-10-24 06:25:46 +00:00
Jeffrey Altman
57b28bb8ee windows-wix-nsis-uninstall-20071023
At somepoint windows installer broke the use of the 'file' RegistrySearch
type.  Instead of returning the full file name path we are only getting
the directory.  Switch to using the 'raw' type since we know we aren't
prefixing the file name with a hash.
2007-10-24 04:49:07 +00:00
Mike Meffie
15f6e3170c afs-shutdown-free-resources-20071023
try hard to free resources
2007-10-23 23:36:06 +00:00
Derrick Brashear
3b3ccef28e darwin-uio-64-20071023
use the 64 bit awareness in the KPI
2007-10-23 18:37:58 +00:00
Jason Edgecombe
66a19a512e pod-man-fs-uuid-20071023
FIXES 75175

add man page for fs uuid
2007-10-23 17:59:16 +00:00
Derrick Brashear
4526c6a4f7 darwin-afsd-cleanup-power-notification-nicely-20071023
don't drop a core on shutdown
2007-10-23 15:28:22 +00:00
Derrick Brashear
79e51892fe vos-restore-check-doesnt-apply-to-pipes-20071023
as pointed out by hung pham
2007-10-23 15:19:07 +00:00
Derrick Brashear
6aaca73002 darwin-modify-cp-workaround-20071022
more work will be needed to fool finder into just copying the d**n file, since
it's checking too hard.
2007-10-23 01:30:03 +00:00
Derrick Brashear
4456aa7739 change-default-probeint-for-rfc4787-20071022
an RFC compliant port mapping device guarantees less time than we previously probed.
2007-10-23 01:02:39 +00:00
Simon Wilkinson
d0285a2193 fssync-poll-interface-20071022
FIXES 74708

support a poll interface

otherwise, the fd setsize can screw with us
2007-10-22 18:29:28 +00:00
Simon Wilkinson
e25e21e909 cpp-avoid-cc-E-20071022
finding the right cpp is good. having it not be cc -E is better
2007-10-22 14:21:26 +00:00
Jeffrey Altman
fd1bf06004 windows-ntstatus-warnings-20071021
suppress warnings caused by multiple definitions of NTSTATUS values
2007-10-22 04:32:09 +00:00
Jeffrey Altman
f90153625e windows-del-symlink-20071021
The cmd.exe "del" command operates by opening a file and then setting
the file disposition to delete on close followed by closing the file.

When the filename is a symlink, the smb_fid_t scp refers to the final
destination object and not the symlink.  In smb_CloseFid() the correct
object would be removed from the directory by name, but the wrong cm_scache_t
would be marked deleted.  This would result in subsequent references to
the target file being considered invalid.

Fix it by looking up the cm_scache_t of the symlink prior to performing
the deletion.
2007-10-22 04:27:14 +00:00
Jeffrey Altman
20cfc16e3d windows-registry-OfflineReadOnlyIsValid-20071019
Add registry value "OfflineReadOnlyIsValid" option.  When set to non-zero
value, an offline or down read only volume will be treated as if it has
a valid callback even if it doesn't.
2007-10-20 04:58:40 +00:00
Arno Schuring
6122c757e1 cpp-autoconf-located-20071019
let autoconf find cpp
2007-10-20 01:20:51 +00:00
Derrick Brashear
7e752ba085 darwin80-dnlc-dont-return-deadvnodes-20071019
FIXES 41550

obvious. if we are going to be like GetVCache, we should
2007-10-19 21:37:15 +00:00
Jeffrey Altman
05ee11d315 windows-pioctl-parse-path-20071018
cm_ParseIoctlPath() moves the ioctlp->inDatap past the ioctl path
to the next data value if there is one.  Make sure we move the pointer
before we alter the contents of the buffer.  Otherwise, the caller
uses the wrong string for its next data blob.
2007-10-19 05:25:39 +00:00
Jeffrey Altman
53baa78733 windows-pioctl-error-codes-20071018
add knowledge of new cm error codes
2007-10-18 23:06:35 +00:00