Commit Graph

4411 Commits

Author SHA1 Message Date
Jeffrey Altman
04cac1963a windows-volstat-20080206
LICENSE MIT

Ensure that the volume status is always updated after a server_ref
status change.
2008-02-07 06:13:11 +00:00
Jeffrey Altman
5d61f37949 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.
2008-02-06 19:29:44 +00:00
Jeffrey Altman
d78bff3dbd 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.
2008-02-06 17:53:12 +00:00
Jeffrey Altman
a0e454bd41 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.
2008-02-06 16:45:29 +00:00
Derrick Brashear
0254b1a881 hpux-dafs-inline-functions-20080206
LICENSE IPL10

fix this for hpux
2008-02-06 12:20:07 +00:00
Jeffrey Altman
66d8633b46 windows-cleanup-head-20080205
LICENSE MIT

cleanup junk that does not belong
2008-02-06 02:08:32 +00:00
Derrick Brashear
8274eb91f1 linux-rx-kernel-listener-kill-task-directly-20080205
LICENSE IPL10

as reported by cg2v@andrew.cmu.edu
2008-02-06 01:23:50 +00:00
Jeffrey Altman
9732b4bb94 window-wix-dependencies-two-20080205
LICENSE MIT

afsvosadmin.dll is required by translate_et.exe
2008-02-06 01:13:47 +00:00
Jeffrey Altman
b85428263c 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.
2008-02-05 20:48:30 +00:00
Jeffrey Altman
df5cfb3de1 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.
2008-02-05 17:37:21 +00:00
Jeffrey Altman
5c7dfcad13 multi-rx-calls-20080205
LICENSE MIT

Add multi versions of RXAFS_GetCapabilities, RXAFS_GiveUpAllCallBacks,
and VL_ProbeServer.
2008-02-05 17:24:15 +00:00
Jeffrey Altman
0088e5cb20 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.
2008-02-05 17:17:44 +00:00
Jeffrey Altman
ac614c7609 windows-down-time-20080205
LICENSE MIT

use clock time instead of osi_Time() for server down time tracking
for proper comparison with expiration times.
2008-02-05 17:10:34 +00:00
Jeffrey Altman
db20cd6b71 windows-check-offline-volumes-20080205
LICENSE MIT

Do not hold the cm_volume_t mutex across the RPC
2008-02-05 17:07:13 +00:00
Jeffrey Altman
48fe8ad6ab windows-wix-translate_et-20080205
LICENSE MIT

Install the dll dependencies for translate_et as part of the client
component.
2008-02-05 16:56:49 +00:00
Jeffrey Altman
08ca5fc1e1 dafs-windows-vnode-locking-20080204
LICENSE MIT

allow Windows to build with dafs-vnode-locking-20080204
2008-02-04 22:41:28 +00:00
Simon Wilkinson
496b5e4c97 pts-localauth-20080204
LICENSE IPL10

distilled from changes by mdw@umich.edu
2008-02-04 19:41:49 +00:00
Tom Keiser
ed25934c1f dafs-vnode-locking-20080204
LICENSE IPL10
FIXES 84778

* Vnode package concurrency model was overhauled. Unlike the old model,
where concurrency was controlled via reader/writer locks, the new model
uses a per-vnode finite state automata.
* add several new volume states to deal with volume vnode list operations
* a new FSSYNC command code was added to allow volume utilities to close
out a volume operation without causing the fileserver to mount the volume
* a new FSSYNC command code was added to allow volume utilities to
transition a volume into a hard error state
* the salvageserver has been modified to keep volume group partition
path data coherent with the fileserver (like many other parts of the
volume package, this code assumes all members of the group are stored on
the same vice partition)
* make salvageserver correctly handle volume state when a child worker
process terminates abnormally
* update volume pre-attachment code to deal with move volumes across
partitions on the same server
* add volume state sanity checks to more volume package interfaces
* original vos online patch introduced a race condition; rearchitect vos
online/offline to eliminate race condition, and reduce i/o load caused
by operation
* unify duplicate code in volserver related to servicing vos examine and
vos listvol requests
* add doxygen formatted comment blocks to numerous volume package elements
* various updates to fssync-debug to allow dumping vnode state, and
updates to deal with added volume and vnode states
* several 1.5-specific fixes related to fssync and salvsync
2008-02-04 18:50:54 +00:00
Jeffrey Altman
647bbb509d rx-xdr_rec-type-error-20080203
LICENSE MIT

