openafs.git
11 years agoDEVEL15-irix-no-sig-t-20090316
Derrick Brashear [Mon, 16 Mar 2009 15:48:32 +0000]
DEVEL15-irix-no-sig-t-20090316

LICENSE IPL10

correct the sig_t checking macro

(cherry picked from commit 7815171a8d300d550dd61c2db0f329b19390cf16)

11 years agoDEVEL15-kauth-needs-sys-for-headers-20090316
Derrick Brashear [Mon, 16 Mar 2009 15:17:31 +0000]
DEVEL15-kauth-needs-sys-for-headers-20090316

LICENSE IPL10

get sys's header for kauth

(cherry picked from commit a5daae759d6b513f27f4fe3ab255ea7b4497ff41)

11 years agoDEVEL15-rxstat-prototypes-20090316
Simon Wilkinson [Mon, 16 Mar 2009 15:07:11 +0000]
DEVEL15-rxstat-prototypes-20090316

LICENSE IPL10
FIXES 124235

prototype the rxstat directory

(cherry picked from commit 97fad3a313088cb0ca5c4966fb9d24dedbecf146)

11 years agoDEVEL15-ptserver-prototypes-20090316
Simon Wilkinson [Mon, 16 Mar 2009 14:58:04 +0000]
DEVEL15-ptserver-prototypes-20090316

LICENSE IPL10
FIXES 124249

prototype the ptserver directory

(cherry picked from commit 79448c25acead55728f40beec18e00113d8356f4)

11 years agoDEVEL15-vol-no-cast-macro-20090316
Derrick Brashear [Mon, 16 Mar 2009 14:41:40 +0000]
DEVEL15-vol-no-cast-macro-20090316

LICENSE IPL10

afs_cast_uint32 doesn't exist, not sure we need it

(cherry picked from commit 92cd63b0b7cd26f05e6f316a6d209e4e5d0bfaa2)

11 years agoDEVEL15-budb-no-pointer-math-on-void-star-20090316
Jeffrey Altman [Mon, 16 Mar 2009 14:19:49 +0000]
DEVEL15-budb-no-pointer-math-on-void-star-20090316

LICENSE IPL10

can't do pointer math on void*; already casting to char* anyway

(cherry picked from commit f076eb4f88a8e3b7633c21edb3921f4f08eefa6b)

11 years agoDEVEL15-auth-unistd-not-on-windows-20090316
Jeffrey Altman [Mon, 16 Mar 2009 14:12:46 +0000]
DEVEL15-auth-unistd-not-on-windows-20090316

LICENSE IPL10

don't include unistd on windows

(cherry picked from commit 95d639b19452001835097fe4e0189efe5d8d08be)

11 years agoDEVEL15-sys-prototypes-20090315
Simon Wilkinson [Mon, 16 Mar 2009 14:01:06 +0000]
DEVEL15-sys-prototypes-20090315

LICENSE IPL10
FIXES 124233

prototype the sys directory

(cherry picked from commit 6e569d2518dba2f947626b40597c71e9798936b7)

11 years agoDEVEL15-gtx-prototypes-20090316
Simon Wilkinson [Mon, 16 Mar 2009 13:49:32 +0000]
DEVEL15-gtx-prototypes-20090316

LICENSE IPL10
FIXES 124243

prototype the gtx directory
utilize in scout

(cherry picked from commit 129905960db523e0a6365175bf0ce066fdbd60fd)

11 years agoDEVEL15-butm-prototypes-20090316
Simon Wilkinson [Mon, 16 Mar 2009 13:45:21 +0000]
DEVEL15-butm-prototypes-20090316

LICENSE IPL10
FIXES 124241

prototype the butm directory

(cherry picked from commit 2b6d173530f38fba6ac9d2cc3459d7088a248f4f)

11 years agoDEVEL15-uss-prototypes-20090316
Simon Wilkinson [Mon, 16 Mar 2009 13:43:43 +0000]
DEVEL15-uss-prototypes-20090316

LICENSE IPL10
FIXES 124248

prototype the uss directory

(cherry picked from commit f239bf808f63bb6a22e53696e9927ba2e4121c75)

11 years agoDEVEL15-budb-prototypes-20090316
Simon Wilkinson [Mon, 16 Mar 2009 13:41:34 +0000]
DEVEL15-budb-prototypes-20090316

LICENSE IPL10
FIXES 124240

prototype the budb directory

(cherry picked from commit bd00e10eb7caf66de33640bf06722d0169231703)

11 years agoDEVEL15-bubasics-prototypes-20090316
Simon Wilkinson [Mon, 16 Mar 2009 13:39:15 +0000]
DEVEL15-bubasics-prototypes-20090316

LICENSE IPL10
FIXES 124237

prototype the bubasics directory
make the volser prototypes available for bubasics to use

(cherry picked from commit 14c3d5ed9179574692a0f7a5cc15d625083e3cf8)

11 years agoDEVEL15-dir-prototypes-20090316
Simon Wilkinson [Mon, 16 Mar 2009 13:29:07 +0000]
DEVEL15-dir-prototypes-20090316

LICENSE IPL10
FIXES 124242

prototype the dir directory

(cherry picked from commit 4fdda50ca7ea47d5b4b8a5cd31797b527deb148f)

11 years agoDEVEL15-libadmin-prototypes-20090316
Simon Wilkinson [Mon, 16 Mar 2009 13:26:48 +0000]
DEVEL15-libadmin-prototypes-20090316

LICENSE IPL10
FIXES 124246

prototype the libadmin directory

(cherry picked from commit cff2da10d6f2c4b568c07a331ceb96cbf952576a)

