5055 Commits

Author SHA1 Message Date
Andrew Deason
879b1f5b51 DEVEL153X-libuafs-fixes-20080701
LICENSE IPL10
FIXES 104698, 104699, 104305

make cellname get init'd right. correct startup argument order to match
what afsd does. call lookupname correctly (when did this break?)

at the same time, move the lookupname define out of afs_osi.h and into each
osi_machdep.h


(cherry picked from commit c61a8f37c9957034961aed8abc2a1adb046247d3)
2008-07-01 23:28:49 +00:00
Andrew Deason
44684b923c DEVEL153X-redhat-build-updates-20080701
LICENSE IPL10
FIXES 105231

update specfile for new manpages.
update patch for 1.5.x/head
update makesrpm to quote some arguments to system so perl doesn't eat them

some rewriting from shadow@dementia.org including the patch update


(cherry picked from commit 0d343077ac1ca8bd35921de2a2b19cac4eb75496)
2008-07-01 20:41:36 +00:00
Derrick Brashear
30674bdfe7 DEVEL153X-volutil-partitionname2-r-return-value-20080701
LICENSE IPL10

return 0 and not tbuffer on success since tbuffer is already returned via
a pointer


(cherry picked from commit 19551ae3a541644013f6e9e92d9354ec14cbc00e)
2008-07-01 19:33:53 +00:00
Derrick Brashear
781a9f9267 DEVEL153X-linux-nfstrans-updates-20080701
LICENSE IPL10
FIXES 105019

make libuafs also include afs_warn.c


(cherry picked from commit fb3490cdea7e45dbac4a8aa820f35bf1723af764)
2008-07-01 18:45:29 +00:00
Marc Dionne
00e35c55ed DEVEL153X-linux-nfstrans-updates-20080630
LICENSE IPL10
FIXES 105109

exportfs - NFS translator:

- The exportfs code is updated for the new export ops. The changes are made
conditional on a new configure test that detects the new ops. fh_to_dentry()
basically replaces decode_fh and uses our own get_dentry function instead of the
now defunct find_exported_dentry.
- A check for fh_len=4 is removed - in testing this value is always 6, possibly
because of changes in the kernel code.
- The check for authtab in osi_nfssrv.c assumes that an undefined weak symbol is
0. On my system, an unresolved weak symbol in a loaded module gets the value
0xfffffffe (-2 or -ENOENT) - again, probably a change on the kernel side. Check
that the pointer is not an error constant using IS_ERR().
- In osi_vfsops.c, only use the export_ops bits if building the translator

afspag: the problem here was dealing with unresolved symbols

- afs_showflags is redefined in afs_pag_call.c so it's available for the afspag
module
- A new source file afs_warn.c gets the afs_warn* functions from afs_util.c.
This allows the afspag module to get the afs_warnuser function without dragging
in too many symbols. The new file is attached separately.

other:

- d_path() now takes a struct path argument - includes a new configure test
- osi_vfsmnt -> osi_vfsmount in osi_misc.c Looked like a typo?
- reorder the remove_proc_entry() calls - we need to remove the children before
the parent (introduced with my earlier patch)


(cherry picked from commit daf6b1cf282c895bb7cd3cb090e5bee06648cd16)
2008-07-01 04:35:55 +00:00
Thomas Galliano
ec9c2063cd DEVEL153X-ubik-lwp-createprocess-64-bit-20080630
LICENSE IPL10
FIXES 104732

use NULL and not (void *)0 to avoid issues on 64 bit platforms


(cherry picked from commit e22a5cc8afe889d5d76ecf44a63860e12f1effbf)
2008-07-01 04:07:07 +00:00
Tom Keiser
54fec1a760 DEVEL153X-dafs-state-analyzer-setup-cursor-20080630
LICENSE IPL10

avoid an uninitialized cursor


(cherry picked from commit db13ad4de73814e90b108faa0d1246e224836ece)
2008-06-30 18:29:00 +00:00
Chaskiel M Grundman
6458132196 DEVEL153X-afs-blacklist-initialize-volume-ptr-always-20080628
LICENSE IPL10

always initialize this


(cherry picked from commit dff0d834a7c03d19d572d74849599ac89c2a058e)
2008-06-29 04:39:26 +00:00
Jeffrey Altman
11df23f038 DEVEL153X-windows-smb-dead-vc-gc-20080627
LICENSE MIT

When an SMB virtual circuit is prematurely closed due to an error
condition by one thread it is possible that there are still several
other threads still using the VC which will determine that the VC
is dead shortly.  As a result we maintain a dead vc list to ensure
that dead vcs are not destroyed while still in use.

