4188 Commits

Author SHA1 Message Date
Jeffrey Altman
a33dacaa8d DEVEL15-aklog-krb5-referrals-compat-20070210
MIT Kerberos version 5 release 1.6 adds support for referrals in the
client.  As a result krb5_get_host_realm() returns the nul-string for
the realm whenever there is no local domain-realm mapping in the
profile.

aklog must now manually perform the fallback to using the domain of
the vlserver as basis for the realm name if referrals fail.


(cherry picked from commit 645f7e8f81be8c096b2fd3d9b852b8614d9dc690)
2007-02-10 13:58:17 +00:00
Asanka Herath
630a62f460 DEVEL15-windows-smb-file-lock-20070209
When processing exclusive locks for files that were opened read-only,
obtain a read-lock instead of a write-lock.

In NTCreateX, if the file is being opened as OPEN_ALWAYS and the file
already exists, do not require write permission


(cherry picked from commit 25c7f567f2c831d62152104c3b84ec31d9fd330f)
2007-02-10 00:00:44 +00:00
Jeffrey Altman
868b971693 DEVEL15-windows-access-check-20070209
disable the test for the EACCESS flag in cm_HaveAccessRights.


(cherry picked from commit a9b0dbb30cc926251d66ea9036d6505fe525cc51)
2007-02-09 23:54:31 +00:00
Jeffrey Altman
fee965b168 DEVEL15-windows-fs-memdump-20070209
only dump the dead smb_vcp list once


(cherry picked from commit 1a00759d8b9f1b249e90b044bc1aa66d9d5c9d23)
2007-02-09 23:51:15 +00:00
Jeffrey Altman
4604e1c7ff DEVEL15-windows-nim-plugin-krb5-referrals-compat-20070209
MIT Kerberos version 5 release 1.6 adds support for referrals in the
client.  As a result krb5_get_host_realm() returns the nul-string for
the realm whenever there is no local domain-realm mapping in the
profile.

aklog must now manually perform the fallback to using the domain of
the vlserver as basis for the realm name if referrals fail.

This will be required for KFW 3.2 support.


(cherry picked from commit 584e1bd98eb4258a2cd1a517f7d49c71407983b5)
2007-02-09 20:12:38 +00:00
Peter Breitenlohner
70f31b8b77 DEVEL15-libafsdep-mods-20070209
FIXES 53381

don't break vpath builds


(cherry picked from commit b5c39e4373bd24fc724719ff365597327aa143cf)
2007-02-09 18:43:11 +00:00
Jeffrey Hutzelman
1556865f4f DEVEL15-linux-compile-test-24-20070209
FIXES 53385

no linux/namei.h on 2.4


(cherry picked from commit a1d9a9209094864f784ecc90d41201480ffd66da)
2007-02-09 18:27:54 +00:00
Jeffrey Hutzelman
5995ddd44e DEVEL15-linux-kbuild-test-fixes-20070119
fixes to build for linux when doing objdir builds


(cherry picked from commit c88ab63663319035d88dfceb9778b98553a091b5)
2007-02-09 18:22:48 +00:00
Jeffrey Altman
a350a83542 DEVEL15-windows-aklog-krb5-referrals-compat-20070209
MIT Kerberos version 5 release 1.6 adds support for referrals in the
client.  As a result krb5_get_host_realm() returns the nul-string for
the realm whenever there is no local domain-realm mapping in the
profile.

aklog must now manually perform the fallback to using the domain of
the vlserver as basis for the realm name if referrals fail.

This will be required for KFW 3.2 support.


(cherry picked from commit 2287f5f578fa40a0229699a4e90263300ca79e50)
2007-02-09 17:30:33 +00:00
Marcus Watts
352fa4d8b4 DEVEL15-ktc-cleanup-20070208
FIXES 53212

clean up ktc code, prototyping et al

====================
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.
====================
FIXES 53212

restore ktc_GetToken prototype


(cherry picked from commit a05fa83336df6cd11d60cc64882c68cc01243aad)
2007-02-09 03:13:31 +00:00
Christopher Allen Wing
668ca4059b DEVEL15-linux-locking-pre-2618-20070208
FIXES 53457

deal with pre 2.6.18 locking behavior


(cherry picked from commit 171676011ba72b48b6ed2d6df6cfc1f0adb52c1f)
2007-02-09 01:36:35 +00:00
Derrick Brashear
bc245e4897 DEVEL15-tasklist-export-check-20070208
work around tasklist lock export harder