11 years agoDEVEL15-venus-prototypes-20090316
Simon Wilkinson [Mon, 16 Mar 2009 13:24:37 +0000]
DEVEL15-venus-prototypes-20090316

LICENSE IPL10
FIXES 124250

prototype the venus directory

(cherry picked from commit 0a8f1e16ae1a18094fa28521f29bee911aa6dcfb)

11 years agoDEVEL15-scout-prototypes-20090316
Simon Wilkinson [Mon, 16 Mar 2009 13:22:25 +0000]
DEVEL15-scout-prototypes-20090316

LICENSE IPL10
FIXES 124253

prototype the scout directory

(cherry picked from commit 379162ec07cc76550e9690f3631cc00b931744f7)

11 years agoDEVEL15-bozo-prototypes-20090316
Simon Wilkinson [Mon, 16 Mar 2009 13:20:06 +0000]
DEVEL15-bozo-prototypes-20090316

LICENSE IPL10
FIXES 124236

prototype the bozo directory

(cherry picked from commit 0dcdbf6dcda0814a5f24e84d4ef98ffc2279eff1)

11 years agoDEVEL15-auth-prototypes-20090316
Simon Wilkinson [Mon, 16 Mar 2009 13:17:43 +0000]
DEVEL15-auth-prototypes-20090316

LICENSE IPL10
FIXES 124234

prototype the auth directory

(cherry picked from commit 01e03837b81843c4f28eb6cc54811b1bd231514c)

11 years agoDEVEL15-afsd-prototypes-20090316
Simon Wilkinson [Mon, 16 Mar 2009 13:13:55 +0000]
DEVEL15-afsd-prototypes-20090316

LICENSE IPL10
FIXES 124231

prototype the afsd directory

(cherry picked from commit 242aa845a149d5132047e44d074064093fd2d61b)

11 years agoDEVEL15-vol-prototypes-20090316
Simon Wilkinson [Mon, 16 Mar 2009 13:11:55 +0000]
DEVEL15-vol-prototypes-20090316

LICENSE IPL10
FIXES 124252

prototype the vol directory

(cherry picked from commit f28659bd826c2bb7311c84122262000caf33316c)

11 years agoDEVEL15-ubik-prototype-fallout-20090316
Jeffrey Altman [Mon, 16 Mar 2009 12:37:40 +0000]
DEVEL15-ubik-prototype-fallout-20090316

LICENSE IPL10

make things happy again

(cherry picked from commit a0179b07096014e31ba6ecf1643a9cf67ba45a24)

11 years agoDEVEL15-irix-lacks-sig-t-20090315
Derrick Brashear [Mon, 16 Mar 2009 03:44:47 +0000]
DEVEL15-irix-lacks-sig-t-20090315

LICENSE IPL10

sig_t is missing on irix

(cherry picked from commit 61dadb6458ec95b5bf4bd4250520453630fbbe4c)

11 years agoDEVEL15-viced-prototypes-20090315
Simon Wilkinson [Mon, 16 Mar 2009 03:10:31 +0000]
DEVEL15-viced-prototypes-20090315

LICENSE IPL10
FIXES 124251

prototype the viced directory

(cherry picked from commit 596614dd76aa5107f6cd30c67a79b371be48f504)

11 years agoDEVEL15-ubik-prototypes-20090315
Simon Wilkinson [Mon, 16 Mar 2009 03:03:24 +0000]
DEVEL15-ubik-prototypes-20090315

LICENSE IPL10
FIXES 124245

prototype the ubik directory

(cherry picked from commit d5158b2ccb78fc7df0a346c7a5dd5b7cb5d0b58b)

11 years agoDEVEL15-fsprobe-prototypes-20090315
Simon Wilkinson [Mon, 16 Mar 2009 02:54:11 +0000]
DEVEL15-fsprobe-prototypes-20090315

LICENSE IPL10
FIXES 124254

prototype the fsprobe directory

(cherry picked from commit b18ec965dd58331eb32599a21e882fbe43a8257e)

11 years agoDEVEL15-libacl-prototypes-20090315
Simon Wilkinson [Mon, 16 Mar 2009 02:42:45 +0000]
DEVEL15-libacl-prototypes-20090315

LICENSE IPL10
FIXES 124256

prototype the libacl directory

(cherry picked from commit 8952e3d64d8099a5238be3ccf9cb56a7c0d1a2df)

11 years agoDEVEL15-kauth-prototypes-20090315
Simon Wilkinson [Mon, 16 Mar 2009 02:35:39 +0000]
DEVEL15-kauth-prototypes-20090315

LICENSE IPL10
FIXES 124257

prototype the kauth directory

(cherry picked from commit 2e4326e20ebadc2cb9b3efd117454bc422cdc63d)

11 years agoDEVEL15-rxgen-prototypes-20090315
Simon Wilkinson [Mon, 16 Mar 2009 02:26:40 +0000]
DEVEL15-rxgen-prototypes-20090315

LICENSE IPL10
FIXES 124255

prototype the rxgen directory

(cherry picked from commit 12a60258f5ae680440b2a93369ca676359c888d4)

11 years agoDEVEL15-util-prototypes-20090315
Simon Wilkinson [Mon, 16 Mar 2009 02:00:39 +0000]
DEVEL15-util-prototypes-20090315

LICENSE IPL10
FIXES 124247

prototype the util directory

(cherry picked from commit 47451b4c2009c51160686b4aca1b28b7011ba92f)

11 years agoDEVEL15-audit-prototypes-20090315
Simon Wilkinson [Mon, 16 Mar 2009 01:38:17 +0000]
DEVEL15-audit-prototypes-20090315

LICENSE IPL10
FIXES 124232

prototype the audit directory

(cherry picked from commit 00fd29251e9326bd81d46387337ca014a118f7ec)