With the addition of locking though this causes a problem because the
locks allocated to the virtual circuit are not freed until the vc is
destroyed.

This patch reworks the cleanup routine to make the freeing of resources
the responsibility of the release routine when the refcount hits 0
and the VC is marked dead.


(cherry picked from commit 49db6afe0aeb646d712a5319a7ea1a511f66f298)
2008-06-27 23:42:08 +00:00
Jeffrey Altman
1851c9f652 DEVEL153X-windows-osilog-20080626
LICENSE MIT

add missing return
2008-06-26 18:09:09 +00:00
Jeffrey Altman
6ba766b103 DEVEL153X-windows-btree-short-name-20080604
LICENSE MIT

When constructing the shortname keyed entry in the tree, make
sure that the original long name is preserved.


(cherry picked from commit b5d888ed404840e5a25a26880daaf47ab415b282)
2008-06-26 13:59:08 +00:00
Matt Benjamin
cacfa54f73 DEVEL153X-tubik-build-fix-20080624
LICENSE IPL10

add missing build dependencies


(cherry picked from commit 9d1863dae7ee6675c77c7ecf398c6c4c4cc811c1)
openafs-devel-1_5_39
2008-06-24 13:59:17 +00:00
Matt Benjamin
e9729c0b0c DEVEL153X-tubik-build-fix-20080623
LICENSE IPL10

add missing build dependencies


(cherry picked from commit 98b87a2ac1ce5673142b26ae5aad2ef640efe51f)
2008-06-23 18:50:31 +00:00
Jeffrey Altman
d03abbd46a DEVEL153X-windows-version-20080622
LICENSE MIT

1.5.39 == 1.5.3900.0
2008-06-23 05:13:15 +00:00
Jeffrey Altman
e7b1b94ef2 DEVEL153X-windows-release-notes-20080622
LICENSE MIT

1.5.39
2008-06-23 05:09:20 +00:00
Jeffrey Altman
3545498dbc DEVEL153X-windows-release-notes-20080508
LICENSE MIT

1.5.35
2008-06-23 05:07:53 +00:00
Jeffrey Altman
4c6bd454cb DEVEL153X-windows-notes-20080622
LICENSE MIT

1.5.39
2008-06-23 05:02:23 +00:00
Derrick Brashear
2ee7c60aa7 DEVEL153X-openafs-1-5-39-20080622
LICENSE IPL10

make 1.5.39
2008-06-23 04:51:09 +00:00
Derrick Brashear
bbfc7308cb DEVEL153X-doc-nfs-translator-instructions-20080622
LICENSE IPL10
FIXES 103459

clarify instructions for the translator


(cherry picked from commit e5f9eba38634c2b07da1d7b20fb45cfdd772a27c)
2008-06-23 04:41:32 +00:00
Jeffrey Altman
d88af80611 DEVEL153X-rx-init-more-packets-20080529
LICENSE MIT

It is frequently the case that rx_getAllAddr() is called before
rx_Init() or rx_InitHost().  rx_getAllAddr() obtains the list of
interfaces by using rx_GetIFInfo() which in turn computes and
allocates the number of addition rx packets.  Unfortunately,
rxi_MorePackets() relies on the existence of an initialized mutex
and the mutex is not initialized (on Windows) until the rx_InitHost()
call.  Therefore, we must delay the rxi_MorePackets() call until
after rx_InitHost() if rx_getAllAddr() is called previously.

Failure to do so results in a panic.


(cherry picked from commit 749ae65481ebc70f310fdd79d2cb0139a636f27e)
2008-06-23 04:20:50 +00:00
Jeffrey Altman
152f87a006 DEVEL153X-windows-notes-20080508
LICENSE MIT

1.5.36
2008-06-23 04:13:51 +00:00
Jeffrey Altman
c97f401643 DEVEL153X-windows-scache-deletion-and-lock-verification-20080612
LICENSE MIT

Add lock assertions to various functions.

Obtain a missing lock around a call to cm_RemoveSCacheFromHashTable().

Correct an abstraction layer violation.  cm_scache_t objects should
be marked deleted in cm_Unlink() and cm_RemoveDir() and not in
smb_CloseFID().  Cleanup of deleted cm_scache_t objects should be
performed in cm_ReleaseSCache() when the reference count hits zero.

Prototype cm_AdjustScacheLRU() and re-implement it using osi_QAddH().


(cherry picked from commit 52490d7968c2008912ab0887bdcde7fbba43b837)
2008-06-23 04:05:03 +00:00
Jeffrey Altman
b86470ca75 DEVEL153X-windows-vnodeops-wrong-logfile-20080612
LICENSE MIT