(cherry picked from commit 00c5dbfd048e31a653de0e1cf37d45d539e0c755)
2007-02-09 01:30:14 +00:00
Adam Megacz
0db9b4a36e DEVEL15-afs-magic-for-linux-20070208
FIXES 52442

use the afs magic number


(cherry picked from commit 797f46a88ee9c50c34a8b6e1fa7c878e252d3a97)
2007-02-09 01:23:40 +00:00
Dave Cottle
79c3e01e98 DEVEL15-obsd40-initial-20070208
FIXES 53283

doesn't work right, and the patch in 53296 can't be taken as is


(cherry picked from commit 87a3cd2a709a4fcf5df9a82ce223be0a33bf18f1)
2007-02-09 01:13:19 +00:00
Marcus Watts
d631aa0f74 DEVEL15-linux24-update-20070208
FIXES 53199

update for linux 2.4


(cherry picked from commit 226f3b1b47371bf6c37d8003725fac6d2486ea16)
2007-02-09 01:06:11 +00:00
Marcus Watts
69dd1426e3 DEVEL15-auth-cleanup-20070208
FIXES 53208

remove unneeded includes of auth.h


(cherry picked from commit 9dd8d7f8171614a9efda14f6392651b8c276aa04)
2007-02-09 01:00:18 +00:00
Marcus Watts
404ec9d803 DEVEL15-bozo-cleanup-20070208
FIXES 53202

clean up bosserver


(cherry picked from commit 6e947cd3be0fbba3265ae6e0197579cabb4c3d8a)
2007-02-09 00:55:39 +00:00
Marc Dionne
77a5232a76 DEVEL15-keyring-pag-avoid-shadowing-20070208
FIXES 38959

avoid shadowing the pag variable


(cherry picked from commit 0dfd1d0ed81547791d8b90f9be2d04b362401422)
2007-02-09 00:27:00 +00:00
Derrick Brashear
f48f3375ce DEVEL15-getcbi-limit-addresses-20070208
FIXES 36643

don't write addresses (if we have too many) over random memory


(cherry picked from commit 8ecad072df8f6cfa63e1ef4d862611a0f2a75e7b)
2007-02-09 00:18:45 +00:00
Derrick Brashear
64f1cba2a9 DEVEL15-use-unix-sockets-20070208
option to use unix socket for fssync


(cherry picked from commit a4d52ee772a84212911c52f5d79dd4f02b9a8b2a)
2007-02-08 23:59:32 +00:00
Jeffrey Hutzelman
751c9aa7c1 DEVEL15-linux-lock-tracking-20070208
FIXES 31818

avoid a potential leaked lock when closing firefox.


(cherry picked from commit b0425c4e7f65c00fe217d7c54d309bceac9b38d5)
2007-02-08 22:39:29 +00:00
Jeffrey Altman
534be6c049 DEVEL15-windows-scp-recycle-init-20070208
when we recycle a stat cache object be sure to clear the file type so
we don't inherit the previous file type if the fetch status fails.

in merge status, clear the file type if the errorCode is EACCESS


(cherry picked from commit 403b5086dddf16ef360b3dade0f3fa0e12db5b71)
2007-02-08 13:51:40 +00:00
Jeffrey Altman
59008d86e5 DEVEL15-windows-merge-parent-fid-20070207
modify cm_MergeStatus to take a pointer to the parent stat cache entry
so that the parent fid can be set when bulk status returns an error.


(cherry picked from commit 0cc59928b980fbd89e3ed06e04474762655791ef)
2007-02-07 17:35:16 +00:00
Jeffrey Altman
083bfe2655 DEVEL15-windows-mounttab-remove-debugging-20070207
remove unused variables


(cherry picked from commit 92c282f40c84e8f6c3a02bf55d040007fa48e7ff)
2007-02-07 16:39:32 +00:00
Jeffrey Altman
d75ce9b79a DEVEL15-windows-merge-eaccess-20070207
when merging status info that has an errorCode of EACCESS set,
merge the garbage we received.

When checking the access to the object return EACCESS if the
stat cache object has the EACCESS flag set.  This will be cleared
the next time a BulkStatus succeeds.


(cherry picked from commit e9fb99c770101de103df0a2ff7ba364159b81f80)
2007-02-07 08:13:29 +00:00
Jeffrey Altman
285b5fcefc DEVEL15-multiple-local-realms-20070201
FIXES 52459

The Name to ID RPC must distinguish between local and foreign names