11 years agoDEVEL15-des-prototypes-20090315
Simon Wilkinson [Mon, 16 Mar 2009 01:34:48 +0000]
DEVEL15-des-prototypes-20090315

LICENSE IPL10
FIXES 124230

prototype the des directory

(cherry picked from commit c560efe73f79e396866918ee072849065ab70838)

11 years agoDEVEL15-viced-copyonwrite-optimization-20090315
Rainer Toebbicke [Sun, 15 Mar 2009 18:50:10 +0000]
DEVEL15-viced-copyonwrite-optimization-20090315

LICENSE IPL10
FIXES 124397

optimize CopyOnWrite to avoid rewriting data if possible

(cherry picked from commit 0c39a855a2da7b3e82970c65f835eed38b650215)

11 years agoDEVEL15-cellservdb-proc-file-glocking-20090315
Chaskiel M Grundman [Sun, 15 Mar 2009 18:42:23 +0000]
DEVEL15-cellservdb-proc-file-glocking-20090315

LICENSE IPL10
FIXES 124407

hold GLOCK appropriately when dealing with the proc file

(cherry picked from commit 6308037dec22d5a141fc64a11472b1a36585deb2)

11 years agoDEVEL15-viced-improve-host-hashing-20090315
Mike Meffie [Sun, 15 Mar 2009 18:30:52 +0000]
DEVEL15-viced-improve-host-hashing-20090315

LICENSE IPL10
FIXES 124447

hash based on host byte order so intel machines aren't sad

(cherry picked from commit 5102d56f080f1284eecb94dbc7c06cb966c27f5b)

11 years agoDEVEL15-butc-xbsa-buffersize-20090315
Mike Meffie [Sun, 15 Mar 2009 18:19:25 +0000]
DEVEL15-butc-xbsa-buffersize-20090315

LICENSE IPL10
FIXES 124425

restrict buffer size to allow for header space

(cherry picked from commit fd6d954e95e016a78001e9bc12c4646ba8183e12)

11 years agoDEVEL15-solaris-avoid-returning-einval-if-possible-20090315
Chaskiel M Grundman [Sun, 15 Mar 2009 18:13:36 +0000]
DEVEL15-solaris-avoid-returning-einval-if-possible-20090315

LICENSE IPL10
FIXES 124426

if we have a better error code, return it.

(cherry picked from commit 22c5edb1b22dbeee28b569ceefb543ab5ffed929)

11 years agoDEVEL15-aklog-old-principal-conversion-sans-524-20090315
Derrick Brashear [Sun, 15 Mar 2009 18:02:41 +0000]
DEVEL15-aklog-old-principal-conversion-sans-524-20090315

LICENSE IPL10

we'll want to fix this differently later; since 524 is dying perhaps we need
to just ship heimdal's version of this code

(cherry picked from commit fd9e5ffb4653b87f92438574083185a55086b661)

11 years agoDEVEL15-windows-afsd-reset-acl-cache-20090312
Jeffrey Altman [Sat, 14 Mar 2009 04:59:34 +0000]
DEVEL15-windows-afsd-reset-acl-cache-20090312

LICENSE MIT

Modify the cm_ResetACLCache interface to accept an optional cm_cell_t *.
At the moment every time a token is set or cleared all of the acl info
for all cm_scache_t objects regardless of cell is reset.  This is both
a performance hit and unnecessary.  If we know the cell, only reset
the acl info for cm_scache_t objects in that cell.

If cell is not specified, reset for all cells.

(cherry picked from commit d0e4044cfeef3ce1c5d435251de9b584343225f5)

11 years agoDEVEL15-windows-afsd-unlock-20090312
Jeffrey Altman [Sat, 14 Mar 2009 04:55:09 +0000]
DEVEL15-windows-afsd-unlock-20090312

LICENSE MIT

Modify the cm_Unlock() interface to support the ability to unlock all
locks within a range.  This is required for the redirector.

(cherry picked from commit 8e01e5a4dbcaaea03fc3af59bec5ef211d5b4684)

11 years agoDEVEL15-windows-freelance-20090312
Jeffrey Altman [Sat, 14 Mar 2009 04:51:19 +0000]
DEVEL15-windows-freelance-20090312

LICENSE MIT

correct error in windows-freelance-20090223.  use cpath not filename
since that is why we allocated cpath in the first place.

(cherry picked from commit 7ca2785f53d391afa5e7200f2b4d40c79a857443)

11 years agoDEVEL15-windows-afsd-callback-20090312
Jeffrey Altman [Sat, 14 Mar 2009 04:49:15 +0000]
DEVEL15-windows-afsd-callback-20090312

LICENSE MIT

use cm_HaveCallback() to check for a call back instead of explicit
checks on cbExpires and cbServerp.  cm_HaveCallback takes into account
Freelance mode and offline status.

(cherry picked from commit ef81e9395c171f9dcb8df120991ba65ec1ca5610)

11 years agoDEVEL15-windows-afsd-btree-20090313
Jeffrey Altman [Sat, 14 Mar 2009 04:45:32 +0000]
DEVEL15-windows-afsd-btree-20090313

LICENSE MIT

Change cm_BPlusDirEnumerate interface to include a 'FetchStatus'
parameter.  When set to 0, we do not fetch status for fids for
which we do not already have status info.  This avoids unnecessary
recycling of cm_scache_t objects.

(cherry picked from commit 15d4dd0f70925eaf2af333f2215235cb90637457)

11 years agoDEVEL15-dumpcallbackstate-64bit-timet-safe-20090310
Matt Benjamin [Tue, 10 Mar 2009 19:21:22 +0000]
DEVEL15-dumpcallbackstate-64bit-timet-safe-20090310

