4839 Commits

Author SHA1 Message Date
Asanka Herath
551816663b DEVEL15-windows-netidmgr-extension-sample-20080217
LICENSE MIT

A sample template for constructing Network Identity Manager OpenAFS
Provider Extensions for obtaining and identifying new token types.


(cherry picked from commit 55aa6f04dcfebae134b3459944e005599d06ef05)
2008-02-17 14:38:07 +00:00
Jeffrey Altman
e64053d95f DEVEL15-windows-invalidate-file-locks-vnovnode-20080217
LICENSE MIT

Upon receiving a VNOVNODE error from a file server, be sure to
invalidate any file locks.  This prevents on-going attempts to
extend the locks and will cause subsequent attempts to access
the file to receive a invalid handle error.


(cherry picked from commit 38c2524bd16f1e535ea28f9d0788b7eaa8d26c3d)
2008-02-17 05:59:30 +00:00
Jeffrey Altman
0582ea3bca DEVEL15-windows-buf-consistency-20080217
LICENSE MIT

All calls to buf_Get() must be protected by a read lock on the
cm_scache_t bufCreateLock

When a MergeStatus results in the invalidation of buffers, do
not remove buffers from the hash tables that have active references.


(cherry picked from commit 33bed6296114e16914cecf312c762774d44386c8)
2008-02-17 05:28:04 +00:00
Jeffrey Altman
a520fbe955 DEVEL15-windows-check-offline-volumes-20080214
LICENSE MIT

when checking offline volumes, update the cell vlserver info
if required and don't perform a check if there are no servers
in the list.


(cherry picked from commit 935c49a2a6efa476c327e8a24fc4895f0c8f623d)
2008-02-15 03:31:36 +00:00
Jeffrey Altman
a549019b51 DEVEL15-windows-afsd-rx-extrapackets-20080214
LICENSE MIT

Add support for specifying rx_extraPackets in the Windows client


(cherry picked from commit 4aad2a7b6bcf97af384de36994af94b7b4b07f98)
2008-02-15 03:26:35 +00:00
Jeffrey Altman
9c7471bd5b DEVEL15-windows-volstat-vl-unknown-20080214
LICENSE MIT

Add volumes in the vl_unknown state to the list of objects to be
checked as offline or retried when an allbusy error is received
in cm_Analyze.


(cherry picked from commit 093433b981cd1917215a4ee6196c5a0a55352d92)
2008-02-14 14:13:28 +00:00
Jeffrey Altman
b737d13bfa DEVEL15-windows-vnovol-20080214
LICENSE MIT

avoid a crash when logging VNOVOL errors returned from cm_CheckOfflineVolume


(cherry picked from commit 1133cc441862f3f0d44f0ab380a7274ead672b0f)
2008-02-14 19:20:32 +00:00
Jeffrey Altman
df7932a364 DEVEL15-windows-osilog-savestring-20080214
LICENSE MIT

When osi_Log is disabled, osi_LogSaveString will no longer copy the
provided string into the circular log buffer.  This saves a huge amount
of time.


(cherry picked from commit 00bada9c5eb803c13a6b930e79684a470cf94278)
2008-02-14 14:09:18 +00:00
Jeffrey Altman
1dc9b5ce7b DEVEL15-windows-smb-special-share-names-20080212
LICENSE MIT

Treat srvsvc, wkssvc and ipc$ as pseudo files.  Permit them to be opened
and closed without actually existing.  For now we treat them as equivalent
to ioctls but this should eventually change.

Fix RAP processing to not reject names that exist in the root.afs volume
for GetInfo queries.


(cherry picked from commit 588a229110c92bd82b819916260ee9727759c4a0)
2008-02-13 05:58:25 +00:00
Jeffrey Altman
2124e5bedf DEVEL15-windows-dfs-referrals-20080212
LICENSE MIT

Add "ipc$" to the list of names that must not be automatically added
as a share name.

If the sharename is a partial match and therefore will not be added
automatically to the share list, make sure that we return an error
to the requestor.


(cherry picked from commit 44c20384ed5c0fdb4bce737a2a3c2b9c0af4472b)
2008-02-13 05:46:27 +00:00
Derrick Brashear
9d8e15cdc7 DEVEL15-redhat-openafs-kmodtool-20080213
LICENSE IPL10

rename to be specific to us.


(cherry picked from commit 31990decdef84adc1c9033944fcc59910720c834)
2008-02-13 05:28:58 +00:00
Jeffrey Altman
33fd7b0a69 DEVEL15-windows-no-wx-20080212
LICENSE MIT