(cherry picked from commit 36233e1e318c7864122cf16c85da012f936c03db)
2007-02-07 04:53:18 +00:00
Jeffrey Altman
504894ea5b DEVEL15-windows-merge-status-20070206
when merging status for store data ops, use the fileHashTable to reduce
the number of buffers we must examine


(cherry picked from commit 55653d5dd00665c80397ab3c397063a1e636afea)
2007-02-06 16:47:33 +00:00
Jeffrey Altman
9689219fba DEVEL15-windows-merge-status-20070204
For each StoreData operation the dataVersion on the object is incremented.
To prevent all of the cached buffers from being considered out of date,
if the dataVersion has been incremented by exactly one, then update the
dataVersion of the buffers that match the FID and the previous dataVersion


(cherry picked from commit 4e8bc6d5016f8e6d46a21331009c414d94e90d10)
2007-02-05 11:08:32 +00:00
Jeffrey Altman
05559245f3 DEVEL15-windows-buffer-mgmt-20070204
Instead of using a fixed sized hashtable of 1024 entries regardless
of the number of buffers, compute the hashtable to be large enough
for on average 7 buffers per bucket.

Remove the 'size' field from cm_buf_t since it is never used.

Add more info to the output of cm_buf_t objects when using "fs memdump"


(cherry picked from commit cec0b902f6cbeb849984d5ca1ef1847ef1eeac89)
2007-02-05 03:41:41 +00:00
Jeffrey Altman
a276ffc892 DEVEL15-windows-store-biod-20070204
Add a 'failed' parameter to the cm_ReleaseBIOD function.  This enables
the clearing of the CM_BUF_DIRTY flag to be conditional upon successful
completion of the store operation.


(cherry picked from commit 333005c46332a9c76974261aef5fdf82c19698b1)
2007-02-04 15:39:14 +00:00
Jeffrey Altman
9992d7a43f DEVEL15-windows-mounttab-remove-debugging-20070203
no longer need the Debug Output String statements


(cherry picked from commit 78c83150f62d78330795c9a8c9b7de13421f0bde)
2007-02-04 02:50:29 +00:00
Jeffrey Altman
9cdf31e816 DEVEL15-windows-bkgdaemon-retry-failed-requests-20070203
background request functions such as BkgFetch and BkgStore do not
return success or failure.  the bkgDaemon thread simply executes
the request and discards it regardless of whether or not the request
was completed.  this can result in background store event failing
to be written to the file server.

modify the background request functions to return success or failure.

modify the background daemon to put failed requests back onto the queue
if the reason for failure was transient.

modify the background daemon only to process requests when the servers
for the volume are marked up.


(cherry picked from commit 37d16dd70bdc88af02db4ed0307b2ec56a4e9a34)
2007-02-04 02:46:25 +00:00
Jeffrey Altman
fdccb816f9 DEVEL15-windows-buf-refcount-leak-fix-20070203
Plug a buffer refcount leak.   This is why the client slows down over
time.  It runs out of buffers it can use.


(cherry picked from commit 9a9e0976c881ef6b77e7de19a79611569b1426a3)
2007-02-04 02:02:26 +00:00
Jeffrey Altman
0fcb42fc93 DEVEL15-windows-buf-dump-fix-20070203
restore the missing format string to the Buffer Hash Table Dump routine


(cherry picked from commit 84a0ef8e1a076e3fb03d8cb6bb72bba63679a700)
2007-02-03 18:04:51 +00:00
Jeffrey Altman
499d0b02ca DEVEL15-windows-log-eol-20070203
ensure that log files use CR-LF for end of line.   the "fs memdump"
output and the afsd_init.log initialization output were still using LF.


(cherry picked from commit 1e44ef074aae0fd718f15ba8ff8b66bca1586c2f)
2007-02-03 17:49:33 +00:00
Jeffrey Altman
23d5ddca11 DEVEL15-windows-drive-mappings-20070202
FIXES 45545

Remove "Drive " from the drive mappings.  This way the drive letters
can be selected with a single key press.


(cherry picked from commit 7d6baa2df1ef0244b0a27082948be794ef36a8e4)
2007-02-03 04:53:04 +00:00
Chaskiel M Grundman
85d98e779f DEVEL15-linux-and-locks-cleanup-20070202
fix linux flock, remove a bogus lock assert, and fix pid tracking to avoid usele
ss panic


(cherry picked from commit fd1c37ebe7f5fb2ed52371705aaf1efc7764c7eb)
2007-02-03 03:28:02 +00:00
Jeffrey Altman
5811b9a126 DEVEL15-windows-afsd-volume-ref-leak-20070202
When looking up a volume by ID or Name, if the volume server data requires
refreshing and the UpdateVolume operation failed, do not leak the refCount.