LICENSE IPL10
FIXES 124451

on 64 bit platforms, 64 bit time_t means returning into afs_int32 is bad

(cherry picked from commit 77452db304abfc6ad0139769034986dc8bf172d9)

11 years agoDEVEL15-avoid-blocking-with-connhashtable-lock-in-reapconnections-20090307
Jeffrey Altman [Sat, 7 Mar 2009 14:10:43 +0000]
DEVEL15-avoid-blocking-with-connhashtable-lock-in-reapconnections-20090307

LICENSE BSD

instead of potentially blocking waiting for a call lock, assume if the call is
locked, the conn is still busy. also, don't even try to get the conn data lock
if we don't need to

(cherry picked from commit 581fd18bd9c3fe8e07169c60a7cde9e72e8af89c)

11 years agoDEVEL15-windows-afsd-server-uuid-20090301
Jeffrey Altman [Mon, 2 Mar 2009 04:45:15 +0000]
DEVEL15-windows-afsd-server-uuid-20090301

LICENSE MIT

Unlike the unix cache manager, on Windows the server uuid was not
recorded as part of the cm_server object.  This commit adds the uuid
and a flag to indicate if it is set or not.

A check is made in cm_UpdateVolumeLocation it confirm that the uuid
known to the CM is the same as the one being reported by the vl server.
If they differ, this is logged but no action is taken.

The contents of the cm_allServers list is now dumped in response to
"fs memdump" or a crash.  This includes the uuid, addr, type, flags,
downtime, caps, etc.

The server uuid is not useful at the moment because there is nothing
that the CM can use it for.  However, it might be useful for debugging
and it will be needed for extended callback support.

(cherry picked from commit 19ffc146fac828cd32b90c4d43d617de6c574556)

11 years agoDEVEL15-window-afsd-bad-version-20090228
Jeffrey Altman [Sat, 28 Feb 2009 16:19:26 +0000]
DEVEL15-window-afsd-bad-version-20090228

LICENSE MIT

create a new cpp symbol CM_SCACHE_VERSION_BAD to represent data version
values in cm_scache objects that are known to be invalid.

then consistently apply this value throughout the code.  Previously
some invalid values were set to 0 and others to -1 (0xFFFFFFFF:FFFFFFFF).

Also fix at least one location where CM_BUF_VERSION_BAD was not used.

(cherry picked from commit 5d147351263be2636ef547f22acb24c7816348c1)

11 years agoDEVEL15-windows-afsd-btree-20090228
Jeffrey Altman [Sat, 28 Feb 2009 15:41:44 +0000]
DEVEL15-windows-afsd-btree-20090228

LICENSE MIT

Change how BPlusDir enumerations behave with regards to bulk stat
operations.  If the number of entries in the enumeration is larger
than the number of cm_scache objects, then using the previous model
of cm_BPlusDirEnumBulkStat being called for the entire enumeration
list results in the early objects being recycled and the status
info discarded before the caller of cm_BPlusDirNextEnumEntry()
receives the name.

The revised model triggers bulk stat operations from within
NextEnumEntry() as objects requiring status fetching are about
to be returned to the caller.  This reduces the thrashing of the
stat cache.

We should consider adding a flag field to cm_BPlusDirEnumerate()
or cm_BPlusDirNextEnumEntry() to permit enumeration without
status fetching.

(cherry picked from commit a32971251670acc7944dcd4b1eade1ab161e587f)

11 years agoDEVEL15-windows-afsd-error-map-20090227
Jeffrey Altman [Fri, 27 Feb 2009 07:26:49 +0000]
DEVEL15-windows-afsd-error-map-20090227

LICENSE MIT

do not permit VNOSERVICE or VOFFLINE or VSALVAGE to leak and
be returned as an error code.  The resulting NTSTATUS is not valid.

(cherry picked from commit fbfaaf26890102dbe34315128183c27ce67f77a3)

11 years agoDEVEL15-windows-tests-torture-20090226
Jeffrey Altman [Thu, 26 Feb 2009 17:47:44 +0000]
DEVEL15-windows-tests-torture-20090226

LICENSE MIT

create a file of the specified size

(cherry picked from commit ab0691760f4cdd2fe8bded4700d051ea1ba51856)

11 years agoDEVEL15-windows-tests-20090226
Jeffrey Altman [Thu, 26 Feb 2009 17:29:15 +0000]
DEVEL15-windows-tests-20090226

LICENSE MIT

pullup tests from head to 1.5 branch

11 years agoDEVEL15-windows-freelance-20090223
Jeffrey Altman [Tue, 24 Feb 2009 05:06:34 +0000]
DEVEL15-windows-freelance-20090223

LICENSE MIT

Fix another set of edge cases where adding a mountpoint or symlink
to the Freelance volume would result in the wrong fid being returned
to the request that made the addition.

When the Freelance directory is updated, invalidate the cm_scache_t object.
that is associated with it.

Actually use the data version when checking callback status.

The return value from Add Mount/Symlink is not negative on failure.
Its an actual error code.  Treat it that way.

(cherry picked from commit 3c1f85820853e9143cab076d735f7d7c27aeaf62)

11 years agoDEVEL15-windows-getrootcellname-20090223
Jeffrey Altman [Mon, 23 Feb 2009 14:28:49 +0000]
DEVEL15-windows-getrootcellname-20090223

LICENSE MIT

do not mix and match CELL_MAXNAMELEN and MAXCELLCHARS.  They are
not the same.

(cherry picked from commit 80faa5e93ddc95ca676aa31f5d3522ad6b67f67e)

11 years agoDEVEL15-libafs-tree-clean-target-20090221
Russ Allbery [Sat, 21 Feb 2009 20:52:34 +0000]
DEVEL15-libafs-tree-clean-target-20090221

