4839 Commits

Author SHA1 Message Date
Derrick Brashear
77baeeafa7 DEVEL15-vos-restore-incrementals-no-orphans-really-20080121
LICENSE IPL10
FIXES 46937

based on comments from jhutz@cmu.edu; runnign thread in the ticket


(cherry picked from commit 22c059a9138be33eeeed910badcac3ebfeea24b5)
2008-01-21 14:06:11 +00:00
Jason Edgecombe
c4923a4d26 DEVEL15-man-page-fileserver-limits-20080119
LICENSE BSD

Document the 2TB volume and partition limits and the -abortthreshold flag
to the AFS fileserver.


(cherry picked from commit efba39ead059458d222f923db83c660f23c20b80)
2008-01-20 00:17:45 +00:00
Jeffrey Altman
04c9a3436c DEVEL15-windows-cm_ioctl_query_opts-20080115
LICENSE MIT

The path ioctl operations have several issues:

(1) the specified path for "fs examine, whereis, whichcell, flush" and so
    always has the follow symlinks and mount points semantics.  This makes
    it impossible to determine what the FID of a symlink or mount point is.

(2) "fs examine" out is not the result of a single pioctl operation but is
    actually the combined output of half a dozen operations.  Path evaluation
    is an expensive operation.  It would be faster if the caller could
    evaluate the FID first and then perform all of the rest of the operations
    by specifying the FID instead of the path.

(3) fs output reports all objects as files.  By adding a GetFileType
    pioctl more informative output can be provided that indicates what
    type of object the path evaluates to.

(4) the Windows fs command includes a number of commands that do nothing
    but exist only because the Unix cache manager supports them.

This delta adds a new extendible data structure cm_ioctl_query_opts_t which
can be optionally specified with pioctls that do not already require
input data.  The first two fields of this structure are 'literal' and
'fid'.  The literal field is used to indicate whether the last component
of the path should be evaluated following symlinks and mount points.
The fid field permits a fid to be specified.

A new GetFileType pioctl has been added. The type of objects are now
output.

A new "-literal" option is available for "fs examine, flush, whereis, and
whichcell.

Unimplemented fs commands have been removed.


(cherry picked from commit 88e915d8f976898e75a6afe8bc7b6d7c33b8a121)
2008-01-16 03:19:51 +00:00
Derrick Brashear
36ece4c442 DEVEL15-redhat-makesrpm-deal-with-cellservdb-20080115
LICENSE IPL10

autofetch the CellServDB based on the spec or let one be provided


(cherry picked from commit 64ef3f518eee22b167ff5043b01dc1f3251f10bd)
2008-01-15 23:43:40 +00:00
Matt Benjamin
c6f784e6a3 DEVEL15-fbsd-70-updates-20080115
LICENSE IPL10
FIXES 82847

updates to make us build on freebsd 7.0


(cherry picked from commit c386499fbeab36f5292e196563a4887fa06068ac)
2008-01-15 06:09:11 +00:00
Derrick Brashear
a07ff8f020 DEVEL15-arm-linux-20080115
LICENSE IPL10

make an arm linux port.


(cherry picked from commit 08d71812fed3cc9f37d516d8f5d5b4ba9ccfb032)
2008-01-15 05:21:18 +00:00
Jason Edgecombe
6f7d1a30d2 DEVEL15-man-page-cmdebug-updates-20080113
LICENSE BSD

Add -ctime and -cellservdb options to the cmdebug man page and improve
example host names and SEE ALSO references.


(cherry picked from commit 110d5702ea51ce43fca6a5962d9ef8a0ec56d6eb)
2008-01-14 05:05:28 +00:00
Jeffrey Altman
1a3b021863 DEVEL15-cmd-nname-20080113
LICENSE MIT

Nname() is used to concatenate two strings and is frequently used with
the first string being the name of the executable perhaps with a full
path.  The static buffer specified is too small for a full path and
there was no protection against writing beyond the end of it.


(cherry picked from commit d5811091995b78d65e891b134aa0ad6955bbc30c)
2008-01-13 15:35:41 +00:00
Jeffrey Altman
662f0642b0 DEVEL15-windows-pioctl-parse-path-20080113
LICENSE MIT

