4839 Commits

Author SHA1 Message Date
Simon Wilkinson
99a67b584e DEVEL15-pts-localauth-20080204
LICENSE IPL10

distilled from changes by mdw@umich.edu


(cherry picked from commit 496b5e4c978dec000c5f1e318968d74f8818d60b)
2008-02-04 19:42:02 +00:00
Tom Keiser
343799a424 DEVEL15-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


(cherry picked from commit ed25934c1fe96b143715025b49104e75dce9a361)
2008-02-04 18:51:37 +00:00
Jeffrey Altman
3c104051a2 DEVEL15-rx-xdr_rec-type-error-20080203
LICENSE MIT

x_inline second parameter is unsigned


(cherry picked from commit 647bbb509ddf59b80ce9965e89ac13ea26952e0f)
2008-02-04 04:05:25 +00:00
Jeffrey Altman
6e68f55194 DEVEL15-kauth-windows-handle-leak-20080203
LICENSE MIT

close() does not close sockets on Windows


(cherry picked from commit f68eb88ac0af27371232903de837de57f0790056)
2008-02-04 03:59:06 +00:00
Jeffrey Altman
4d33963a4a DEVEL15-rxmaxmtu-printf-format-error-20080203
LICENSE MIT

correct improper format string


(cherry picked from commit 80fc057c4dc0b3373723a19eeb6a9fa12a71f301)
2008-02-04 03:51:41 +00:00
Jeffrey Altman
194b958486 DEVEL15-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.


(cherry picked from commit 270cb6a9c9903d92b9b6276a542968667056066a)
2008-02-02 22:27:11 +00:00
Jeffrey Altman
10822dedd5 DEVEL15-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


(cherry picked from commit d52f19ca0aacdbfdf64bdeaae4153c1f2ec7f385)
2008-02-02 22:23:01 +00:00
Jeffrey Altman
038ebcbeb1 DEVEL15-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


(cherry picked from commit d094c65f14e674dfc334b9c6b3f5ac871e3dd1e6)
2008-02-02 13:43:21 +00:00
Jeffrey Altman
8449967538 DEVEL15-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.


(cherry picked from commit 753ba70cf257aded0fae158c556a25ca72243214)
2008-02-02 02:48:12 +00:00
Jeffrey Altman
28e2457a8d DEVEL15-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.


(cherry picked from commit c9339265f7036dd465a4bbf8e762fc246f45d6a4)
2008-02-02 00:24:49 +00:00
Jeffrey Altman
8b83bf92b6 DEVEL15-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.


(cherry picked from commit f224734230f6bfd27f1a1dfa159d1f38797c7999)
2008-02-02 00:20:07 +00:00
Jeffrey Altman
1b36eec459 DEVEL15-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

(For 1.5 branch remove all references to DJGPP in cm_config.[ch])


(cherry picked from commit 0f41a173925407cc7f6a597477ba25691f73d119)
2008-02-01 21:39:40 +00:00
Derrick Brashear
28cf013460 DEVEL15-h-enumerate-less-heavyhanded-check-20080201
LICENSE IPL10

if hostCount is too small this is fine or at least not fatal


(cherry picked from commit 4fe2978f69f6314284d5689ea1d9169360155450)
2008-02-01 21:33:40 +00:00
Jeffrey Altman
c06c682b7b DEVEL15-windows-netidmgr-20080201
LICENSE MIT

afs/stds.h before all others


(cherry picked from commit 4ad35bd5aa431332bea866775278a6ae9d65a5e2)
2008-02-01 21:17:15 +00:00
Simon Wilkinson
47cc61d5b9 DEVEL15-poll-drop-fsync-lock-20080201
LICENSE IPL10

update to drop fsync lock if we're using poll


(cherry picked from commit 43aa2bd2ba63e778f78d80b2a6a7d5ff991b0f97)
2008-02-01 15:27:30 +00:00
Derrick Brashear
29636802bb DEVEL15-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


(cherry picked from commit 462f1fb90defcb351657655442024f971705d945)
2008-01-31 20:18:36 +00:00
Jeffrey Altman
d8740f8ce4 DEVEL15-windows-noprobe-20080131
LICENSE MIT

do not mark servers down if they are not probed.


(cherry picked from commit 3d17e10e007ea3b4c3bd4a536a7e47c264d4701f)
2008-01-31 16:11:03 +00:00
Jeffrey Altman
6e2fe4431b DEVEL15-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.


(cherry picked from commit 03e72233178bf18a8978d62c3bcc4ebb743e6710)
2008-01-31 07:31:56 +00:00
Jeffrey Altman
6d32f5ade6 DEVEL15-windows-fs-newcell-20080130
LICENSE MIT

prevent the afs client service from crashing when fs newcell is executed


(cherry picked from commit 02a80e05a73d9df50fbd427e30ca862706afcbc1)
2008-01-31 05:49:00 +00:00
Jeffrey Altman
fb051aaac7 DEVEL15-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