LICENSE IPL10

Add clean and distclean targets to the libafs_tree Makefile, based on
suggestions by jhutz.

(cherry picked from commit f83cfcafcbec8a953161fad300073b85a4215a03)

11 years agoDEVEL15-linux-module-build-test-configure-fix-20090221
Mike Meffie [Sat, 21 Feb 2009 15:36:49 +0000]
DEVEL15-linux-module-build-test-configure-fix-20090221

LICENSE IPL10
FIXES 124381

deal when the module link warning has extra characters

(cherry picked from commit 2290db5f160a0105005ec0787a002ce71629c3df)

11 years agoDEVEL15-smb-reformat-20090220
Jeffrey Altman [Sat, 21 Feb 2009 04:32:45 +0000]
DEVEL15-smb-reformat-20090220

LICENSE MIT

make consistent with the head

11 years agoDEVEL15-windows-smb-misc-20090220
Jeffrey Altman [Sat, 21 Feb 2009 04:26:53 +0000]
DEVEL15-windows-smb-misc-20090220

LICENSE MIT

Fix smb_FindFIDByScache() to avoid obtaining the smb_fid_t.mx and
smb_rctLock out of order.  Doing so requires obtaining references
on each smb_fid_t belonging to the smb_vc_t in order to prevent them
from being removed from the list while the list is being walked.

Reorder tests for CM_SCACHEFLAG_DELETED and smb_fid_t.scp to make
them more efficient and consistent.

When processing Tran2SetPathInfo do not fail because an smb_fid_t
cannot be found for the path object.  The PathInfo function is
being used because we do not have a file descriptor.  Most importantly
do not fail by returning success.

(cherry picked from commit 8382f8ccb1c14f32318b3d1c587b417cce4c721c)

11 years agoDEVEL15-windows-rename-cross-dir-invalid-handle-20090220
Jeffrey Altman [Sat, 21 Feb 2009 04:19:40 +0000]
DEVEL15-windows-rename-cross-dir-invalid-handle-20090220

LICENSE MIT

Problems with the cm_Rename() functions:

 * when a rename occurs across directories, the file server allocates
   a new vnode which in turn alters the FID.  Since the new FID and
   potentially version number is unknown to the client, it is not
   possible to update the target directory with the new name and
   FID thereby avoiding reading the directory from the file server.

 * when the old vnode is removed, the callback is broken but the
   client did not discard the cm_scache_t object

In order to optimize the client cache AFS requires a RXAFS_RenameEx
rpc that is equivalent to the current RPC but returns the new FID
and status.  This would permit the cache manager to relabel the
data buffers and cm_scache_t that are known to contain valid data.

(cherry picked from commit 54a3c85ae44aaaac9dd933893d975199b3cdca70)

11 years agoDEVEL15-smb-vc-reset-on-request-20090218
Asanka Herath [Thu, 19 Feb 2009 04:04:36 +0000]
DEVEL15-smb-vc-reset-on-request-20090218

LICENSE MIT

When processing SMB_SESSION_SETUP_ANDX in smb_ReceiveV3SessionSetupX
it is possible that the smb client might indicate that it requires an
Mpx Count greater than we are configured to support.  If so, log it
to the Windows Event Log as a warning.

It is also possible that the client might specify that its maximum
receive buffer is smaller than the SMB_PACKETSIZE.  If so, log it
to the Windows Event Log as a warning.

Finally, if the client specifies a virtual circuit number of zero,
the client thinks this is its first time communicating with us.
In which case we should invalidate all prior virtual circuits.
We also log this request to the Windows Event Log as informational.

(cherry picked from commit 4eb808d26b1d417189d363924c4e2e32ed832690)

11 years agoDEVEL15-windows-64bit-printf-sanity-20090218
Simon Wilkinson [Wed, 18 Feb 2009 17:48:58 +0000]
DEVEL15-windows-64bit-printf-sanity-20090218

LICENSE IPL10
FIXES 124265

don't assume %lld works for 64 bit ints on windows

(cherry picked from commit 5bd86a09eb897cf12f0d08442f956f79ec7d15b3)

11 years agoDEVEL15-vos-increment-offline-count-20090218
Peter Tripician [Wed, 18 Feb 2009 17:28:10 +0000]
DEVEL15-vos-increment-offline-count-20090218

LICENSE IPL10
FIXES 124333

increment offline volume count, not pointer to it

(cherry picked from commit 733794b4d8be284dcb6f9e60fa4b4abe1f3398f2)

11 years agoDEVEL15-vldb-check-no-bogus-shadow-decl-20090217
Derrick Brashear [Tue, 17 Feb 2009 14:34:31 +0000]
DEVEL15-vldb-check-no-bogus-shadow-decl-20090217

LICENSE IPL10

unfussy compilers treat this as a shadow declare; others thankfully as an error

(cherry picked from commit da8df5ea2c9311c4e4b263fbdba3aea3141ef075)

11 years agoDEVEL15-aklog-524-vars-20090216
Derrick Brashear [Tue, 17 Feb 2009 14:27:59 +0000]
DEVEL15-aklog-524-vars-20090216

LICENSE IPL10

add missing variables

(cherry picked from commit 8b74a85b977f379ea94cd01df3fcb553147a42dc)

11 years agoDEVEL15-vclosevnodefiles-ihandle-leak-20090216
Jeffrey Altman [Tue, 17 Feb 2009 04:37:37 +0000]
DEVEL15-vclosevnodefiles-ihandle-leak-20090216

LICENSE IPL10
FIXES 124359

don't leak ihandles on close. this isn't a complete fix for the issue

(cherry picked from commit b9816e12f7ed8213c9c4eaea09e992e69ce4ee05)