Apply the desired "follow symlinks/mountpoints" semantics to the single
component non-UNC case.


(cherry picked from commit 84989e6584e3808ae3f1959330b267feff2661f6)
2008-01-13 14:38:06 +00:00
Jeffrey Altman
09fd77255a DEVEL15-windows-explorer-shell-symlinks-show-20080112
LICENSE MIT

Add AFS->Symlnks->Show dialog to the explorer shell menu


(cherry picked from commit 7a40c73476e270aac9d76663ff71e956bb630328)
2008-01-12 23:31:24 +00:00
Jeffrey Altman
e45ea5585e DEVEL15-cmdebug-cellservdb-20080112
LICENSE MIT

Add -cellservdb option to the cmdebug command.

This option will retrieve the volume location database information
for all cells known to the cache manager and output the data in the
format required by the CellServDB file.

This functionality is supported by the UNIX cache managers and
Windows cache managers 1.5.31 and later.


(cherry picked from commit b3fe9727b3e775348561bcbe0cf0c14cff82e597)
2008-01-12 15:44:40 +00:00
Derrick Brashear
1757115a2e DEVEL15-config-cvsignore-update-20080111
LICENSE IPL10

ignore generated Makefile.SYSNAME.in


(cherry picked from commit bda66877dd88bcc78eba646b4f6a1131266e33d4)
2008-01-11 22:41:50 +00:00
Jeffrey Altman
2bf4a90d1e DEVEL15-windows-callback-getcellservdb-20080111
LICENSE MIT

Add support for RXAFS_GetCellServDB.  Implemented by generalizing
RXAFS_GetCellByNum and special casing the index values to do the
right thing.

Conditionalize grabbing the callp->lock in the callback functions.
The race conditions in rx have long since been fixed and the potential
for deadlocks are too great.

Add a new flag CM_FLAG_NOPROBE for use in calls to cm_GetCell.  When
set the newly discovered servers will not be immediately probed.  Useful
when setting tokens, setting server preferences, or responding to cmdebug
callbacks.


(cherry picked from commit ae9dc9ad4ddd8313d24e457faf48bc15ccd2c86c)
2008-01-11 19:12:16 +00:00
Jeffrey Altman
75a278c098 DEVEL15-windows-version-20080110
LICENSE MIT

1.5.3001 = 1.5.30
openafs-devel-1_5_30a
2008-01-10 23:03:51 +00:00
Jeffrey Altman
6aef8bb28f DEVEL15-windows-smb-synchronization-20080110
LICENSE MIT

1. prevent stopping the smb_Listeners due to an ip addr change when the
LANA is determined either by registry assignment or loopback detection

2. add synchronization logic to prevent smb_Listener restarts prior to
   smb_Listener thread stoppage

3. no longer permit panics from smb_Listener threads

4. move the probe logic from cm_IPAddrDaemon thread to the cm_Daemon
   thread in order to avoid the loss of ip addr change events.  If an
   adapter stops and restarts fast enough there might not be anything
   for us to do.


(cherry picked from commit 8b82cbeef760992c6e3d27f9f6ea1f4e0bb559ab)
2008-01-10 23:00:41 +00:00
Matt Benjamin
6434311442 DEVEL15-linux-2624-rc5-updates-20080110
LICENSE IPL10
FIXES 80463


Include linux/key-type.h in osi_groups.c, if it exists. Fix
do_sync_read test for recent kbuild (maybe break it for [some older 2.6]).


(cherry picked from commit 8569f67aee8ee0de26259397818ab3af69f18007)
2008-01-10 17:00:16 +00:00
Simon Wilkinson
f23cd70d83 DEVEL15-redhat-make-srpm-script-20080109
LICENSE IPL10

srpm builder script


(cherry picked from commit 5011ea88badac8d393c4566a69e30f74c85e13ab)
2008-01-09 19:38:40 +00:00
Jeffrey Altman
b2cc8ea354 DEVEL15-windows-smb-name-deleted-20080109
LICENSE MIT

if the smb_Listener receives NRC_NAMERR (name deleted) it must be because
an smb shutdown has occurred.  do not panic.


