5067 Commits

Author SHA1 Message Date
Derrick Brashear
05431752c5 DEVEL15-klog-aix-missing-symbols-20080418
LICENSE IPL10

aix's krb5 isn't heimdal or mit. it has dangling symbols. yay!


(cherry picked from commit f3056feadbd6866bddc20e040b5005baeb4c8cad)
2008-04-18 14:56:21 +00:00
Rainer Toebbicke
c258c2da45 DEVEL15-linux-fakestat-avoid-mtpt-fillin-issue-20080415
LICENSE IPL10
FIXES 93898

"It is actually the detection of a "cell" in the mount point string
which triggers the (loosely consistent) fakestat handling - it's
treated like a foreign cell and the mount point is never "completely
evaluated", i.e. logically replaced by the root directory of the
volume in question. As a result, callbacks are ignored, as they go
against the directory and not the mount point."


(cherry picked from commit 5f6b59f4601e9892e082a145a75e5872818d2e06)
2008-04-15 13:29:37 +00:00
Jeffrey Altman
6bb168751b DEVEL15-windows-volume-20080414
LICENSE MIT

1. Convert cm_volume_t mutex to a rwlock (rw).

2. Don't hold cm_volume_t lock across RPCs

3. Add CM_VOLUMEFLAG_UPDATING_VL flag to prevent multiple threads
   from performing volume update calls at the same time on the same
   volume set.

4. Convert the .rw, .ro, and .bk cm_vol_state_t members of cm_volume_t
   to an array of cm_vol_state_t members indexed using the pre-existing
   RWVOL, ROVOL and BACKVOL preprocessor symbols.  This will permit
   consolidation of code and make it easier to add new volume types
   to the volume set in the future.


(cherry picked from commit 4440b9a61247a0da020042b4262695f0ef7d35de)
2008-04-14 23:44:03 +00:00
Derrick Brashear
26e3d532de DEVEL15-volser-prototype-include-fix-20080414
LICENSE IPL10

so tvolser can build again


(cherry picked from commit 7936739f44372458fffb86058b3279d53995bd8b)
2008-04-14 21:25:52 +00:00
Jeffrey Altman
81dfd46605 DEVEL15-windows-freelance-20080411
LICENSE MIT

Do not set the DV on the rootSCachep because doing so disables
the use of MergeStatus().

Do not remove the rootSCachep from the hash table because doing
so makes causes a second cm_scache_t object for that fid to be created
that is not the root.


(cherry picked from commit 7bfe889eb2e900719c70cd9fd29f82569ef4c04c)
2008-04-11 18:46:24 +00:00
Jeffrey Altman
7bbc074881 DEVEL15-vos-noresolve-option-20080410
LICENSE MIT

Add a -noresolve option to all vos commands.  This permits the display
of servers by IP address instead of DNS name.  Very useful when 127.0.0.1
is registered as the server address or when trying to eliminate
multi-homed addresses.


(cherry picked from commit 40d41c191bdb64256d4ccf6a5f1bab8124249e63)
2008-04-10 18:52:26 +00:00
Simon Wilkinson
073dfcd668 DEVEL15-void-return-casts-20080409
LICENSE IPL10

do apporpriate casts for void returns to placate irix cc


(cherry picked from commit fab6653cf714ee6121cd7a22857f22f86a969559)
2008-04-09 17:39:57 +00:00
Jeffrey Hutzelman
a35556b5ad DEVEL15-linux-nfstrans-avoid-access-deadlock-20080409
LICENSE IPL10

avoid deadlocking in access while we're already holding locks as filldir is doing its work


(cherry picked from commit 7faf596b439cce022cfa4b3174cd17a1f0a0901e)
2008-04-09 14:39:19 +00:00
Asanka Herath
1147707e75 DEVEL15-windows-nsis-vs2005-20080409
LICENSE MIT

Add support for building with VS2005 Runtime Libraries.
For the release build use the vcredist_<arch>.exe package.
For the debug build, build an msi from the merge modules
and then install that package.


(cherry picked from commit 494568ea929af96bf2b641e31b970cf695f13240)
2008-04-09 05:36:53 +00:00
Simon Wilkinson
46dd9239ed DEVEL15-redhat-spec-updates-20080408
LICENSE IPL10
FIXES 93616

update to correctly fill in specfile from source tree


(cherry picked from commit 1495088e4168a2ddf35135db872777b9e51823b3)
2008-04-08 19:36:10 +00:00
Jeffrey Altman
ff93caae55 DEVEL15-windows-strlwr-cellname-20080407
LICENSE MIT

cellnames are case insensitive and by convention they are lowercased.


(cherry picked from commit 0d2e36cac80d4c49db8e6b12988344107b7b1cd4)
2008-04-07 15:20:19 +00:00
Jeffrey Altman
5885116e65 DEVEL15-windows-freelance-three-20080407
LICENSE MIT

