Commit Graph

5069 Commits

Author SHA1 Message Date
Jeffrey Altman
890cbf6cae windows-smb-dead-vc-gc-20080801
LICENSE MIT

deltas windows-smb-dead-vc-gc-20080627 and
windows-dead-vc-cleanup-take-two-20080703 attempted to
protect against an infinite recursion when cleaning up
dead smb virtual circuits.  they failed to address the
incrementing of the vc refcount in smb_ReleaseVCInternal
when it is about to call smb_CleanupDeadVC.  If the vc
is already being cleaned, then smb_ReleaseVCInternal
should not increment the refCount and should not call
smb_CleanupDeadVC.
2008-08-01 14:09:50 +00:00
Hartmut Reuter
0c20d8adb0 DEVEL153X-salvager-avoid-directory-issues-and-mark-volumes-busy-20080728
LICENSE IPL10
FIXES 107767

avoid corrupting length in vnodeds when salvaging directories.
avoid tag reuse leaving data behind (not verified)
avoid not marking something busy during salvage


(cherry picked from commit 674e94b29c)
2008-07-28 13:58:58 +00:00
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 5bbdc3fb69)
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 4d7cfa1293)
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 b4ce530d36)
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 5baf817a31)
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 5c762d3b76)
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 f52f152236)
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 acf76ac85f)
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 078f966e62)
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 9f3629b018)
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 9946c027a3)
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 a4e3fb21f0)
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 c61a8f37c9)
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 0d343077ac)
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 19551ae3a5)
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 fb3490cdea)
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 daf6b1cf28)
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 e22a5cc8af)
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 db13ad4de7)
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 dff0d834a7)
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 49db6afe0a)
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 b5d888ed40)
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 9d1863dae7)
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 98b87a2ac1)
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 e5f9eba386)
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 749ae65481)
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 52490d7968)
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 3306c0887b)
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 15ff831e4d)
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 ef48d6343d)
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 ad05cdf649)
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 39d2ac1438)
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 54c0f2f837)
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 11350e8024)
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 048ae7c7e6)
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 583b267eb0)
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 bb617c649c)
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 a7b33b55bb)
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 e2ce8710ef)
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 bc47951c9e)
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 1fdfac7065)
2008-06-09 04:45:49 +00:00