(cherry picked from commit a1b7be4ac3f073a2d64f46649e54a1ff99d2567b)
2008-01-09 15:21:22 +00:00
Jeffrey Altman
64bd0006d6 DEVEL15-windows-version-20080109
LICENSE MIT

1.5.30 == 1.5.3000.0
2008-01-09 14:50:36 +00:00
Jeffrey Altman
ae138fd9d5 DEVEL15-windows-pioctl-follow-mountpoints-registry-20080108
LICENSE MIT

Add a registry value "PioctlFollowMountPoint" to permit the use of the
old pioctl path evaluation behavior that always followed mountpoints
and symlinks.


(cherry picked from commit 845fb28de656d9886dd44cbf335833985ffc7d3b)
2008-01-09 06:05:00 +00:00
Jeffrey Altman
81efaf0969 DEVEL15-smb-even-less-chatty-20080108
LICENSE MIT

remove the smb_RestartListeners message entirely


(cherry picked from commit f2fd97bfb02d1d2ed46304b5864d71a8759892a4)
2008-01-08 22:30:00 +00:00
Jeffrey Altman
10abd58f4e DEVEL15-windows-daemon-20080108
LICENSE MIT

sleep 10 seconds between cycles.  should make this configurable.


(cherry picked from commit 110f74bcb85928d274ad2608662434304ff4ffae)
2008-01-08 22:04:09 +00:00
Jeffrey Altman
31ca4ccc9a DEVEL15-windows-callback-missing-bang-20080108
LICENSE MIT

Insert a missing bang that results in a null pointer dereference
when processing a callback from an unrecognized server.


(cherry picked from commit 69c9ab66a41236e987b44af9a3cb141adb1c2817)
2008-01-08 21:27:54 +00:00
Asanka Herath
238fc1d858 DEVEL15-windows-nim-afscred-identity-initialization-20080108
LICENSE MIT

One of the challenges to deploying NIM has been the configuration of
AFS token acquisition.  This patch adds a new registry key hierarchy

  HKLM\SOFTWARE\OpenAFS\Client\Realms

which is used to configure the AFS Provider for a new identity based
upon the realm of the identity.  The Realms key contains subkeys for
each realm for which configuration data is being provided

  HKLM\SOFTWARE\OpenAFS\Client\Realms\"RealmName"

"RealmName" contains one optional value, "AFSEnabled", and subkeys for
each Cell that is to be added to the configuration.  "AFSEnabled" defaults
to 0x01.

   HKLM\SOFTWARE\OpenAFS\Client\Realms\"RealmName"\"CellName"

In "CellName", there are two optional values, "Realm" and "MethodName".
If the values are not specified, the automatic realm and method determination
algorithms are used.

These values can be added to an MSI transform or deployed via Group Policy.


(cherry picked from commit 521f139a89c2f078888b8bad37a495d23723a789)
2008-01-08 17:06:39 +00:00
Jeffrey Altman
2e4a7c47a1 DEVEL15-windows-notes-20080108
LICENSE MIT

1.5.30
2008-01-08 16:32:31 +00:00
Jeffrey Altman
9bf47e5a32 DEVEL15-windows-release-notes-20080108
LICENSE MIT

updates for 1.5.30
2008-01-08 16:15:45 +00:00
Jeffrey Altman
6c1c8a85d4 DEVEL15-windows-smb-started-synchronization-20080108
LICENSE MIT

Add a new mutex "smb_StartedMutex" which is used to protect the
transitions between the various smb_ListenerState values.


(cherry picked from commit 5979a37e4e361bd9d2c52b6f6ef4bcce20a3124c)
2008-01-08 07:05:39 +00:00
Jeffrey Altman
0d94d0921b DEVEL15-windows-printf-format-string-protection-20080108
LICENSE MIT

Do not pass strings generated from incoming network data to ??printf
as the format string.  Instead use a format string of "%s".  This protects
against %? expansions being inserted in the string.


(cherry picked from commit a05df915505ab3e77e46e39a5b232086c43fc8bf)
2008-01-08 06:29:47 +00:00
Derrick Brashear
0ac284821f DEVEL15-openafs-1-5-30-20080109
LICENSE IPL10