11 years agoDEVEL15-bozo-corefile-timestamp-fix-20090216
Peter Tripician [Tue, 17 Feb 2009 04:32:19 +0000]
DEVEL15-bozo-corefile-timestamp-fix-20090216

LICENSE IPL10
FIXES 124340

output y2k-correct corefile names

(cherry picked from commit 846919700b90b919d6a12102ae8c6d85ee36b83c)

11 years agoDEVEL15-aklog-use-native-principal-conversion-20090216
Evan Broder [Tue, 17 Feb 2009 04:29:04 +0000]
DEVEL15-aklog-use-native-principal-conversion-20090216

LICENSE IPL10
FIXES 124338

use krb5_524_conv_principal instead of doing it potentially wrong ourselves

(cherry picked from commit b1f9b4cb5dd295162ae51704310e9d6058008f0a)

11 years agoDEVEL15-macos-10-6-support-20090216
Chas Williams [Tue, 17 Feb 2009 04:25:25 +0000]
DEVEL15-macos-10-6-support-20090216

LICENSE IPL10
FIXES 124288

support for (32 bit) macos 10.6. no pam yet

(cherry picked from commit 8bc58a3d6dd531b55c405590e419d2ce4d74b5fc)

11 years agoDEVEL15-vldb-check-meaningful-return-codes-20090216
Steven Jenkins [Tue, 17 Feb 2009 04:17:09 +0000]
DEVEL15-vldb-check-meaningful-return-codes-20090216

LICENSE IPL10
FIXES 124321

make vldb_check have meaningful return codes

(cherry picked from commit 43bcfaf9cc429cec51a98857d86d870c45759baa)

11 years agoDEVEL15-fs-lsm-parse-bug-20090226
Peter Tripician [Tue, 17 Feb 2009 03:59:41 +0000]
DEVEL15-fs-lsm-parse-bug-20090226

LICENSE IPL10
FIXES 124319

print correct error on root directory

(cherry picked from commit 52f3295d32e3a72916ea1f99119967b7279f642a)

11 years agoDEVEL15-redhat-rpms-kernel24-20090216
Tony D'Amato [Tue, 17 Feb 2009 03:29:37 +0000]
DEVEL15-redhat-rpms-kernel24-20090216

LICENSE IPL10
FIXES 102673

rewrite make rule for 2.4 kernels

(cherry picked from commit 4817a4a98fe9ccc61c90d8bbc769790ad067339b)

11 years agoDEVEL15-windows-smb-fidp-scp-race-20090212
Jeffrey Altman [Thu, 12 Feb 2009 21:45:00 +0000]
DEVEL15-windows-smb-fidp-scp-race-20090212

LICENSE MIT
FIXES 124293

As evident in a crash dump, there is a race surrounding access to the
scp field of the smb_fid_t object.  Not all access was protected by
the smb_fid_t mx and the cm_scache_t object was not always being
reference counted within the accessing function.

This patch ensures that all initial references to the scp object
are performed under the smb_fid_t mx mutex and that the cm_scache_t
is prevented from being recycled by obtaining a local reference.

Finally, CM_ERROR_BADFD is returned as an error if a request begins
after the smb_fid_t scp field has already been cleared by a smb_CloseFID()
call as part of a concurrent request.

(cherry picked from commit 8e3b67b9537097928b4fc13844db09d429ac9bed)

11 years agoDEVEL15-windows-vmoved-vnovol-failover-20090212
Jeffrey Altman [Thu, 12 Feb 2009 21:30:16 +0000]
DEVEL15-windows-vmoved-vnovol-failover-20090212

LICENSE MIT
FIXES 124276

A readonly volume with multiple instances was being marked alldown
when one of the instances resulted in VNOVOL because the vldb and
the indicated file server were out of sync.  The cache manager would
then attempt to re-obtain the volume location info from the vldb
for the entire timeout period.

This patch:

adds trace logging to cm_Analyze indicating which server references
are being deleted and which remain in response to a VNOVOL/VMOVED error.

adds trace logging to cm_UpdateVolumeStatusInt showing how the
new volume status value is determined.

corrects cm_Analyze() so that it doesn't corrupt the server reference
list during cm_FreeServerList() calls; doesn't orphan the server reference
list by setting *serverpp to NULL; and only re-obtains the volume info
list once per request.

(cherry picked from commit 8bb35234aa8469ba93a2171fced503a875c2f1f6)

11 years agoDEVEL15-fix-tsfpq-20090210
Jeffrey Altman [Tue, 10 Feb 2009 22:42:50 +0000]
DEVEL15-fix-tsfpq-20090210

LICENSE BSD

avoid transferring more than the number of packets in a queue

(cherry picked from commit 1050049411d1fc47441220c33e6353436fc586e7)

11 years agoDEVEL15-restore-unix-rxdebug-20090210
Derrick Brashear [Tue, 10 Feb 2009 22:40:13 +0000]
DEVEL15-restore-unix-rxdebug-20090210

LICENSE IPL10

stale fixes from my sandbox

(cherry picked from commit c12e2fa01912e7950570354c6d059588028c086c)

11 years agoDEVEL15-rx-writevproc-wrong-type-20090207
Jeffrey Altman [Sat, 7 Feb 2009 17:22:46 +0000]
DEVEL15-rx-writevproc-wrong-type-20090207

LICENSE BSD

In rxi_WritevProc the queueScan that sets RX_PKTFLAG_TQ on the packet
really needs to cast the queue objects to rx_packet instead of rx_call.
Trashing random fields is not a good idea.

(cherry picked from commit 0edbc512b52848f076525ede5ff166f3785128a7)