(cherry picked from commit ab294cfdc5fa4108f89b37c4a7da5844872ecacf)
2007-02-02 15:44:12 +00:00
Jeffrey Altman
14b928b7d9 DEVEL15-windows-nsis-20070202
even if afsd_service.exe can be shut down the binary might still not
be able to be replaced due to the windows Protection Service.
Use the ReplaceDLL macro


(cherry picked from commit 38d6f485078185acc0067362eb970b5cbf41e800)
2007-02-02 15:40:08 +00:00
Jeffrey Altman
d6c9295ee7 DEVEL15-venus-include-afs-com_err-20070201
FIXES 51424

include afs/com_err.h for error_message() prototype to prevent crashes
on platforms with 64-bit pointers and 32-bit int


(cherry picked from commit 564d41d96e224132d5073170d0f82e0264315077)
2007-02-01 13:25:33 +00:00
Jeffrey Altman
0da50d9f9a DEVEL15-windows-notes-20070201
many changes in recent days
2007-02-01 11:02:06 +00:00
Jeffrey Altman
28078afa0e DEVEL15-windows-freelance-20070131
FIXES 52069

If an app tries to open the freelance directory for WRITE then the
default anonymous access privileges, read/lookup, are not sufficient
and cm_HaveAccessRights will fail.  Freelance can't get access rights
from anywhere.  Therefore, cm_HaveAccessRights should special case
the Freelance directory.


(cherry picked from commit bd5ed7d332df05ac232f4188a166ce6f791f7cca)
2007-02-01 04:30:21 +00:00
Jeffrey Altman
adf41713e8 DEVEL15-windows-delete-test-file-not-dir-20070131
the cm_CheckNTDelete function was testing the permissions of the
directory and not the permissions of the file being deleted.
This resulted in inconsistencies between the attributes of the
file and the ability to delete it.

this patch also adds a large amount of trace log entries as there
was none in this section of the code before.


(cherry picked from commit f3c4bbd41a06aeced5536f55e949767169b906d2)
2007-01-31 17:03:33 +00:00
Jeffrey Altman
7414591639 DEVEL15-windows-shell-ext-reformat-20070130
reformat the source code to make it easier to read/edit


(cherry picked from commit 908918a89d40605cad738a35f9938aa9d7488a3d)
2007-01-30 12:42:43 +00:00
Jeffrey Altman
1bef8a99ad DEVEL15-windows-netidmgr-string-updates-20070130
As per the NetIdMgr model, refer to credentials instead of tokens.

Update the copyright strings


(cherry picked from commit daddcd3bcc3ab5b79954fe4dccf648aa35b0530c)
2007-01-30 12:31:46 +00:00
Jeffrey Altman
7d62e15e4d DEVEL15-windows-vol-fssync-debug-20070130
add a resource file for fssync-debug for when we decide to build it


(cherry picked from commit 0b669007c7338ec4f18a3a7cf88b9621c626c8bd)
2007-01-30 12:25:20 +00:00
Jeffrey Altman
a129b3b6ce DEVEL15-windows-vol-fix-salvager-20070130
The salvager on Windows was not being built properly.  The fssync-debug.c
main() was being used instead of the salvager.c main().  Remove
fssync-debug.obj from the library and fixup the includes and global
variable declarations.


(cherry picked from commit c4a89f3f79d6b5c62ccd91f3e7e01d38e3e80c1f)
2007-01-30 12:17:28 +00:00
Jeffrey Altman
70f46fcadc DEVEL15-windows-procmgmt-20070130
Do not raise an exception if SIGQUIT is received prior to the
registration of the Shutdown handler


(cherry picked from commit b02c32b0692991636e06e1205ae0d07c9f15106b)
2007-01-30 12:07:18 +00:00
Russ Allbery
9297cac918 DEVEL15-document-fs-setacl-permissions-20070129
Better document the current state of implicit "a" rights on directories.


(cherry picked from commit 3960a5ff1cfef0c3f6adfe6cf602b8c80078ce7d)
2007-01-29 19:33:40 +00:00
Jeffrey Hutzelman
9b1ba4826c DEVEL15-volume-dont-artificially-untimeout-vlservers-20061218
FIXES 48959

remove synthetic event to undo timeouts of vlservers we "haven't talked to yet"


(cherry picked from commit 91ce7a066d0912bb84a7c87863cd1b7ed6cc480a)
2007-01-25 11:20:47 +00:00