make 1.5.30
openafs-devel-1_5_30
2008-01-09 16:04:55 +00:00
Derrick Brashear
e9a27dd73d DEVEL15-viced-hpr-error-handling-20080107
LICENSE IPL10

fix ubik reinit issue reported by jhutz@cs


(cherry picked from commit be4da54fa06c0a6f43c0be09e1339d29cc4b5e5a)
2008-01-07 20:23:50 +00:00
Derrick Brashear
859c9d11e2 DEVEL15-sys-syscall-object-dependency-20080107
LICENSE IPL10

make syscall.o always be created, some makes don't deal with the implicit requirement


(cherry picked from commit 777a2840878af313e062c4885ae7002bad62bdf4)
2008-01-07 20:10:39 +00:00
Russ Allbery
6658bbe543 DEVEL15-linux-probe-warning-case-20080107
LICENSE MIT

Some older Linux kernels prefix warnings with "Warning:" rather than
"WARNING:", so do the grep case-insensitively when finding missing symbols.


(cherry picked from commit 58efc5029c832e6b1456c36b599e7e33d62cd9c6)
2008-01-07 18:33:15 +00:00
Jeffrey Altman
72af898c0a DEVEL15-windows-bkg-prefetch-buf-refcount-leak-20080107
LICENSE MIT

Close a refcount leak in bkg prefetch.

Do not stop prefetching simply because a buffer we want is already being
fetched.  Instead skip the buffer and try to fetch the next one we require.


(cherry picked from commit b19c56edfa5f0e3ff95f32b006b9403f53dd406f)
2008-01-07 17:56:37 +00:00
Jeffrey Altman
16481e5181 DEVEL15-windows-ipaddr-change-server-deadlock-20080106
LICENSE MIT

avoid a deadlock during server probes initiated by the ipaddr change
daemon thread.


(cherry picked from commit 049bc4a637334c6e94661a60067ff6a27e5ad481)
2008-01-06 23:12:59 +00:00
Derrick Brashear
909efa4b7d DEVEL15-viced-threadquota-release-holds-20080106
LICENSE IPL10

release a hold when we decline to service a host


(cherry picked from commit 342595b2aa712ca7c0f2c160f9cba304dd27d574)
2008-01-06 15:57:40 +00:00
Jeffrey Altman
9e4dd65c39 DEVEL15-windows-power-mgmt-20080105
LICENSE MIT

Log more power mgmt events.

Do not permit a smb reinitialization when in a suspended state

Periodically check to see if the LAN adapter is -1.  If so, try to
reinitialize the smb stack.


(cherry picked from commit 6887c0e5b2b766b06c7e76a5ce28b84ed52df1d5)
2008-01-06 06:26:04 +00:00
Jeffrey Altman
91531d52c2 DEVEL15-windows-follow-backup-path-20080105
LICENSE MIT

parens are required in order to get the desired behavior


(cherry picked from commit d27e82c8e2dcdf81ce8e8e6e849828881256f5fc)
2008-01-05 22:20:30 +00:00
Jeffrey Altman
9018182031 DEVEL15-windows-nim-afscred-referrals-two-20080105
LICENSE MIT

compatibility with Visual Studio 2005/2008


(cherry picked from commit f789f943f6967094f921b1b1b232be22925e3849)
2008-01-05 18:57:12 +00:00
Jeffrey Altman
21d6a34773 DEVEL15-windows-vista-network-change-20080105
LICENSE MIT

After a network change, test to see if the desired LAN adapter to bind
the Netbios Name to has changed.  If so, stop the Netbios Network and
restart with the new LAN adapter.

This can happen on Vista after a suspend if the service wakes up before
the Loopback adapter re-initializes.


(cherry picked from commit f970985bc35ade50371a9299ad580d96ad04e979)
2008-01-05 17:56:29 +00:00
Jeffrey Altman
10375cf8f4 DEVEL15-windows-nim-afscred-referrals-20080105
LICENSE MIT

If the requestd realm name is the empty string, copy the realm from the
resulting ticket for use in pts registration.


