5785 Commits

Author SHA1 Message Date
Simon Wilkinson
9e01f3c781 DEVEL15-afsd-prototypes-20090316
LICENSE IPL10
FIXES 124231

prototype the afsd directory


(cherry picked from commit 242aa845a149d5132047e44d074064093fd2d61b)
2009-03-16 13:13:55 +00:00
Simon Wilkinson
d79a064148 DEVEL15-vol-prototypes-20090316
LICENSE IPL10
FIXES 124252

prototype the vol directory


(cherry picked from commit f28659bd826c2bb7311c84122262000caf33316c)
2009-03-16 13:11:55 +00:00
Jeffrey Altman
15320e7c84 DEVEL15-ubik-prototype-fallout-20090316
LICENSE IPL10

make things happy again


(cherry picked from commit a0179b07096014e31ba6ecf1643a9cf67ba45a24)
2009-03-16 12:37:40 +00:00
Derrick Brashear
50cfc3240f DEVEL15-irix-lacks-sig-t-20090315
LICENSE IPL10

sig_t is missing on irix


(cherry picked from commit 61dadb6458ec95b5bf4bd4250520453630fbbe4c)
2009-03-16 03:44:47 +00:00
Simon Wilkinson
ab1169f6e0 DEVEL15-viced-prototypes-20090315
LICENSE IPL10
FIXES 124251

prototype the viced directory


(cherry picked from commit 596614dd76aa5107f6cd30c67a79b371be48f504)
2009-03-16 03:10:31 +00:00
Simon Wilkinson
46e6482323 DEVEL15-ubik-prototypes-20090315
LICENSE IPL10
FIXES 124245

prototype the ubik directory


(cherry picked from commit d5158b2ccb78fc7df0a346c7a5dd5b7cb5d0b58b)
2009-03-16 03:03:24 +00:00
Simon Wilkinson
0dc70669ac DEVEL15-fsprobe-prototypes-20090315
LICENSE IPL10
FIXES 124254

prototype the fsprobe directory


(cherry picked from commit b18ec965dd58331eb32599a21e882fbe43a8257e)
2009-03-16 02:54:11 +00:00
Simon Wilkinson
698a078723 DEVEL15-libacl-prototypes-20090315
LICENSE IPL10
FIXES 124256

prototype the libacl directory


(cherry picked from commit 8952e3d64d8099a5238be3ccf9cb56a7c0d1a2df)
2009-03-16 02:42:45 +00:00
Simon Wilkinson
6bb7fcb272 DEVEL15-kauth-prototypes-20090315
LICENSE IPL10
FIXES 124257

prototype the kauth directory


(cherry picked from commit 2e4326e20ebadc2cb9b3efd117454bc422cdc63d)
2009-03-16 02:35:39 +00:00
Simon Wilkinson
0c833a207c DEVEL15-rxgen-prototypes-20090315
LICENSE IPL10
FIXES 124255

prototype the rxgen directory


(cherry picked from commit 12a60258f5ae680440b2a93369ca676359c888d4)
2009-03-16 02:26:40 +00:00
Simon Wilkinson
2fb7e51de7 DEVEL15-util-prototypes-20090315
LICENSE IPL10
FIXES 124247

prototype the util directory


(cherry picked from commit 47451b4c2009c51160686b4aca1b28b7011ba92f)
2009-03-16 02:00:39 +00:00
Simon Wilkinson
a43fcb874f DEVEL15-audit-prototypes-20090315
LICENSE IPL10
FIXES 124232

prototype the audit directory


(cherry picked from commit 00fd29251e9326bd81d46387337ca014a118f7ec)
2009-03-16 01:38:17 +00:00
Simon Wilkinson
5506fc8bd4 DEVEL15-des-prototypes-20090315
LICENSE IPL10
FIXES 124230

prototype the des directory


(cherry picked from commit c560efe73f79e396866918ee072849065ab70838)
2009-03-16 01:34:48 +00:00
Rainer Toebbicke
d84bb72e26 DEVEL15-viced-copyonwrite-optimization-20090315
LICENSE IPL10
FIXES 124397

optimize CopyOnWrite to avoid rewriting data if possible


(cherry picked from commit 0c39a855a2da7b3e82970c65f835eed38b650215)
2009-03-15 18:50:10 +00:00
Chaskiel M Grundman
d0cf16e676 DEVEL15-cellservdb-proc-file-glocking-20090315
LICENSE IPL10
FIXES 124407

hold GLOCK appropriately when dealing with the proc file


(cherry picked from commit 6308037dec22d5a141fc64a11472b1a36585deb2)
2009-03-15 18:42:23 +00:00
Mike Meffie
52484cc29b 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)
2009-03-15 18:30:52 +00:00
Mike Meffie
84e1da3b2c DEVEL15-butc-xbsa-buffersize-20090315
LICENSE IPL10
FIXES 124425