11 years agoDEVEL15-windows-netidmgr-progress-20090205
Asanka Herath [Fri, 6 Feb 2009 03:14:21 +0000]
DEVEL15-windows-netidmgr-progress-20090205

LICENSE MIT

add progress reporting to the provider.

(cherry picked from commit b842ee3ea521a196652ff2d09d468ca008cececc)

11 years agoDEVEL15-windows-freelance-20090204
Jeffrey Altman [Thu, 5 Feb 2009 00:24:42 +0000]
DEVEL15-windows-freelance-20090204

LICENSE MIT

set the correct fid vnode/unique values when adding new symlnks and
mount points.

(cherry picked from commit ffdc7c70889386dca37e207a91791d5d0728d2d7)

11 years agoDEVEL15-upclient-cleanup-temp-files-20090203
Mike Meffie [Tue, 3 Feb 2009 19:44:39 +0000]
DEVEL15-upclient-cleanup-temp-files-20090203

LICENSE IPL10
FIXES 124221

remove tempfiles in the event of a fetching error

(cherry picked from commit 58a924fd50e96c827fc6dd3dcea48328b6abe4be)

11 years agoDEVEL15-rename-internal-gettimeofday-refs-20090203
Simon Wilkinson [Tue, 3 Feb 2009 19:42:27 +0000]
DEVEL15-rename-internal-gettimeofday-refs-20090203

LICENSE IPL10
FIXES 124259

switch to using fasttime, instead of wrapper

(cherry picked from commit 1811577fca393c4433de64ea6e1cd5a8d13521a3)

11 years agoDEVEL15-redhat-packaging-non-stable-branches-20090203
Simon Wilkinson [Tue, 3 Feb 2009 19:37:50 +0000]
DEVEL15-redhat-packaging-non-stable-branches-20090203

LICENSE IPL10
FIXES 124273

make rpm stuff work for other than 1.4.x

(cherry picked from commit 0ac1e741783e0d5b0cbb8ec665e0acab132f6265)

11 years agoDEVEL15-redhat-packaging-updates-20090203
Simon Wilkinson [Tue, 3 Feb 2009 19:34:20 +0000]
DEVEL15-redhat-packaging-updates-20090203

LICENSE IPL10
FIXES 124272

adds fc10, fc11 support

(cherry picked from commit fe3779411ea025d5ecf40687d5c21649e6daabdc)

11 years agoDEVEL15-man-page-salvager-fixes-20090201
Russ Allbery [Mon, 2 Feb 2009 01:23:06 +0000]
DEVEL15-man-page-salvager-fixes-20090201

LICENSE BSD

Fix the -parallel example in the main description text: "5all" should be
"all5".  Reword the description a bit to hopefully make it clearer that
there are two separate values set here.  Note under the option description
of -parallel that multiple partitions on the same device are normally
processed serially.

(cherry picked from commit d4763404655e27098eb4340eca8777b63d8a5847)

11 years agoDEVEL15-man-page-vos-examine-copy-date-20090201
Russ Allbery [Mon, 2 Feb 2009 01:22:34 +0000]
DEVEL15-man-page-vos-examine-copy-date-20090201

LICENSE BSD

Document the Copy field of vos examine output.

(cherry picked from commit f204e4e37f39fa15beabf68e68dce1f6425f7513)

11 years agoDEVEL15-linux-vmtruncate-20090130
Simon Wilkinson [Fri, 30 Jan 2009 14:36:24 +0000]
DEVEL15-linux-vmtruncate-20090130

LICENSE IPL10
FIXES 124128

use linux's vmtruncate feature instead of doing a somewhat-right internal versio
n

(cherry picked from commit 175393288df30ca88178ee98cdfff364bffbabb7)

11 years agoDEVEL15-dafs-vnode-close-race-20090129
Tom Keiser [Thu, 29 Jan 2009 17:06:52 +0000]
DEVEL15-dafs-vnode-close-race-20090129

LICENSE IPL10
FIXES 124223

address race between VCloseVnodeFiles_r and VGetFreeVnode_r

(cherry picked from commit ff795a12c50d0fa59d2b3ad0b383309b9a4e939d)

11 years agoDEVEL15-discon-diskslot-linux-20090129
Derrick Brashear [Thu, 29 Jan 2009 16:05:16 +0000]
DEVEL15-discon-diskslot-linux-20090129

LICENSE IPL10

build in the linux case on non-disconnected

(cherry picked from commit 47e99e36fd40c55be7a5d947fb096d6f6f2c0ae4)

11 years agoDEVEL15-discon-remove-fix-20090128
Derrick Brashear [Wed, 28 Jan 2009 22:39:13 +0000]
DEVEL15-discon-remove-fix-20090128

LICENSE IPL10

fix my own error

(cherry picked from commit df139845e9f83cd15f3b0ab8dcbb27781c811642)

11 years agoDEVEL15-rx-no-more-register-20090128
Jeffrey Altman [Wed, 28 Jan 2009 22:33:28 +0000]
DEVEL15-rx-no-more-register-20090128

LICENSE BSD

kill off use of register in rx

(cherry picked from commit 35cc76c21ebb48a2257254798a57afac083896ee)

11 years agoDEVEL15-rx-pthread-mutex-protects-threadcount-20090128
Jeffrey Altman [Wed, 28 Jan 2009 21:34:51 +0000]
DEVEL15-rx-pthread-mutex-protects-threadcount-20090128

LICENSE BSD

add protection of previously unprotected thread count variables

(cherry picked from commit 226cf894b65c62225785180dfeeed0ec1c1a160b)

11 years agoDEVEL15-discon-avoid-looping-on-replay-20090128
Simon Wilkinson [Wed, 28 Jan 2009 21:14:32 +0000]
DEVEL15-discon-avoid-looping-on-replay-20090128