(cherry picked from commit 3d0ebe1f7841ac6ca9db593b587a13d85a950ac5)
2008-01-31 03:03:13 +00:00
Jeffrey Altman
2a9a304964 DEVEL15-rx-edquot-20080130
LICENSE MIT

Conditionalize error translation on the existence of EDQUOT not
on platform macros


(cherry picked from commit 9ce814aa99b6877843f38c7fdd8fde09cb2a743c)
2008-01-31 00:28:23 +00:00
Simon Wilkinson
f5dcf2aa13 DEVEL15-linux-keytype-exports-20080130
LICENSE IPL10

try to work even if key_type_keyring isn't exported


(cherry picked from commit 9751c68faaff4ab5e4fae7aaad082073ca4daebf)
2008-01-30 17:30:38 +00:00
Simon Wilkinson
a78a5e3637 DEVEL15-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...


(cherry picked from commit c5afa335a8ffb86cf17c32173eb0e1c26500dd80)
2008-01-30 17:26:01 +00:00
Jeffrey Altman
ff80258c24 DEVEL15-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)


(cherry picked from commit 162cb95707f739170ab4a025a801a430c86ae70a)
2008-01-30 14:57:37 +00:00
Alistair Ferguson
3cd75333ae DEVEL15-syncvl-fix-bogus-rw-update-20080129
LICENSE IPL10

pass in a ref to entry correctly


(cherry picked from commit 9023049040e5705ac5dc26800022973a1acefff2)
2008-01-29 20:41:27 +00:00
Jeffrey Altman
d035d6ded0 DEVEL15-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.


(cherry picked from commit 2542c5e07f52c89f25f290153f0b4669076ae654)
2008-01-29 00:21:52 +00:00
Jeffrey Altman
07ad5f5393 DEVEL15-windows-network-type-allocation-20080128
LICENSE MIT

Microsoft has defined for us:

#define     WNNC_NET_OPENAFS     0x00390000


(cherry picked from commit fffcc1dec3d4fc905239b2890cb4f960efdff4ba)
2008-01-28 19:51:20 +00:00
Derrick Brashear
c2243623e4 DEVEL15-revert-linux-2624-rc5-updates-20080127
LICENSE IPL10
FIXES 83716

the generic 2.6.24 patch should address all this.


(cherry picked from commit a0fd168db5e24fca5f08ccf67d53f58c6f05fa35)
2008-01-28 19:30:06 +00:00
Marc Dionne
ab40b4f7c4 DEVEL15-sysctl-table-checking-modpost-fun-fun-20080127
LICENSE IPL10
FIXES 83890

try again to do something sensible so we don't default wrong


(cherry picked from commit 5a93678e3943fa2c71d51f25f84b4efd5f3700e6)
2008-01-28 19:15:29 +00:00
Jeffrey Altman
baa645b73d DEVEL15-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.


(cherry picked from commit 36bdf1ccd859fb0039d8ae9abd04f9eea08d704d)
2008-01-28 07:23:35 +00:00
Jeffrey Altman
fad6f22197 DEVEL15-windows-afskfw-20080127
LICENSE MIT

when tracking ccache names be sure to include the cache type prefix.


(cherry picked from commit 3f3545024100f3efd7bb76925d3cb1b1c15ae3f4)
2008-01-28 07:13:24 +00:00
Derrick Brashear
9ec7705567 DEVEL15-afsdb-fix-20080126
LICENSE IPL10

pull bugfix from 1.4


(cherry picked from commit 7526681ef5c57a4ffe0c343717c3ed65a9120768)
2008-01-28 01:39:18 +00:00
Jason Edgecombe
04c1fe61d1 DEVEL15-macos-panic-decoder-20080127
LICENSE IPL10

panic log decoder from Jason. Still needs some work for Leopard but we should
be able to make a go of this


(cherry picked from commit 711dc57c7fa053efa58c02df8788da1a2c7889bf)
2008-01-27 18:46:14 +00:00
Derrick Brashear
75fc443583 DEVEL15-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.


(cherry picked from commit 7dc71d1154294cdc5f5aba4c3e58a00972318960)
2008-01-24 23:56:47 +00:00
Mike Meffie
bb3d12809c DEVEL15-tests-update-20080124
LICENSE IPL10

update test scripting


(cherry picked from commit 80f7294490e1d1423a5f7482ed924dda8bab1ba8)
2008-01-24 23:50:37 +00:00
Jeffrey Altman
19cd7d9702 DEVEL15-rxkad-v5-dot-check-20080124
LICENSE MIT

Export rx_SetSecurityConfiguration on Windows


(cherry picked from commit 89d93d9ad7862c5de0587a84d99c567bf5a61d14)
2008-01-24 16:08:11 +00:00
Jeffrey Altman
cb4e53d30f DEVEL15-windows-get-volume-no-reset-flag-20080124
LICENSE MIT