Use afsd_logp instead of smb_logp in osi_LogX() calls.
Do not violate layer abstraction.


(cherry picked from commit 3306c0887b62ca940808174906c2579b3b7d939a)
2008-06-23 04:03:23 +00:00
Jeffrey Altman
9e8c19659c DEVEL153X-windows-buf-clean-access-denied-20080612
LICENSE MIT

If the attempt to write the buffer returns access denied, store that
in the cm_buf_t object so that the error can be propagated.


(cherry picked from commit 15ff831e4dfa8d2942536d002b86579f6128a5df)
2008-06-23 04:02:06 +00:00
Jeffrey Altman
834110f02e DEVEL153X-windows-scache-hash-tables-20080612
LICENSE MIT

Prevent corruption of the cm_data.scacheHashTablep lists when removing
and then re-adding entries to the hash table.  The cm_scache_t nextp
fields were not being reset to NULL which permitted loops to be created.


(cherry picked from commit ef48d6343d9ac929a4a2ae88184f7801ace1e3d1)
2008-06-23 04:00:43 +00:00
Jeffrey Altman
7b803b9428 DEVEL153X-windows-check-server-memleak-20080606
LICENSE MIT

Found a memleak in the cm_CheckServers routine. Plug it.


(cherry picked from commit ad05cdf649044dcc0b1db39aed8652338fb8c945)
2008-06-23 03:54:28 +00:00
Jeffrey Altman
0d6ef2da2c DEVEL153X-windows-bpluss-memleak-20080605
LICENSE MIT

when deleting entries from a directory for items with non-8.3 names
memory for the longname field would be leaked.  don't do that.


(cherry picked from commit 39d2ac1438c5708dc64098e5de10cd55efd6e93b)
2008-06-23 03:52:04 +00:00
Jeffrey Altman
62ea2904b3 DEVEL153X-windows-unused-var-20080528
LICENSE MIT

remove unused var cm_CachePathLen


(cherry picked from commit 54c0f2f8370c129a01b99233c98a758ba0eb2f17)
2008-06-23 03:50:08 +00:00
Jeffrey Altman
c37d2343bd DEVEL153X-strftime-portability-20080528
LICENSE MIT

%T is not portable to Windows.  Replace it with the equivalent %H:%M:%S
format string.


(cherry picked from commit 11350e8024c8413dab5f91cfcd2155d26356329f)
2008-06-23 03:49:26 +00:00
Jeffrey Altman
329f672b98 DEVEL153X-windows-have-snprintf-20080509
LICENSE MIT

Visual Studio provides [v]snprintf.  No need to define and export it.


(cherry picked from commit 048ae7c7e63e03af16925613aeec8243b45ffe70)
2008-06-23 03:47:00 +00:00
Marc Dionne
ebd3faac40 DEVEL153X-linux-2626-updates-20080612
LICENSE IPL10
FIXES 102821

fixes which went into 1.4.x already


(cherry picked from commit 583b267eb0025bd78e7dd325775428557e3934ad)
2008-06-12 21:08:46 +00:00
Marc Dionne
d55768f791 DEVEL153X-cvsignore-updates-20080612
LICENSE IPL10
FIXES 102819

add missing things to cvsignore files


(cherry picked from commit bb617c649cd18c30db40f7e1976eeddf0ae1545b)
2008-06-12 21:01:55 +00:00
Tom Keiser
321585551a DEVEL153X-dafs-updates-20080612
LICENSE IPL10

pending changes from tom to avoid a deadlock issue


(cherry picked from commit a7b33b55bb34027262fb5deb686a86fba1d2f832)
2008-06-12 20:23:49 +00:00
Derrick Brashear
aa15471c8d DEVEL153X-ptserver-simple-corrupt-protection-20080612
LICENSE IPL10

protects against direct loops, which we have seen in the wild, but not more (yet)


(cherry picked from commit e2ce8710efc93f7172b9d4daaf685c6f2669f7c3)
2008-06-12 19:37:08 +00:00
Derrick Brashear
51a01848d6 DEVEL153X-volume-limit-higher-20080612
LICENSE IPL10

allow more volume lookups to be cached


(cherry picked from commit bc47951c9ec0845eafe0d1634f56b761cbf8b06f)
2008-06-12 18:24:51 +00:00
Jason Edgecombe
f79beb2934 DEVEL153X-man-page-pts-updates-20080605
LICENSE BSD