deliver notification events to watchers when adding mount points or
symlinks to the freelance root.afs volume.


(cherry picked from commit c108d606f59b6f5edcb863de3f3d9d7ecc44f04a)
2008-04-07 15:17:47 +00:00
Jeffrey Altman
15fa0fedea DEVEL15-windows-freelance-two-20080407
LICENSE MIT

do not add the scp into the hash table twice.


(cherry picked from commit 8f57819a99273812c1d9ba7ec504689b05b83b14)
2008-04-07 07:00:46 +00:00
Jeffrey Altman
c8d8ea2e30 DEVEL15-windows-freelance-20080407
LICENSE MIT

When freelance symlinks and mountpoints were modified the target string
value was not being updated and the old data was not being invalidated.


(cherry picked from commit a642541b960f601d7396c28ca08ee7fd32975ce6)
2008-04-07 06:48:19 +00:00
Marc Dionne
4d7406d4d7 DEVEL15-linux-no-syscall-probe-with-no-init-mm-20080406
LICENSE IPL10
FIXES 88000

no better idea for this, got to do something... push this for now


(cherry picked from commit c7ee4828e0d7c631fcd827d1a4c9af8bebb2fc2d)
2008-04-07 04:49:00 +00:00
Jeffrey Altman
c7afb01bce DEVEL15-windows-fid-hash-20080406
LICENSE MIT

1. During the conversion to hash based FID comparisons the cm_GetSCache()
   lookups from the cm_ioctl.c (CM_IOCTL_QOPTS_HAVE_FID) and from FIDs
   returned by cm_LookupSearchProc() were broken.

2. In cm_LookupInternal(), ensure that an error is returned if rock.found
   is FALSE.  A failure to return an error was resulting in cm_GetSCache()
   producing an object for FIDs with vnode=0,unique=0

3. cm_GetSCache(), remove the warning check for vnode=0,unique=0

4. reapply the synchronization logic to async store requests in cm_SyncOp().
   The lack of synchronization is causing requests to complete out of order
   which is confusing the SMB redirector when under heavy load.


(cherry picked from commit ef19cea44c433ec7c1d214e8229b5fb4ea4b6ef6)
2008-04-06 14:37:22 +00:00
Derrick Brashear
63ab4ad9cf DEVEL15-revert-ubik-changes-20080405
LICENSE IPL10

these changes are unneeded; remove them


(cherry picked from commit 5dd7e65c6fd233e70d98b271cbf48ac2356efe0f)
2008-04-05 19:03:24 +00:00
Kevin McBride
941f7e728e DEVEL15-volser-preclude-alternate-partition-clones-20080404
LICENSE IPL10

patch based on work from shadow@dementia.org

the idea is to preclude multiple copies of a volume replica on a server,
as there's nothing to indicate which copy is correct and you can end up serving
stale data when you think you've just released and are serving something good


(cherry picked from commit 5640c4a1b5bea4e61ff2e6c2da02265c3e1ba612)
2008-04-04 20:58:45 +00:00
Derrick Brashear
2cee167d04 DEVEL15-tubik-more-makefile-fun-20080404
LICENSE IPL10

kill off library name reuse


(cherry picked from commit e62727e328c8fad2a5b7b305745a248d9aabe19a)
2008-04-04 16:40:04 +00:00
Kevin McBride
38b3c87076 DEVEL15-tubik-vos-20080403
LICENSE IPL10

build pthreaded vos


(cherry picked from commit 65e701fee4968b17066bb81e25b7adaa4024d4f3)
2008-04-03 17:41:29 +00:00
Derrick Brashear
73af04420b DEVEL15-tubik-20080403
LICENSE IPL10

avoid bogus dependency here too


(cherry picked from commit 5f67c569455f0597d42b5a2cccf89e470ed74c53)
2008-04-03 15:20:53 +00:00
Derrick Brashear
ad1c381bbf DEVEL15-tubik-one-more-20080402
LICENSE IPL10

handle the rest of the issues


(cherry picked from commit bc1a7f1ee8fb12eeb7b54f89987e6f240627a579)
2008-04-03 04:54:53 +00:00
Derrick Brashear
54a40fb043 DEVEL15-tubik-makefiles-fun-20080402
LICENSE IPL10

these fixes brought to you by delicious beer.


(cherry picked from commit 33161360381d5ec67f884c087da26bd8009a0511)
2008-04-03 02:20:44 +00:00
Derrick Brashear
55b51230ad DEVEL15-tubik-makefile-fixes-20080402
LICENSE IPL10

don't use gmake macros. ick