There are circumstances where a volume object is being accessed and the
volume is marked indicating that the volume location information is out
of date but where it is also pointless and perhaps dangerous to block
waiting for the rpc to complete.  One example is when processing the
cmdebug requests.  If we know that we are not going to use the volume
object to contact a server, then we can now set the CM_GETVOL_FLAG_NO_RESET
flag.


(cherry picked from commit d32156e5c1fb36994650754a11379df6ccc94909)
2008-01-24 15:31:12 +00:00
Jeffrey Altman
7f846c3396 DEVEL15-windows-symlink-dot-dot-20080124
LICENSE MIT

when moving up in the directory tree we search the recorded fid list to
find a matching fid that we have already crossed.  we must also reset
the fid count based upon what we discover.


(cherry picked from commit 16a90b2f8dfe875991bca0dee516c531fcc3aeee)
2008-01-24 15:20:46 +00:00
Derrick Brashear
e72830d3f3 DEVEL15-redhat-spec-more-arches-20080123
LICENSE IPL10

support sprc, sparc64, ppc, ppc64, s390, s390x. we should be able to cope with
all these. if not, fix it.


(cherry picked from commit ef6fc588bcab9a59e54050899937407be962b074)
2008-01-23 21:38:45 +00:00
Derrick Brashear
3383787f54 DEVEL15-linux-key-type-detection-once-20080123
LICENSE IPL10

doubled configure test from 2 sources.


(cherry picked from commit 9a45a546747dad7a70b24b76b1a02bf398c22762)
2008-01-23 13:47:34 +00:00
Simon Wilkinson
756c08b6cf DEVEL15-redhat-kmodtool-20080122
LICENSE IPL10

install simon's modified kmodtool


(cherry picked from commit 434c25fee15162dff64f2c18a971023b146d6118)
2008-01-23 05:30:30 +00:00
Simon Wilkinson
8be8d54156 DEVEL15-rxkad-v5-dot-check-20080122
LICENSE IPL10
FIXES 75101

give an option to not enforce the dotted principal check. document it.


(cherry picked from commit 98a68f9b021a06d056fb3b97681b9cfc04873d55)
2008-01-23 04:18:10 +00:00
Derrick Brashear
6d0395c1ca DEVEL15-viced-fsync-glock-creation-20080122
LICENSE IPL10

create fsync glock and cond before we initialize volume package. oops?


(cherry picked from commit 0e8adf69538638b8caa56d9b1fa72beba74734bd)
2008-01-23 03:21:45 +00:00
Derrick Brashear
7b9c6215a4 DEVEL15-redhat-packaging-keep-up-with-the-joneses-20080122
LICENSE IPL10

track new manpages


(cherry picked from commit 0fab6d9600769dd219fd6e968c4a6bae9ed5d497)
2008-01-22 21:05:30 +00:00
Derrick Brashear
514913d711 DEVEL15-vos-volser-enhancements-20080121
LICENSE IPL10

add option to addsite to allow adding a site where there is already a release-
equivalent volume resident, where thus we don't want to mark unreleased

(possible by dumping an existing RO and restoring with -readonly at the
 new site)

add ability to vos clone to a readonly or backup with the correct ID and name

add ability when restoring a RW to a new site to leave the volume at the old
site intact

all changes are internal to vos and can be used with any OpenAFS from 2006
or later (supporting changes in namei to not create volumes with bad parent
id went in in December 2005)


(cherry picked from commit e1c4e77d13122c2bb66d532ffd9dfc2e75318c04)
2008-01-22 05:15:30 +00:00
Mike Meffie
11054b3941 DEVEL15-tests-update-20080121
LICENSE IPL10

update test scripting


(cherry picked from commit 1181ea034623541765fbc5c23df55ebaf577c083)
2008-01-21 21:04:53 +00:00
Evan Broder
fc12d1c024 DEVEL15-macos-packaging-using-afs-conf-when-possible-20080121
LICENSE IPL10
FIXES 81825

switch to afs.conf as other ports use instead of afsd.options,
when possible
2008-01-21 20:57:23 +00:00
Derrick Brashear
98b266f913 DEVEL15-make-avoid-double-slash-20080121
LICENSE IPL10

avoid having double / in make commands


(cherry picked from commit 6a7461e6f8dad79894c6d2ad11edfdba689c4c77)
2008-01-21 18:38:02 +00:00
Jeffrey Hutzelman
5d37c040b0 DEVEL15-solaris-vfsroot-refcount-issue-20080121
LICENSE IPL10

fix issue with afs root vnode refcount dropping to 0


(cherry picked from commit fc91cf4314eb768a2f83f198645e553b5fa778de)
2008-01-21 17:37:30 +00:00
Simon Wilkinson
1b907f24c9 DEVEL15-redhat-spec-update-20080121
LICENSE IPL10

update specfile to default to fedorakmod


(cherry picked from commit 75c10322ff3a3ef5e735d8821051678526e42275)
2008-01-21 17:09:48 +00:00