x_inline second parameter is unsigned
2008-02-04 04:05:00 +00:00
Jeffrey Altman
f68eb88ac0 kauth-windows-handle-leak-20080203
LICENSE MIT

close() does not close sockets on Windows
2008-02-04 03:56:13 +00:00
Jeffrey Altman
80fc057c4d rxmaxmtu-printf-format-error-20080203
LICENSE MIT

correct improper format string
2008-02-04 03:50:05 +00:00
Jeffrey Altman
270cb6a9c9 windows-vista-resume-smb-binding-20080202
LICENSE MIT

another plane trip, more tweaks to the logic for handling re-binding
of the netbios name after a power management resume event.
2008-02-02 22:25:40 +00:00
Jeffrey Altman
d52f19ca0a windows-dfs-referrals-symlinks-20082002
LICENSE MIT

another small tweak to ensure that we don't create a symlink for "fo" when
a mountpoint or symlink for "foo" exists
2008-02-02 22:22:20 +00:00
Jeffrey Altman
d094c65f14 windows-cellservdb-location-20080202
LICENSE MIT

Modify the search order for determining the location of CellServDB
and other client configuration files.

1. AFSCONF environment variable
2. registry setting
3. NEW - use All Users\AppData\OpenAFS\Client only if CellServDB exists
4. use Program Files\OpenAFS\Client
2008-02-02 13:38:50 +00:00
Jeffrey Altman
753ba70cf2 windows-more-cellservdb-consolidation-20080201
LICENSE MIT

Merge cellconfig.c and the afsreg library.
Redefine the location of the client cellservdb directory in dirpath
in terms of the cellservdb direction and not the install directory.
(although they point at the same thing now by default.)

Future changes to the location of the cellservdb directory should
be made in afsreg.
2008-02-02 02:46:16 +00:00
Jeffrey Altman
c9339265f7 windows-client-config-cellservdb-20080201
LICENSE MIT

modify cellservdb.c to use cm_GetCellServDB() from libafsconf.dll.
This results in both libadmin and the afs client control panel using
the same CellServDB as the rest of the system.
2008-02-02 00:23:44 +00:00
Jeffrey Altman
f224734230 windows-build-system-20080201
LICENSE MIT

re-order the building of directories so that libafsconf.dll is built
before other directories that might want to use it.
2008-02-02 00:18:27 +00:00
Jeffrey Altman
0f41a17392 windows-refactor-cm_config-20080201
LICENSE MIT

cm_config.c was a nightmare.  there were several functions that each
computed the location of the OpenAFS Client configuration directory
in a slightly different way.  Now there is a single exported function
that determines the directory, and another that determines the name
of the CellServDB file.  All of the other functons in cm_config.c and
throughout the src/WINNT/afsd directory now use those two functions.

The new rule for determining the location of the OpenAFS Client
configuration directory and hence the CellServDB file location is:

1. check the AFSCONF environment variable
2. check the HKLM\SOFTWARE\OpenAFS\Client   CellServDBDir registry value
3. use AFSDIR_CLIENT_ETC_DIRPATH which currently refers to
   \Program Files\OpenAFS\Client
2008-02-01 21:42:17 +00:00
Derrick Brashear
4fe2978f69 h-enumerate-less-heavyhanded-check-20080201
LICENSE IPL10

if hostCount is too small this is fine or at least not fatal
2008-02-01 21:31:32 +00:00
Jeffrey Altman
4ad35bd5aa windows-netidmgr-20080201
LICENSE MIT

afs/stds.h before all others
2008-02-01 21:14:40 +00:00
Simon Wilkinson
43aa2bd2ba poll-drop-fsync-lock-20080201
LICENSE IPL10

update to drop fsync lock if we're using poll
2008-02-01 15:25:52 +00:00
Derrick Brashear
462f1fb90d solaris10-cleanup-friendliness-20080130
LICENSE IPL10

based on patch from mib@unimelb.edu.au

clean up taskq after ourselves and don't leave ourself marked system processes
2008-01-31 20:17:45 +00:00
Jeffrey Altman
3d17e10e00 windows-noprobe-20080131
LICENSE MIT

do not mark servers down if they are not probed.
2008-01-31 16:09:56 +00:00
Jeffrey Altman
03e7223317 windows-edquot-20080131
LICENSE MIT