(cherry picked from commit 53acd2042d53d947b213ba4ee58378c89555a868)
2008-01-05 17:29:56 +00:00
Derrick Brashear
ecf6ff7b2c DEVEL15-windows-aklog-referrals-20080105
LICENSE IPL10

If the realm name of the requested ticket is the empty string, decode
the actual service ticket to determine the actual realm.  Obtaining the
actual realm prevents unnecessary pts registration failures.


(cherry picked from commit 8e3940c461f29483dcd71a5ba7cc59db89ea38e1)
2008-01-05 17:01:24 +00:00
Marc Horowitz
16f664eb2b DEVEL15-aklog-referral-support-20080104
LICENSE IPL10

with updates and configure support from Simon Wilkinson.

make aklog able to cope with referrals.


(cherry picked from commit 2d15ac79349678e025f407b863f2911cd20e6f4e)
2008-01-05 04:46:52 +00:00
Derrick Brashear
29dfd4eebc DEVEL15-pag-allocation-dont-throttle-when-time-reverses-20080104
LICENSE IPL10
avoid pag allocation throttling when time is set back by e.g. ntpd to avoid starving everyone.


(cherry picked from commit 02dc91892c41163f24c818615d13271b074df3ca)
2008-01-04 18:38:34 +00:00
Jeffrey Altman
cbf08d13ec DEVEL15-windows-fs-test_volstat-20080103
LICENSE MIT

Add a hidden command that can be used to test volume status handlers.
fs test_volstat.


(cherry picked from commit 068233cf4ab90a173e04de94605490e651d2f686)
2008-01-04 07:58:40 +00:00
Jeffrey Altman
2e407ae9be DEVEL15-windows-fs-path-avail-20080103
LICENSE MIT

fix the reporting of volume status as a result of the VIOC_PATH_AVAIL
pioctl call. Switch on errno instead of the pioctl return value.


(cherry picked from commit 23318f425ca8ccdc9b67bfc1be0a28c0f724f52a)
2008-01-04 07:53:55 +00:00
Jeffrey Altman
839358af6e DEVEL15-windows-fs-prototype-20080103
LICENSE

Fix types in prototypes to be consistent with function definitions


(cherry picked from commit d851dda5b7a84fa1acf5ccc93313df90922ce6b1)
2008-01-04 07:49:30 +00:00
Jeffrey Altman
c3a0d7a80b DEVEL15-windows-smb-20080103
LICENSE MIT

ensure type consistency between 32-bit and 64-bit processes by replacing
'long' with 'afs_uint32'


(cherry picked from commit 6034868e79f85e0143caa40669244cb8e442587b)
2008-01-04 07:47:31 +00:00
Jeffrey Altman
4b19efc23b DEVEL15-windows-volume-status-20080103
LICENSE MIT

when performing offline volume status checks handle CM_ERROR_NOACCESS
conditions by restoring the volume status to vl_unknown.


(cherry picked from commit ae8e701952ae029672f2d7acfaf94cd44c1e4df4)
2008-01-04 07:44:40 +00:00
Derrick Brashear
6cb037254b DEVEL15-aix-lam-aklog-update-20080103
LICENSE IPL10

make the aklog lam plugin work correctly in e.g. the CDE screenlocker, which is
part of the long-running and not-run-by-user dtsession; this means we do wackiness to
1) not pag ourselves in that case
2) setuid to the user to set uid tokens if we got a username and are root
3) do not use pr_mumble get the the AFS ID to put in the tokens, as multiple
   initializations of Rx in the process space of dtsession crashes it


(cherry picked from commit 3a541eb11d1bc7bd05b85635315214218d3b5d6f)
2008-01-03 18:03:45 +00:00
Jeffrey Altman
5cb091e6bc DEVEL15-windows-64bit-20080102
LICENSE MIT

do not disable the signature verification of binaries when using
large cache sizes on 64-bit systems

cm_config_data values are unsigned and some are 64-bit.  when logging
them use the correct data format types.


(cherry picked from commit 5baef6f6fe55ca81a28bc22023b06ee6c50d453d)
2008-01-02 15:55:00 +00:00