LICENSE IPL10
FIXES 124203

don't defer based on a shadow copy

(cherry picked from commit 7cd7bcdc4ca6787e19c12485f70fabb8f4f9f00b)

11 years agoDEVEL15-disconnected-reply-no-locking-yet-20090128
Simon Wilkinson [Wed, 28 Jan 2009 21:02:28 +0000]
DEVEL15-disconnected-reply-no-locking-yet-20090128

LICENSE IPL10
FIXES 124202

don't lock files before replaying changes yet

(cherry picked from commit cc2f0d2bc52e980c376188888faa27cd37b0eccc)

11 years agoDEVEL15-disconnected-deal-with-unlink-while-open-20090127
Derrick Brashear [Wed, 28 Jan 2009 15:52:52 +0000]
DEVEL15-disconnected-deal-with-unlink-while-open-20090127

LICENSE IPL10
FIXES 124178

treat something as unlinked until a rename suceeds, then let that win

(cherry picked from commit af61732e4aaac8e09369addde0ec31a88fad8964)

11 years agoDEVEL15-rx-windows-debugging-20090127
Jeffrey Altman [Tue, 27 Jan 2009 17:49:15 +0000]
DEVEL15-rx-windows-debugging-20090127

LICENSE MIT

separate rx debugging from cache manager debugging.
assign bit 5 of the TraceOption registry value to activation of
rx debug output via DebugOutputString().

(cherry picked from commit 50d57f6c7b325cb9576f33845cac60e1523f661e)

11 years agoDEVEL15-windows-libafsrpc-20090127
Jeffrey Altman [Tue, 27 Jan 2009 17:09:38 +0000]
DEVEL15-windows-libafsrpc-20090127

LICENSE MIT

confirmed that rx_ReadvProc, rx_WritevProc, and rx_WritevAlloc are
properly implemented for Windows.  Add them to the public export list.

Add rx_ReadProc32 and rx_WriteProc32 to the public export list.

(cherry picked from commit 306a7761b3f2f7ec0d2909e1048ecd39e9c9cfd7)

11 years agoDEVEL15-windows-dcache-20090127
Jeffrey Altman [Tue, 27 Jan 2009 17:06:23 +0000]
DEVEL15-windows-dcache-20090127

LICENSE MIT

Use the optimized rx_Read32 call instead of the slower rx_Read when
reading 32-bit integer values.

(cherry picked from commit bc558c75dcad12c7f45443c8e191b554b5d0c887)

11 years agoDEVEL15-dafs-vol-offline-race-20090127
Mike Meffie [Tue, 27 Jan 2009 14:24:33 +0000]
DEVEL15-dafs-vol-offline-race-20090127

LICENSE IPL10
FIXES 124215

avoid race when taking volumes offline in dafs

(cherry picked from commit 72d502be69ea3208634bb0665fd37e990d1fa38e)

11 years agoDEVEL15-rx-windows-xmit-20090126
Jeffrey Altman [Tue, 27 Jan 2009 06:05:04 +0000]
DEVEL15-rx-windows-xmit-20090126

LICENSE MIT

The WinSock API does not include the Posix recvmsg/sendmsg interfaces.
Beginning with XP/2003 Microsoft began to support WSARecvMsg which is
a mostly compatible implementation of recvmsg.  In Vista/2008 Microsoft
began to support WSASendMsg a mostly compatible implementation of sendmsg.

Neither are part of the WinSock API and therefore they must be loaded
at runtime via a WSAIoctl() call to obtain the function pointers.
When the functions are available it is now possible to avoid a large
number of memcpy() calls.

This patch also enables UDP port unreachable messages on XP and above.

(cherry picked from commit a4f63a818eea476efa456132ca6112329ef8a484)

11 years agoDEVEL15-rx-slow-write-packet-20090126
Jeffrey Altman [Mon, 26 Jan 2009 22:54:06 +0000]
DEVEL15-rx-slow-write-packet-20090126

LICENSE MIT

In rx_SlowWritePacket the use of RX_MAXWVECS was incorrect.  The
niovecs field is allocated as [RX_MAXWVECS+1] with the 0th element
reserved for the rx header.  niovecs[RX_MAXWVECS] is therefore a
valid data buffer and the comparison should be (i <= RX_MAXWVECS).

This error has most likely not been noticed previously because
nothing in the OpenAFS source tree uses this function.

(cherry picked from commit 6e8039e8a55056f19895036ef6784f4fab5ab758)

11 years agoDEVEL15-discon-allow-saving-vcaches-on-shutdown-20090126
Simon Wilkinson [Mon, 26 Jan 2009 19:38:09 +0000]
DEVEL15-discon-allow-saving-vcaches-on-shutdown-20090126

LICENSE IPL10
FIXES 124211

restructure so we can save info necessary to keep dirty changes across offline
shutdown

(cherry picked from commit 8552f84b8ed0bce52dab1fd168054038d6ce20a9)

11 years agoDEVEL15-windows-btree-dir-enum-20090126
Jeffrey Altman [Mon, 26 Jan 2009 15:50:59 +0000]
DEVEL15-windows-btree-dir-enum-20090126

LICENSE MIT

Modify the cm_BPlusDirEnum interface:

* add the cm_scache_t * of the directory being enumerated to the
  cm_direnum_t object

* remove the cm_scache_t * from the cm_BPlusDirEnumBulkStat call
  now that it is part of the cm_direnum_t object

* maintain a reference to the cm_scache_t for the life of the
  cm_direnum_t object.  This ensures that the object cannot be
  recycled while the enumeration is in use.

(cherry picked from commit e42a066da153750077b154e27249b5b4862724db)