Add documentation of foreign realm user registration and cross-realm PTS
groups.  Add documentation of missing ptserver flags.  Add some additional
to-do entries for the man pages.


(cherry picked from commit 1fdfac7065b85feafcfa3f9fc382cfd90680d67f)
2008-06-09 04:45:49 +00:00
Marc Dionne
b6ba87636f DEVEL153X-linux-2626-support-20080608
LICENSE IPL10
FIXES 101091

add 2.6.26 support


(cherry picked from commit bed3e31ca4da711649d6c6b9ab828515cd3418fc)
2008-06-09 04:39:29 +00:00
Rainer Toebbicke
a754a5a246 DEVEL153X-limit-mountpoint-symlink-abuse-20080608
LICENSE IPL10
FIXES 100836

official mountpoints end in a .; treat others as symlinks to avoid creating
files which can't be removed


(cherry picked from commit 0da0a9d4d2e5b2d39495e57b9840ce0acdd961e2)
2008-06-09 04:30:45 +00:00
Derrick Brashear
9c4fe8a57b DEVEL153X-linux24-hlist-unhashed-configure-test-fix-20080602
LICENSE IPL10

make the hlist_unhashed test actually work


(cherry picked from commit 79b7b4eaded831a33d85f580e9e4155528fbd35f)
2008-06-03 03:54:22 +00:00
Jeffrey Altman
c0df1b8c6e DEVEL153X-udebug-display-lastyeshost-order-20080510
LICENSE MIT

lastYesHost is already in network byte order.  do not reorder it again
when displaying it.


(cherry picked from commit b5dc1903a4bca5bae099beec0b95840df7282250)
2008-05-25 14:50:50 +00:00
Jeffrey Hutzelman
e35d08f435 DEVEL153X-rx-client-keep-keepalives-20080522
LICENSE IPL10
FIXES 20727

not our bug, but, previous code refactoring broke rx. put back keepalives in cli
ent rx connections while they are turned around.


(cherry picked from commit c34822d6105cef7f68423e4ebbf485b2d11b9635)
openafs-devel-1_5_38
2008-05-23 15:56:02 +00:00
Derrick Brashear
505ea9254d DEVEL153x-openafs-1-5-38-20080523
LICENSE IPL10

make 1.5.38
2008-05-23 15:26:14 +00:00
Simon Wilkinson
5ac287e139 DEVEL153X-disconnected-20080523
LICENSE IPL10

add readonly disconnected support


(cherry picked from commit 18a36a3f624755fbcaee776102177f47e26711b7)
2008-05-23 15:25:32 +00:00
Derrick Brashear
2cf8a980c0 DEVEL153X-darwin-rc-common-does-set-minus-u-20080522
LICENSE IPL10

we need to cope with an unset variable


(cherry picked from commit b26f133a56911c4a20e848cf85d40640aa37253a)
2008-05-22 22:04:04 +00:00
Derrick Brashear
dc41cb12f3 DEVEL153X-dafs-volumestats-conflict-20080521
LICENSE IPL10

avoid symbol conflict in volume.h


(cherry picked from commit 8450a1eb1da3e2b77f9ae86b5adee4aaa7136e14)
2008-05-22 04:52:01 +00:00
Derrick Brashear
e65496354c DEVEL153X-vos-sync-flag-voltype-properly-20080521
LICENSE IPL10

when adding a backup volume to a vldb entry, flag it as such.


(cherry picked from commit dcafea769a1cb70c7b1f8763ae4f7b7744b2a436)
2008-05-21 21:16:39 +00:00
Simon Wilkinson
a252a94da6 DEVEL153X-tweak-regen-20080521
LICENSE IPL10

make regen quieter if you don't want man pages


(cherry picked from commit 1705bda53e4ca198cf78d70ff424fc7af69b1879)
2008-05-21 16:41:22 +00:00
Derrick Brashear
7917ae3093 DEVEL153X-macos-tuning-20080521
LICENSE IPL10

be more aggressive to get better performance


(cherry picked from commit 30f65085f7a53ae073e2c4649a462a3a555ebb61)
openafs-devel-1_5_37
2008-05-21 14:50:32 +00:00
Derrick Brashear
39521c7cd9 DEVEL153X-openafs-1-5-37-20080521
LICENSE IPL10

make 1.5.37
2008-05-21 14:39:26 +00:00
Derrick Brashear
6a613191d0 DEVEL153X-pmtu-and-prefetch-20080520
LICENSE IPL10

try hard to optimize using the wire for high latency connections


(cherry picked from commit 1206e7538be86f073b21cd289266286b60a95d0a)
2008-05-21 05:22:43 +00:00