Warnings as errors are nice, but when different compiler versions
stop building simply because a parameter is not being referenced
in a meaningful way its time for the option to be turned off


(cherry picked from commit e9e1d1a39bfe047a38f153afdc2fe8951174135c)
2008-02-12 14:02:35 +00:00
Jeffrey Altman
00811fa149 DEVEL15-windows-no-more-rpcns4-dll-20080212
LICENSE MIT

Remove all references to rpcns4.lib and its included functions RpcNsXXX.
These APIs are no longer supported on Vista.  Except for TaAfsAdmSvr
they had been commented out for a long time but we still continued to
link to the library.  Loading the library generates a no longer supported
error on Vista.  So lets get rid of it.


(cherry picked from commit a5e5736c67cdf3d08bce548447bc7635b65329c2)
2008-02-12 13:32:48 +00:00
Jeffrey Altman
443a232f3d DEVEL15-windows-afscreds-username-20080212
LICENSE MIT

Use GetUserNameEx to obtain the username instead of searching the registry.
Try UserPrincipalName first and fallback to SamCompatible.


(cherry picked from commit 512ec8f51880d4e9e1cc5564bd27991a2c2915d6)
2008-02-12 13:21:17 +00:00
Jeffrey Altman
50de73ac4a DEVEL15-windows-afscreds-vista-uac-20080211
LICENSE MIT
FIXES 82701

Modifying the registry and the startup shortcuts is not permitted under
Vista UAC.  Generate an error dialog and notify the end user.


(cherry picked from commit 7a8d8da95f5bd23fbb97d93840f3a2c5a145a695)
2008-02-11 16:44:27 +00:00
Jeffrey Altman
b8aeb52fdb DEVEL15-windows-freelance-20080211
LICENSE MIT

Do not return BAD_NETWORK_ERROR in response to attempts to create directories
or files in the Freelance root.afs volume.  Instead return ACCESS_DENIED.

BAD_NETWORK_ERROR was being sent because the Freelance cell has no
vldb servers.  Short circuit the error by testing for freelance
in CreateFile and MakeDir


(cherry picked from commit 61bb3b7f096f3b10075dcb1403879e3ec518276b)
2008-02-11 14:46:36 +00:00
Jeffrey Altman
f4b17cf4c9 DEVEL15-windows-version-20080210
LICENSE MIT

1.5.3100.0 == 1.5.31
openafs-devel-1_5_31
2008-02-11 04:04:05 +00:00
Derrick Brashear
1fa2ae43fd DEVEL15-openafs-1-5-31-20080210
LICENSE IPL10

make 1.5.31
2008-02-11 04:02:12 +00:00
Derrick Brashear
9d3214ef2e DEVEL15-magic-vnodes-20080210
LICENSE IPL10

add magic vnodes like the magic mounts we already have. you can now
cons up any afs vnode if you know the cell and fid.


(cherry picked from commit a5dbdd03b8187f0c2c146f330e9adc42e103432c)
2008-02-11 04:00:47 +00:00
Derrick Brashear
6232f1a001 DEVEL15-vos-syncv-dryrun-20080210
LICENSE IPL10

add a dryrun mode to vos syncvldb and syncserv


(cherry picked from commit b44afa839b7c5dd33ab83958f0871edac32fc7ac)
2008-02-11 03:44:23 +00:00
Tom Keiser
30de231d0b DEVEL15-dafs-vol-updates-20080210
LICENSE IPL10

make sure status is consistent in vol package when doing dafs


(cherry picked from commit c61712de68f6bcb59eac29cb59e9ae78d98cf179)
2008-02-11 03:37:22 +00:00
Jeffrey Altman
c248666fd8 DEVEL15-windows-windows-pipes-20080210
LICENSE MIT

do not search for cellnames that match srvsvc or wkssvc pipes


(cherry picked from commit d7235b1493917250a163dc4336f8b6ac83c6a07e)
2008-02-11 00:18:32 +00:00
Derrick Brashear
3b00131e0d DEVEL15-linux-x8664-mapfile-update-20080210
LICENSE IPL10

as reported by arolfe@mit.edu
2008-02-10 06:03:04 +00:00
Jeffrey Altman
55d55a78b9 DEVEL15-windows-notes-20080209
LICENSE MIT

more updates for 1.5.31
2008-02-09 12:39:21 +00:00
Jeffrey Altman
412531b232 DEVEL15-windows-wow64-registry-20080208
LICENSE MIT