(cherry picked from commit ec02ff4342844c0d83ed3e9e5e27aef7c3af7204)
2008-04-02 22:44:04 +00:00
Steven Jenkins
984774fba8 DEVEL15-pthreaded-ubik-20080402
LICENSE IPL10

add pthreaded ubik and various binaries


(cherry picked from commit 9fbbc3f50cc6f04796a8a444bc06acc66a9c55a6)
2008-04-02 21:06:31 +00:00
Marc Dionne
4acf4624d2 DEVEL15-linux-flush-compare-20080402
LICENSE IPL10

because i let this slip out like this. sigh.


(cherry picked from commit 93c326ef08cacc730470a7af75041d943825260b)
2008-04-02 19:21:49 +00:00
Harald Barth
e8595185ca DEVEL15-linux-flush-unlock-20080402
LICENSE IPL10

because i let this slip out like this. sigh.


(cherry picked from commit 31d06c78b2f8ea14877bebf05097b33cc7e233f2)
2008-04-02 14:10:00 +00:00
Tom Keiser
d17e469ade DEVEL15-salvageserver-init-handler-lock-20080401
LICENSE IPL10

init lock


(cherry picked from commit 5fe4de574dba287b8197263028ac49014955a483)
2008-04-01 21:29:12 +00:00
Derrick Brashear
09b0559082 DEVEL15-tsalvaged-clean-20080401
LICENSE IPL10

make clean target work here


(cherry picked from commit 0faa1e0412c4cb22e6820473fa60cdea5d516550)
2008-04-01 21:17:27 +00:00
Derrick Brashear
6a2084b9a3 DEVEL15-vol-osi-assert-20080401
LICENSE IPL10

undo the old windows afs assert undoing


(cherry picked from commit 48838bab91b50a5cf8cd3fb7d1902e6b7525bb86)
2008-04-01 21:05:36 +00:00
Derrick Brashear
053b53c4ae DEVEL15-aklog-debug-text-dont-deref-null-ptr-20080401
LICENSE IPL10

yeah, this is sort of dumb

AUTHOR
LICENSE IPL10

====================
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.
====================
LICENSE IPL10

yeah, this is sort of dumb


(cherry picked from commit 695d1aa896cf38cfe9856ba1c45b6b3cca7565a2)
2008-04-01 19:15:40 +00:00
Simon Wilkinson
39634597ca DEVEL15-aklog-tidyup-20080401
LICENSE IPL10
FIXES 92643

remove windows code (osolete) from unix branch
do other minor cleanup


(cherry picked from commit 3f54c934b9c933d5f34644a096c821375db17d97)
2008-04-01 18:44:40 +00:00
Derrick Brashear
e06edab7c8 DEVEL15-vlserver-checksignal-returns-voidstar-20080401
LICENSE IPL10
FIXES 92662

CheckSignal returns void*, don't try to return an int directly.


(cherry picked from commit 94aa281af8c9cb74561a32a34cb7cd5b5da97cdf)
2008-04-01 17:51:31 +00:00
Tom Keiser
b3e5653325 DEVEL15-synvageserver-no-rx-server-refs-20080401
LICENSE IPL10
FIXES 92648

remove reference to rx service mutex and thread tracking. we need to ensure there's nothing else either but this is true now


(cherry picked from commit 9bdb8599c094821d0dfb29505cc63aa2a8460ae2)
2008-04-01 15:12:06 +00:00
Jason Edgecombe
7b55251fd8 DEVEL15-man-page-vos-shadow-20080331
LICENSE BSD

Man page for vos shadow.


(cherry picked from commit 4bcb7d01b2a8aa6ce53cf1c0b093058b4e5072f1)
2008-04-01 07:57:18 +00:00
Mike Meffie
e92f91496a DEVEL15-test-updates-20080331
LICENSE IPL10

update tests directory


(cherry picked from commit a26d7f1403d7d41d51836442a7a4759f4fc2bfe4)
2008-03-31 16:54:02 +00:00
Jeffrey Altman
3b16299f87 DEVEL15-windows-aklog-cross-cell-20080330
LICENSE MIT

report the new ID after a successful cross cell registration


(cherry picked from commit 99a29903c8b77e2e3260bf06d913367fadbc4fed)
2008-03-30 17:21:07 +00:00
Jeffrey Altman
d4c7fd8bcb DEVEL15-windows-aklog-robustness-20080330
LICENSE MIT

Fix the order of parameters to strncpy

Add error checking to all krb5 functions.

Initialize the global ccache variable to NULL.


(cherry picked from commit 2169423f6821672be5506ab388d6faa0ed37f0d0)
2008-03-30 15:13:17 +00:00
Jeffrey Altman
b6a558f579 DEVEL15-windows-vlserver-makefile-20080329
LICENSE MIT

make references to INCFILEDIR consistent