For Windows, EDQUOT == WSAEDQUOT.   Define it in the right places
so that in the end STATUS_OUT_OF_QUOTA can be returned to the application.
2008-01-31 07:26:26 +00:00
Jeffrey Altman
02a80e05a7 windows-fs-newcell-20080130
LICENSE MIT

prevent the afs client service from crashing when fs newcell is executed
2008-01-31 05:47:34 +00:00
Jeffrey Altman
3d0ebe1f78 windows-nsis-installer-20080130
LICENSE MIT

move afslogon.dll, afscpcc.exe and afs_cpa.cpl to
\Program Files\OpenAFS\Client\Program in order to get them out
of the %windir% tree
2008-01-31 03:01:46 +00:00
Jeffrey Altman
9ce814aa99 rx-edquot-20080130
LICENSE MIT

Conditionalize error translation on the existence of EDQUOT not
on platform macros
2008-01-31 00:25:59 +00:00
Simon Wilkinson
9751c68faa linux-keytype-exports-20080130
LICENSE IPL10

try to work even if key_type_keyring isn't exported
2008-01-30 17:30:23 +00:00
Simon Wilkinson
c5afa335a8 linux-rx-kernel-listener-kill-task-directly-20080130
LICENSE IPL10

based on work from shadow@dementia.org

since the tasklist lock and rcu stuff can/will be de-exported, and we don't
need it anyway...
2008-01-30 17:25:42 +00:00
Jeffrey Altman
162cb95707 windows-ipaddr-change-server-deadlock-20080130
LICENSE MIT

avoid a deadlock during server probes initiated by the ipaddr change
daemon thread.

(missed a case in DELTA windows-ipaddr-change-server-deadlock-20080106)
2008-01-30 14:53:44 +00:00
Alistair Ferguson
9023049040 syncvl-fix-bogus-rw-update-20080129
LICENSE IPL10

pass in a ref to entry correctly
2008-01-29 20:39:31 +00:00
Jeffrey Altman
2542c5e07f windows-lanahelper-20080128
LICENSE MIT

The algorithms that were used to produce a Netbios name were broken.
The name that was produced when the hostname was too long was in fact
longer than the maximum permitted netbios name.

Also, the "NetbiosName" value was not used as a suffix when the loopback
adapter was not installed.  The hardcoded string "AFS" was used instead.
2008-01-29 00:20:33 +00:00
Jeffrey Altman
fffcc1dec3 windows-network-type-allocation-20080128
LICENSE MIT

Microsoft has defined for us:

#define     WNNC_NET_OPENAFS     0x00390000
2008-01-28 19:49:51 +00:00
Derrick Brashear
a0fd168db5 revert-linux-2624-rc5-updates-20080127
LICENSE IPL10
FIXES 83716

the generic 2.6.24 patch should address all this.
2008-01-28 19:29:49 +00:00
Marc Dionne
5a93678e39 sysctl-table-checking-modpost-fun-fun-20080127
LICENSE IPL10
FIXES 83890

try again to do something sensible so we don't default wrong
2008-01-28 19:13:46 +00:00
Jeffrey Altman
36bdf1ccd8 windows-freelance-improved-dfs-handling-20080127
LICENSE MIT

Cell names are published as share names.  As a result they are searched
for as part of the Dfs Referral evaluation.  If share "foo" can not be
reached, the CIFS client will fallback to searching for "fo" as well.

Since the freelance client automatically adds a symlink for prefixes
of the cell name, this results in both "foo" and "fo" being added to
the freelance root.afs volume.  This patch prevents that negative side
effect.
2008-01-28 07:22:32 +00:00
Jeffrey Altman
3f35450241 windows-afskfw-20080127
LICENSE MIT

when tracking ccache names be sure to include the cache type prefix.
2008-01-28 07:12:09 +00:00
Derrick Brashear
7526681ef5 afsdb-fix-20080126
LICENSE IPL10

pull bugfix from 1.4
2008-01-28 01:37:38 +00:00
Jason Edgecombe
711dc57c7f macos-panic-decoder-20080127
LICENSE BSD

panic log decoder from Jason. Still needs some work for Leopard but we should
be able to make a go of this
2008-01-27 18:44:28 +00:00
Derrick Brashear
7dc71d1154 redhat-support-dkms-20080124
LICENSE IPL10

attempt to provide dkms support.
this does work on my fc8 test host. it may not work in all cases.
2008-01-24 23:55:02 +00:00