5067 Commits

Author SHA1 Message Date
Jason Edgecombe
59feb21fb4 DEVEL153X-pinstall-copy-env-20080728
LICENSE IPL10
FIXES 108449

copy environment to children
2008-07-28 13:17:28 +00:00
Simon Wilkinson
e70ce28703 DEVEL153X-discon-prototype-correction-20080718
LICENSE IPL10

correct prototype for disconnected afs


(cherry picked from commit 5bbdc3fb6904825f75ebdb1f2a17ed0ee6aefcfe)
2008-07-18 15:54:48 +00:00
Derrick Brashear
97baeb9a9d DEVEL153X-softsig-structure-handling-20080716
LICENSE IPL10

this is sort of a dumb ifdef. harmless, but fix it to be what it's supposed to


(cherry picked from commit 4d7cfa129353001759c6224cc5c590be7e043fe9)
2008-07-16 05:25:38 +00:00
Derrick Brashear
1b1f903b58 DEVEL153X-volser-reclone-bring-online-before-giveback-20080716
LICENSE IPL10
FIXES 107258

when giving back a volume after reclone, make it inService to avoid a race
between callers and the SetFlags RPC


(cherry picked from commit b4ce530d365e97342a92f4a8d59de12b0570c699)
2008-07-16 05:16:12 +00:00
Todd DeSantis
f162e9d259 DEVEL153X-butc-xbsa-update-20080711
LICENSE IPL10

update xbsa support for current tsm


(cherry picked from commit 5baf817a31e72d85415222af5c3dee70ed1f6bd3)
2008-07-15 11:33:03 +00:00
Tom Keiser
5130683a40 DEVEL153X-dafs-avoid-assert-while-moving-volumes-20080714
LICENSE IPL10

The volume state is perfectly consistent. FSYNC_NEEDVOLUME (and the
other state in the pending_vol_op object) is perfectly normal -- it
simply means the volser has exclusive access to the volume for the
purposes of cloning. The bug is that during the DAFS development, I
changed the semantics of the VGetVolume interface without updating the
control logic in afsfileprocs accordingly:

In 1_4_x:
vp->specialstatus != 0 results in returning vp with nUsers incremented
and *ec = vp->sepcialstatus

In DAFS:
V_AttachState(vp) == VOL_STATE_UNATTACHED results in returning a NULL
vp. Since (vp->specialstatus != 0), *ec = vp->specialstatus.

The net result is we need to modify the VBUSY logic in CheckVnode().


(cherry picked from commit 5c762d3b7672a88fcf4df85e919ac11be7946d4f)
2008-07-14 14:42:46 +00:00
Tom Keiser
5dbef2a4ae DEVEL153X-dafs-update-exclusive-states-20080710
LICENSE IPL10

VOL_STATE_SALVSYNC_REQ is a mutally exclusive state. don't allow other things
to attempt to trigger that state when an exclusive state is already present


(cherry picked from commit f52f1522367819712ea678b4e3cdf4644571fc57)
2008-07-10 19:15:07 +00:00
Dale Ghent
11196f2499 DEVEL153X-solaris-nevada-vfsdev-type-20080707
LICENSE IPL10
FIXES 105495

in nevada, struct vfsdev_v4 -> vfsdev_t. cope.


(cherry picked from commit acf76ac85f55e268e9a99d12dc89bad4b763038b)
2008-07-07 18:16:13 +00:00
Derrick Brashear
1bb957d0f3 DEVEL153X-solaris-udp-modname-20080707
LICENSE IPL10

older solaris 10 lacked this


(cherry picked from commit 078f966e6293504dc7fd0a7c6b49997b6739be71)
2008-07-07 18:15:26 +00:00
Chas Williams
47b2fbf977 DEVEL153X-linux-revalidate-renames-correctly-20080707
LICENSE IPL10
FIXES 74672

when renaming causes a dentry to be newer than its parent we handled it
incorrectly. zero the d_time to force correct evaluation to happen.


(cherry picked from commit 9f3629b018f9d25b205f911464789ed0a14103b4)
2008-07-07 17:54:14 +00:00
Simon Wilkinson
f776e8e16e DEVEL153X-rhel3-disable-fedorakmod-20080707
LICENSE IPL10
FIXES 102673

if we're building for 2.4.x we need to disable fedorakmod. do so here in our
packaging.


(cherry picked from commit 9946c027a33b89cdf128748b9fd3000b31bee48f)
2008-07-07 17:42:44 +00:00
Benjamin Bennett
6a180af0ea DEVEL153X-linux-probe-syscall-table-again-20080703
LICENSE IPL10
FIXES 105457

move the init_mm ifdef down far enough that it's effective and we actually
probe to be able to hook syscall table


(cherry picked from commit a4e3fb21f0fd8f02ffd2c01b4d39ac55cd3474b1)
2008-07-03 21:33:00 +00:00
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