(cherry picked from commit aff582765a8af5ce8743e28ee4d33bf8e4396d63)
2008-03-30 05:17:15 +00:00
Jeffrey Altman
a2ee8eafca DEVEL15-windows-use-client-realm-for-tokens-20080329
LICENSE MIT

Two recent changes to the AFS/Kerberos landscape have been causing
problems for aklog and related modules.  First, the support for multiple
local realms for the cell has broken the pts auto-registration code
when the realm used for the token acquisition does not match the
realm belonging to the selected vldb server.  Second, Kerberos referrals
prevents detection of the realm of the vldb server.

This commit adds a new method of searching for the afs service principal.
The first attempt is for afs/<cell>@<CLIENT-REALM>.  If found, the
<CLIENT-REALM> is used as the realm of the cell.

The patch adds error handling for KRB5_ERR_HOST_REALM_UNKNOWN which is
returned when krb5_get_host_realm() can't determine the realm.

Duplicate queries are also avoided and copy_realm_of_ticket() is
properly employed.


(cherry picked from commit c6897cee01063d6d6ad302e6527794130f007d74)
2008-03-30 04:36:55 +00:00
Tracy Di Marco White
d2995e6ef5 DEVEL15-nbsd-update-20080328
LICENSE IPL10
FIXES 92073

fix nbsd30 param file, add nbsd40 param file


(cherry picked from commit 07d806845e1bf790c8cbe8e6a711e99e0958235b)
2008-03-28 17:12:40 +00:00
Jeffrey Altman
1f9e58bb44 DEVEL15-windows-freelance-20080328
LICENSE MIT

1. return CM_ERROR_NOSUCHFILE when attempting to remove a symlink or
   mount point that does not exist

2. When adding a new symlink or mountpoint, be sure to increment the
   number of local mount points

3. When re-initializing the fake root.cell the unique value is always
   one, not two.  Use cm_FidCmp() to compare fids.  The use of the
   value two prevented the invalidation of existing values because all
   of the directory entries are created with the unique set to one.


(cherry picked from commit b2e3e6427522c92ce4132abf2ca08ce18599b16b)
2008-03-28 14:02:54 +00:00
Douglas Engert
0a37757b2e DEVEL15-krb5-klog-solaris-krb-20080327
LICENSE IPL10
FIXES 91573

no krb5_mcc_ops on solaris krb5. cope


(cherry picked from commit e0021180665fa75af88c3ebf0d7f58f93918ceab)
2008-03-27 18:48:46 +00:00
Derrick Brashear
de6e70a121 DEVEL15-ptutil-swap-epoch-version-as-needed-20080327
LICENSE IPL10
FIXES 90869

do byteswapping of epoch and version so we print and compare sensibly


(cherry picked from commit 87e959e87df52e026ffcb2de8ecfcbf4889f7bd8)
2008-03-27 18:40:12 +00:00
Derrick Brashear
786ffec666 DEVEL15-volser-higher-thread-limit-20080327
LICENSE IPL10

with tvolser we can increase this and actually *see benefit*, so...


(cherry picked from commit 7c05046f1f097a6ded89a5928ea48aca224f520a)
2008-03-27 16:20:39 +00:00
Alistair Ferguson
74b71934be DEVEL15-dafs-vshutdown-match-id-to-params-20080327
LICENSE IPL10

we track shutdown thread parms as index rather than device; deal correctly


(cherry picked from commit 6c9647cc614cfdf9b2c9cc8adb7b3c6b741e1f4e)
2008-03-27 16:16:12 +00:00
Chas Williams
f5e8415f16 DEVEL15-linux-dont-flush-writes-on-exec-20080326
LICENSE IPL10
FIXES 17509

because of when fds are NULL'd in file_table this should work except when one process has the same file open for read and for write in different FDs; otherwise,
 the last write fd to close collects the error.


(cherry picked from commit 1cf6c12a075cb0705cd8680291d78d215d4fe996)
2008-03-26 04:17:18 +00:00
Marc Dionne
f64f192d63 DEVEL15-linux-restore-iget-cachemgr-20080326
LICENSE IPL10
FIXES 88000

restore the d_alloc_anon we need


(cherry picked from commit 3f8be40525ae84980f1519e60f4b9f73bd4cc676)
2008-03-26 04:10:39 +00:00
Jeffrey Altman
7598a9b77b DEVEL15-windows-vlserver-include-path-20080323
LICENSE MIT

Fix the INCFILEDIR definition so that the INCFILES actually exist


(cherry picked from commit f3776341151ad2c9b439567411e908836b16d415)
2008-03-23 14:11:57 +00:00
Jim Rees
1b4bb8aa7c DEVEL15-setuuid-return-20080104
return success (0) from setuuid()


(cherry picked from commit e192814db3a754aa5fe24acf10aa24030c57fa55)
2008-03-22 04:19:13 +00:00