restrict buffer size to allow for header space


(cherry picked from commit fd6d954e95e016a78001e9bc12c4646ba8183e12)
2009-03-15 18:19:25 +00:00
Chaskiel M Grundman
ab9a5082d3 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)
2009-03-15 18:13:36 +00:00
Derrick Brashear
af7da2a90b 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)
2009-03-15 18:02:41 +00:00
Jeffrey Altman
e938e866da 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)
2009-03-14 04:59:34 +00:00
Jeffrey Altman
afa037ff2b 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)
2009-03-14 04:55:09 +00:00
Jeffrey Altman
5ea847f911 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)
2009-03-14 04:51:19 +00:00
Jeffrey Altman
44e15daff0 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)
2009-03-14 04:49:15 +00:00
Jeffrey Altman
3cd3921c36 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)
2009-03-14 04:45:32 +00:00
Matt Benjamin
0b8e728d27 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)
2009-03-10 19:21:22 +00:00
Jeffrey Altman
47af594eb7 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)
2009-03-07 14:10:43 +00:00
Jeffrey Altman
0c1bf0bb22 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)
2009-03-02 04:45:15 +00:00
Jeffrey Altman
71a8a8567e 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)
2009-02-28 16:19:26 +00:00
Jeffrey Altman
1453e1ae13 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)
2009-02-28 15:41:44 +00:00
Jeffrey Altman
5b1baa6f8b 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)
2009-02-27 07:26:49 +00:00
Jeffrey Altman
61e13ffbfe DEVEL15-windows-tests-torture-20090226
LICENSE MIT

create a file of the specified size


(cherry picked from commit ab0691760f4cdd2fe8bded4700d051ea1ba51856)
2009-02-26 17:47:44 +00:00
Jeffrey Altman
4f11f84a8e DEVEL15-windows-tests-20090226
LICENSE MIT

pullup tests from head to 1.5 branch
2009-02-26 17:29:15 +00:00
Jeffrey Altman
26e489accb 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)
2009-02-24 05:06:34 +00:00
Jeffrey Altman
32674c098a 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)
2009-02-23 14:28:49 +00:00
Russ Allbery
a88e1ffd71 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)
2009-02-21 20:52:34 +00:00
Mike Meffie
9c1ba1108c 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)
2009-02-21 15:36:49 +00:00
Jeffrey Altman
5a29b090de DEVEL15-smb-reformat-20090220
LICENSE MIT

make consistent with the head
2009-02-21 04:32:45 +00:00
Jeffrey Altman
a14281359d 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)
2009-02-21 04:26:53 +00:00
Jeffrey Altman
671c0e3435 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)
2009-02-21 04:19:40 +00:00
Asanka Herath
a0b49b790d 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)
2009-02-19 04:04:36 +00:00
Simon Wilkinson
4440af0090 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)
2009-02-18 17:48:58 +00:00
Peter Tripician
578e0ac98a DEVEL15-vos-increment-offline-count-20090218
LICENSE IPL10
FIXES 124333

increment offline volume count, not pointer to it


(cherry picked from commit 733794b4d8be284dcb6f9e60fa4b4abe1f3398f2)
2009-02-18 17:28:10 +00:00
Derrick Brashear
cd34361596 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)
2009-02-17 14:34:31 +00:00
Derrick Brashear
04ca4bdd05 DEVEL15-aklog-524-vars-20090216
LICENSE IPL10

add missing variables


(cherry picked from commit 8b74a85b977f379ea94cd01df3fcb553147a42dc)
2009-02-17 14:27:59 +00:00
Jeffrey Altman
1c0553f73b 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)
2009-02-17 04:37:37 +00:00
Peter Tripician
919fac924a DEVEL15-bozo-corefile-timestamp-fix-20090216
LICENSE IPL10
FIXES 124340

output y2k-correct corefile names


(cherry picked from commit 846919700b90b919d6a12102ae8c6d85ee36b83c)
2009-02-17 04:32:19 +00:00
Evan Broder
298e3bde1e 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)
2009-02-17 04:29:04 +00:00
Chas Williams
0981b42ea8 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)
2009-02-17 04:25:25 +00:00
Steven Jenkins
ba36fc7190 DEVEL15-vldb-check-meaningful-return-codes-20090216
LICENSE IPL10
FIXES 124321

make vldb_check have meaningful return codes


(cherry picked from commit 43bcfaf9cc429cec51a98857d86d870c45759baa)
2009-02-17 04:17:09 +00:00
Peter Tripician
ff8b8f3b72 DEVEL15-fs-lsm-parse-bug-20090226
LICENSE IPL10
FIXES 124319

print correct error on root directory


(cherry picked from commit 52f3295d32e3a72916ea1f99119967b7279f642a)
2009-02-17 03:59:41 +00:00