Enable the 32-bit tools that are distributed for use in the WOW64 environment
to access the 64-bit registry keys instead of the 32-bit versions.  This
will remove the need to support both 64-bit and 32-bit versions of the
values.


(cherry picked from commit cd82af9d4e50798e8fe5cf0f2f022f1f40e2b59e)
2008-02-09 02:32:19 +00:00
Jeffrey Altman
efc997dd00 DEVEL15-windows-vnodeops-20080208
LICENSE MIT

Add support for returning RANGE_NOT_LOCKED errors

Do not attempt to add a mount point for share names of the form
<cell><mount-type><volume>.  Its just a big waste of time.  DNS
queries and CellServDB file searches are expensive.


(cherry picked from commit 0caf7c54dfac30c92587031af6a902f4d33b2e22)
2008-02-09 02:27:55 +00:00
Derrick Brashear
49bd277d28 DEVEL15-rx-kill-void-stupidity-20080208
LICENSE IPL10

remove VOID since it conflicts with this. and we shouldn't need it anymore anyway


(cherry picked from commit 607c0959f085a6d8283f78a9969c450930cab084)
2008-02-08 21:21:06 +00:00
Jeffrey Altman
18bea761a9 DEVEL15-windows-scache-locks-20080207
LICENSE MIT

add lock assertions to ensure we are holding write locks when
manipulating scache refcounts


(cherry picked from commit 629feb40c46658d08e5dc3e6dcd1114996b8c734)
2008-02-08 01:21:46 +00:00
Jeffrey Altman
dfb428ff4a DEVEL15-windows-fs-utils-20080207
LICENSE MIT

Use ismeta() correctly when parsing integer strings.


(cherry picked from commit 1c0c38b91836db8e90c73f340dd302000950a539)
2008-02-07 21:42:11 +00:00
Jeffrey Altman
4d8ed8defe DEVEL15-windows-scache-refcount-race-20080207
LICENSE MIT

if we are going to call a NoLock function better be holding the lock


(cherry picked from commit bb2dc54732c865f37b0e9c5b928c850daa795b4d)
2008-02-07 21:21:20 +00:00
Jeffrey Altman
f04e5a509b DEVEL15-windows-multi-check-servers-20080207
LICENSE MIT

for multi must compute the host string from the ip address for each server


(cherry picked from commit f2be22f71001852d5d461b34ba2c13d3d53d5e10)
2008-02-07 20:29:19 +00:00
Jeffrey Altman
b769970e17 DEVEL15-windows-volstat-20080207
LICENSE MIT

When updating the volume status do not introduce a deadlock by holding
cm_serverLock


(cherry picked from commit 1a95df210c51a4e1416e5996b99c5640e4265255)
2008-02-07 14:48:53 +00:00
Jeffrey Altman
0cd87a3335 DEVEL15-windows-volstat-20080206
LICENSE MIT

Ensure that the volume status is always updated after a server_ref
status change.


(cherry picked from commit 04cac1963a4716e57447b28c00629f0ef5a15258)
2008-02-07 06:14:59 +00:00
Jeffrey Altman
0222fceb6f DEVEL15-windows-multi-check-servers-20080206
LICENSE MIT

do not leak references

remove signed vs unsigned warnings

retry all RXGEN_OPCODE responses regardless of whether or not the entry
had to be moved to consolidate the list.


(cherry picked from commit 5d61f37949fd561f4c9d777cc67c5fd3db835e29)
2008-02-06 19:31:09 +00:00
Jeffrey Altman
92dedcce01 DEVEL15-windows-notes-20080206
LICENSE MIT

more changes for 1.5.31
2008-02-06 19:14:27 +00:00
Jeffrey Altman
ea54ef0c01 DEVEL15-windows-release-notes-20080206
LICENSE MIT

Updates for 1.5.31
2008-02-06 17:58:17 +00:00
Jeffrey Altman
3c7794c46f DEVEL15-windows-shell-add-symlink-20080206
LICENSE MIT

No longer attempt to validate the target of the symlink.
There is no method of doing so reliably.


(cherry picked from commit d78bff3dbd561f9d0f4976eeb264e601216a37c6)
2008-02-06 17:53:55 +00:00
Jeffrey Altman
7f024661e8 DEVEL15-windows-vnovol-20080206
LICENSE MIT

VNOVOL means the volume could not be attached which from the client
perspective is the same as being offline.  The VLDB should not be
queried in response to this error.


(cherry picked from commit a0e454bd41ec8b363f7669d620d4ff3caa8caf1d)
2008-02-06 16:52:53 +00:00
Derrick Brashear
5ed5f9668a DEVEL15-hpux-dafs-inline-functions-20080206
LICENSE IPL10

fix this for hpux


(cherry picked from commit 0254b1a8810c3ef9692c0c77f9851b563ea70832)
2008-02-06 12:21:48 +00:00
Jeffrey Altman
1a4713c162 DEVEL15-windows-notes-20080205
LICENSE MIT

update changes since 1.5.30
2008-02-06 05:58:57 +00:00
Derrick Brashear
e8b1cf1032 DEVEL15-linux-rx-kernel-listener-kill-task-directly-20080205
LICENSE IPL10

as reported by cg2v@andrew.cmu.edu


(cherry picked from commit 8274eb91f1c0fd94f3982ae6f12d8dcb8f388f44)
2008-02-06 01:32:13 +00:00
Jeffrey Altman
31895006fc DEVEL15-window-wix-dependencies-two-20080205
LICENSE MIT

afsvosadmin.dll is required by translate_et.exe


(cherry picked from commit 9732b4bb94a921a2a6bff0f985e44d04afacebd9)
2008-02-06 01:14:52 +00:00
Jeffrey Altman
bf0af66573 DEVEL15-windows-pioctl-path-charset-translation-20080205
LICENSE MIT
FIXES 84279

Do not translate the character set of the pioctl path data.
These paths were not provided by the file system but by the end user.
Therefore, they were not converted to the OEM character set.

With this change the AFS shell context menu will be displayed for
non-ASCII file names when ANSI file names are being used as well
as the fs commands will work.


(cherry picked from commit b85428263c75316ff8fd15c188617f4eb02670a8)
2008-02-05 20:49:30 +00:00
Jeffrey Altman
61169b321f DEVEL15-windows-multi-checkservers-20080205
LICENSE MIT

Instead of probing servers one at a time, use multi_rx versions of
RXAFS_GetCapabilities, RXAFS_GetTime and VL_ProbeServer to permit
simultaneous probing of servers in constant time regardless of the
number of servers.


(cherry picked from commit df5cfb3de1deae455d264780d3987c7fa6f33d2c)
2008-02-05 17:38:02 +00:00
Jeffrey Altman
ea2b14a4fb DEVEL15-multi-rx-calls-20080205
LICENSE MIT

Add multi versions of RXAFS_GetCapabilities, RXAFS_GiveUpAllCallBacks,
and VL_ProbeServer.


(cherry picked from commit 5c7dfcad135a1c34942d264be2b72196e3b96003)
2008-02-05 17:26:46 +00:00
Jeffrey Altman
4ee2fe920a DEVEL15-rxgen-multi-prototypes-20080205
LICENSE MIT

When 'multi' is applied to an RPC definition, rxgen produced split prototypes,
Start and End, but failed to produce the prototype for the normal RPC call.


(cherry picked from commit 0088e5cb20c90a899aacb62cd13b57a7bbe13432)
2008-02-05 17:18:42 +00:00
Jeffrey Altman
b13ed6dec1 DEVEL15-windows-down-time-20080205
LICENSE MIT

use clock time instead of osi_Time() for server down time tracking
for proper comparison with expiration times.


(cherry picked from commit ac614c7609f61394da1ea425940a09bf98fbc0ea)
2008-02-05 17:11:45 +00:00
Jeffrey Altman
36f7247bbb DEVEL15-windows-check-offline-volumes-20080205
LICENSE MIT

Do not hold the cm_volume_t mutex across the RPC


(cherry picked from commit db20cd6b718096530e8b2a5f7df7818c4a07783b)
2008-02-05 17:08:54 +00:00
Jeffrey Altman
75ce9992ce DEVEL15-windows-wix-translate_et-20080205
LICENSE MIT

Install the dll dependencies for translate_et as part of the client
component.


(cherry picked from commit 48fe8ad6ab68620dbfc26ad44f078c01ba5174c5)
2008-02-05 16:58:19 +00:00
Jeffrey Altman
18f928926d DEVEL15-dafs-windows-vnode-locking-20080204
LICENSE MIT

allow Windows to build with dafs-vnode-locking-20080204


(cherry picked from commit 08ca5fc1e1c883a5fc6b55cb076540845585243f)
2008-02-04 22:43:15 +00:00