4309 Commits

Author SHA1 Message Date
Simon Wilkinson
2b1c899149 DEVEL15-linux-sysctl-update-20070612
FIXES 61906

2.6.21.1 introduces an additional .parent pointer in the middle of
the structure. As the OpenAFS code just initialises the structure
with a list, this causes it to assign the value intended
for .proc_handler to .parent


(cherry picked from commit a6294ee79a9dc18fad219262b6be69535c0398a9)
2007-06-23 07:33:18 +00:00
Derrick Brashear
7ba9c3e564 DEVEL15-newuuid-fix-20070622
yeah, i should commit from places with better network if i'm going to need to edit in place, so i can see what i'm typing


(cherry picked from commit ec223f850b654365d13a7f8ae483c883d35413ab)
2007-06-23 07:23:12 +00:00
Asanka Herath
75c119c822 DEVEL15-windows-install-wix-20070622
add the images from relnotes_files to the distribution.


(cherry picked from commit 31dfee00018d447dceccdb71c9927e84087639c8)
2007-06-22 23:23:02 +00:00
Jeffrey Altman
49af97f07f DEVEL15-windows-cell-hashtables-20070622
Add name and ID hash tables for cell lookups.  cell lookups occur on
every request.  sometimes multiple times.  removing the walking of the
cell list when there are dozens of cells decreases cpu utilization and
increases throughput.


(cherry picked from commit ccfba9c7b806bdbd60f31010618e99eb48d2ddb6)
2007-06-22 23:16:39 +00:00
Jeffrey Altman
50d5c21f35 DEVEL15-windows-install-nsis-20070622
add missing jpg files to documentation installation


(cherry picked from commit 8fb02b0a0c4f16a9c3de2c6c5494a7b32c3914fd)
2007-06-22 15:43:15 +00:00
Jeffrey Altman
dc3d4c382e DEVEL15-windows-release-notes-20070622
release notes for what should be 1.5.21.

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

another fix for index.htm.  point at relnotes_frames.htm instead of frames.htm
2007-06-22 15:40:12 +00:00
Jeffrey Altman
4d09998cf9 DEVEL15-windows-misc-20070622
there were two sets of registry values that could be used to configure
the daemon thread check intervals.  keep the one that was documented
in the release notes and discard the other.

Add a registry value "daemonCheckOfflineVolInterval" to configure the
offline volume check interval.

Ensure that the cm_GetConn... functions initialized the output variables
to NULL on error.


(cherry picked from commit 43a27633c64f1bcb371fd35a52dc58586d81a5ba)
2007-06-22 15:12:39 +00:00
Jeffrey Altman
10a69d45a7 DEVEL15-windows-notes-20070622
more pre-1.5.21 notes
2007-06-22 13:45:22 +00:00
Jeffrey Altman
c18f10e9ab DEVEL15-windows-fake-stat-20070622
When we are faking the status data we can use the vnode value to determine
if the object should be treated as a directory or file.  even is a directory
and odd is a file.  This works even when we have never successfully
obtained status data for the object.


(cherry picked from commit afa909e66ca66db50b71434ad0396d9b5a7af936)
2007-06-22 07:01:18 +00:00
Jeffrey Altman
b210bbb4ac DEVEL15-windows-mountpoint-is-directory-20070622
when the CIFS client requests a directory listing without directories,
do not include mount points.


(cherry picked from commit 2675d25f6955351e963ff58abfcf2ea6aefd946a)
2007-06-22 06:32:10 +00:00
Jeffrey Altman
7f10138210 DEVEL15-windows-revoke-callback-20070619
If the we can match up the host address from which the revoke was received
with one of our cm_server_t objects, then we know which cell the revoke
has been received from.  With that information we can ensure that we only
revoke the status of cm_scache_t objects belonging to that cell.


(cherry picked from commit d7d8de3041da75e8dbfef27a153660086370780c)
2007-06-19 21:12:06 +00:00
Jeffrey Altman
b982123662 DEVEL15-windows-all-cell-list-20070619
Reverse the order of the allCellsp list.  Append new cells onto the end
of the list.  This ensures that the workstation cell will always be the
first in the list.  Adding additional cells will not degrade the performance
to the workstation cell.


(cherry picked from commit adb83635bbb0c2ed7f549a78e2d9a56baa16b273)
2007-06-19 19:31:10 +00:00
Jeffrey Altman
847a200bb9 DEVEL15-windows-updatecell-20070619
No longer permit cm_GetCell() or cm_FindCellByID() to return NULL simply
because cm_UpdateCell() failed.  The cm_cell_t object still exists and
is valid even if the vlServersp list is empty.

Modify the lock management in cm_GetCell_Gen() to ensure we drop all the
locks.

In cm_Analyze() update the volume status when one of the servers reports
VBUSY or VRESTARTING.


(cherry picked from commit 01c3c334d53da95318f54b4085da9b37c79c90b9)
2007-06-19 17:15:59 +00:00
Jeffrey Altman
12ee771f6f DEVEL15-windows-deadlock-20070619
fix deadlock on cm_volumeLock introduced by last week's work

in cm_Analyze, make sure we get a cm_cell_t reference otherwise we
won't find the cm_volume_t we are searching for when ALLOFFLINE or
ALLBUSY.


(cherry picked from commit 59db9812209d5e54cc47fc32d626b8b73f7fc22b)
2007-06-19 13:04:04 +00:00
Russ Allbery
bfa6e684be DEVEL15-man-page-net-info-fixes-20070619
Fix a NetInfo reference in the NetRestrict man page that should be
NetRestrict and add cross-references in SEE ALSO.


(cherry picked from commit 67ea3ae96bc678b5e2a61810634bef71713291da)
2007-06-19 10:08:41 +00:00
Jeffrey Altman
0791f05217 DEVEL15-windows-amd64-20070619
Use 0x0502 instead of 0x0500. There is no 64-bit Windows 2000 support.

Explicitly list the machine type as X64 for linking.


(cherry picked from commit f1db63646c38635a6bd2addb5202344da6fce275)
2007-06-19 06:29:58 +00:00
Jeffrey Altman
0ebd80e33b DEVEL15-windows-misc-20070619
VMWare adapters have proven unreliable replacements for the Microsoft
loopback adapter.  Registering AFS often results in a name space collision.

Add cm_DumpCells() function and dump the cells as part of "fs memdump"

Dump all cm_scache_t and cm_volume_t regardless of reference counts

Fix cm_GetCell_Gen() to not allocate a new cm_cell_t when evaluating
mount points to aliases.  Instead, after looking up the alias successfully
search the allCellsp list for the fullname of the cell.  If found, use
the existing entry and cleanup the one we were about to allocate.

Use read locks whenever possible instead of write locks when searching
the allCellsp list.


(cherry picked from commit aed66fda2c2ba1758a69950a53d09efc82f8212d)
2007-06-19 06:25:39 +00:00
Derrick Brashear
09e7e81d6e DEVEL15-macos-realtime-ip-updates-20070618
notice and deal with IP address changes


(cherry picked from commit 56728676386dfcdb1e9f3938ce9375f9a5531f17)
2007-06-18 19:49:49 +00:00
Derrick Brashear
a57302014f DEVEL15-readme-20070618
update the systype list


(cherry picked from commit f19ce63279d8745146694de989633cf2035e13f9)
2007-06-18 19:23:17 +00:00
Derrick Brashear
4ab6b4a46a DEVEL15-avoid-empty-uuid-20070618
avoid issue where uuid can potentially be 0: set one always at AFSOP_GO step


(cherry picked from commit 39b027504b9b26b9b71aa4abac5f2b66f256f200)
2007-06-18 19:04:11 +00:00
Derrick Brashear
105c63c0c2 DEVEL15-darwin-collect-network-errors-for-fast-timeout-20070618
same optimization we do on windows, linux


(cherry picked from commit 0c5cf6028d2e45809772838fb169c456f22e61f6)
2007-06-18 18:58:37 +00:00
Derrick Brashear
5ad430e2c8 DEVEL15-darwin-afs-syscall-eliminate-needless-vfs-context-hold-20070618
avoid potential deadlock if e.g. SetTokens is called before the kernel module initialization completes


(cherry picked from commit 125e4511a9715a5df7dda265373d97a21177ea21)
2007-06-18 18:06:24 +00:00
Asanka Herath
5e7faaefcc DEVEL15-windows-nim-afs-20070617
Don't assume that WM_DESTROY is the final message received by a
window.  Verify dialog data structures when handling messages and
reset the window data field when freeing the data structure.

Zero should be considered a valid credentials type identifier in
Network Identity Manager.

When checking if an identity is configured to obtain a token for a
specific cell, don't go through the list of cells if AFS tokens
are disabled for the identity.

Similarly, when removing a token for a specific cell from all
identities, don't bother modifying identities for whom AFS tokens
are disabled.

Keep track of whether a specific cell was added to the list of
cells to authenticate for an identity because it was listed in the
configuration or because a token for the cell already existed.

Correct an off-by-one error when calculating buffer sizes for
multi strings which failed to account for a double NULL
terminator.

Don't update the cell->identity mapping if a token for that cell
could not be obtained.

If the list of cell to authenticate for an identity is empty, we
still need to write the empty string to the configuration.
Otherwise, removing all the tokens from an identity will not
result in a configuration change reflecting that.


(cherry picked from commit 6bc5c0899a9eb6c134c0079406fe28113e5cbeaf)
2007-06-17 05:50:29 +00:00
Jeffrey Altman
7940ab94a8 DEVEL15-windows-ioctl-path-availability-20070614
fix cm_IoctlPathAvailability to return the current volume state.
0, CM_ERROR_ALLBUSY, CM_ERROR_ALLDOWN, CM_ERROR_ALLOFFLINE

modify fs.c to generate messages when the errors are received.


(cherry picked from commit e8fa4d0e40c2a4352010986f82ac2fbfe8b8ae3e)
2007-06-14 21:58:53 +00:00
Jeffrey Altman
14115da9fb DEVEL15-windows-volstate-update-post-network-change-20070614
When the system's IP address list changes we invalidate the existing
RX connections and probe all of the servers.  A better algorithm is
to probe all vldb servers, invalidate the rx connections, and then
probe all file servers.


(cherry picked from commit 0187bf2feb9a191ba0b7868905854c603cc5092c)
2007-06-14 21:55:18 +00:00
Jeffrey Altman
b8d45dbd09 DEVEL15-rx-lwp-sendmsg-20070614
update the lwp version of rxi_sendmsg to return the same error, -1,
returned by the pthread version.

replace errno with WSAGetLastError() in the Windows blocks so that
the correct error value is checked.


(cherry picked from commit 46a931d020da24dd534e1064ea9fbe693acbdf65)
2007-06-14 20:06:25 +00:00
Jeffrey Altman
2bc3dfc829 DEVEL15-windows-pioctl-add-error-translations-20070614
add error translations for CM_ERROR_ALLDOWN, CM_ERROR_ALLBUSY,
CM_ERROR_ALLOFFLINE, CM_ERROR_NOSUCHPATH


(cherry picked from commit c27c00f8a93dcfd1b919197e233c217f778cbbf7)
2007-06-14 19:31:35 +00:00
Asanka Herath
dbd5762ef4 DEVEL15-windows-magic-share-names-20070613
Access to AFS volumes via magic share names

        \\afs\<cell><type><volume>

<cell> = cellname
<type> = % or #
<volume> = volume name or id


(cherry picked from commit 5ac7a7db9a79ac81f83b61150e73bc7bf0f14d61)
2007-06-13 23:28:25 +00:00
Jeffrey Altman
6ec04e3632 DEVEL15-windows-server-ping-deadlock-20070612
avoid deadlock in cm_ServerPing due to volume status update code


(cherry picked from commit c74a23fc4043e28a138fe624b1aadf3af1ee8f6f)
2007-06-13 07:38:39 +00:00
Derrick Brashear
6da9229bb4 DEVEL15-newuuid-20070612
add the newuuid command


(cherry picked from commit b1bbe33fdee32a3b3ec87a9d770d8684347f7c4b)
2007-06-12 20:14:07 +00:00
Marc Dionne
8c37b30cb1 DEVEL15-linux-configure-vfs-update-20070612
FIXES 62017

clean up output


(cherry picked from commit 391d657c6ed80b5479d1db6ded957c8ddf688cb2)
2007-06-12 19:39:41 +00:00
Marc Dionne
2cd9c5f158 DEVEL15-linux-vfs-flush-3arg-20070612
FIXES 62203

3rd arg for passing lock owner id. add configure gunk also


(cherry picked from commit 6eabfbd4b969d9efcc1eef646899af28a5077f0f)
2007-06-12 19:34:16 +00:00
Jeffrey Altman
5f7df409a5 DEVEL15-windows-volume-status-tracking-20070612
* re-write cm_Analyze to make better use of the known volume
  status.  VL_Server queries cannot result in CM_ERROR_ALLOFFLINE
  messages.

* renamed cm_CheckBusyVolumes to cm_CheckOfflineVolumes.
  busy volumes will be reset to srv_non_busy by the function
  but there is no mechanism for querying the busy state other
  than by attempting to access the resource.

* cm_Analyze will query the state of an offline volume before
  deciding whether or not to retry when all volume instances
  are offline.


(cherry picked from commit 86b3330c7148c25c0a7ee4ea8f15e3098695a667)
2007-06-12 16:38:43 +00:00
Marc Dionne
db8553387d DEVEL15-linux-2-6-22-updates-20070611
FIXES 61767

1 - task_struct loses thread_info, which is now accessible through the
task_thread_info() macro. A configure test is added to deal with this.

2 - the SLAB_CTOR_VERIFY flag is gone


(cherry picked from commit 37a0b14e016af74176d714cc1b25a2af00275d56)
2007-06-12 06:44:00 +00:00
Steven Jenkins
586043397a DEVEL15-man-vos-online-20070611
Add initial man pages for vos offline and vos online.


(cherry picked from commit ce209b23a5c64ed4b0d79ed775acf6cc000f4a35)
2007-06-12 05:02:13 +00:00
Lars Wilke
bc0db9c376 DEVEL15-man-fileserver-args-20070611
Missed another erroneous option argument.


(cherry picked from commit ee37fd74ef67ea6c9543544b23ca69fd9f624572)
2007-06-12 04:58:36 +00:00
Jeffrey Altman
37af6177ae DEVEL15-windows-notes-20070610
changes since 1.5.20.  not ready for 1.5.21 yet
2007-06-10 18:05:14 +00:00
Jeffrey Altman
0bc9a3b959 DEVEL15-windows-volume-status-tracking-20070610
* changed the enum values for cm_serverRef_t state info to use a
  private name space to avoid collisions (srv_)

* added a srv_deleted state for cm_serverRef_t objects.  This
  state is set when cm_FreeServerList() is called with the
  CM_FREESERVERLIST_DELETE flag set.  cm_FreeServerList() may
  not always delete the cm_serverRef_t from the list if it is
  still in use by another thread.  the srv_deleted state means
  the object's contents are no longer valid and it must be
  skipped.  It will be deleted the next time the object is
  freed and the refcount hits zero.

* the srv_deleted state is also used when a file server reports
  either VNOVOL or VMOVED instead of marking the cm_serverRef_t
  as offline.  This is done to prevent additional usage of the
  stale vldb data while waiting for the update volume request
  to complete.

* added a state field to the cm_volume_t object (enum volstate
  vl_ name space) that maintains the state of the volume based
  upon the states of all of the cm_serverRef_t and cm_server_t
  objects.

* modified cm_UpdateVolume() to set the state of the cm_volume_t
  RW, RO, and BK to either vl_alldown or vl_online.  There can't
  be any other states because cm_UpdateVolume() destroys any
  previous knowledge we might have had regarding busy or offline
  volume status

* modified cm_UpdateVolume() to update the volume name in the
  cm_volume_t to the volume base name if the previous value was
  a volume ID.

* modified cm_FollowMountPoint() to check to see if the volume
  name is a volume ID and if so call cm_GetVolumeByID instead
  of cm_GetVolumeByName.  This ensures that volume IDs are always
  looked up as numeric values.  There is no longer a need to
  maintain a separate cm_volume_t containing the string representation
  of the ID value.

* Added a flags parameter to cm_GetVolumeByName() and cm_GetVolumeByID().
  The first flag is a "CREATE" flag which is set by all existing
  calls.  The flag is not set by calls to cm_GetVolumeByID() from
  the server probe code when volume status is being updated.  We
  do not want the server probe operation to result in additional
  turnover in the cached volume data.  The second flag is NO_LRU_UPDATE
  which is set when the server probe code updates the volume status.
  This flag will be used to prevent the server probe operation from
  changing the order of the least recently used queue.

* Modified cm_GetVolumeByName to ensure that only one cm_volume_t is
  allocated for a given set of normal, readonly, and backup volumes
  regardless of whether or not the volume is accessed via name or
  ID number.  The cm_volume_t namep field is always the base name
  of the volume.

* Added a new volume state, vl_unknown.  This state is used as
  the initial state for all cm_volume_t when the cache manager starts,
  for each cm_volume_t at creation, and for each cm_volume_t when
  recycling.  The cache manager does not know the state of all
  volumes in the world, only those that are in the cache and for
  which it has queried the VLDB and hosting file servers.

* modified cm_GetVolumeByName() to initialize the state of a
  volume to vl_unknown.  The actual state will be set when a
  cm_VolumeUpdate() call completes successfully.

* changed name of scache hash table variables to avoid ambiguity
  when adding hash tables for volumes

* fix a buffer overrun in sys\pioctl_nt.c  pioctl().
  (thanks Asanka)

* modified cm_UpdateVolume() to handle the case in which there is
  no RW volume but there is are RO volumes for a given base name.
  This is done by querying for the ".readonly" volume name if the
  base name does not exist in the VLDB.  We never query for the
  .backup name because under the current usage model a .backup
  volume may only exist on the server that the read-write volume
  is located.  If there is no RW volume, there can be no .backup.

* Added four hash tables for cm_volume_t objects to improve the
  search time of cm_GetVolumeByID(), cm_GetVolumeByName() and
  cm_ForceUpdateVolume(). One each for Name, RWID, ROID, and
  BKID.  Three ID hash tables are necessary as long as it is
  desireable to maintain a single cm_volume_t containing all
  of the related RW, RO, and BK volume data.  Having the RW and
  RO volume data in the same object is necessary for the
  implementation of cm_GetROVolumeID() which returns either the
  RO or RW ID depending upon the existence of RO volume instances.

* Added a volume LRU queue so that volume reuse becomes fairer.
  This does not replace the all Volumes list which is used when
  it is desireable to walk a list of all the volumes whose order
  is not going to change out from underneath you which makes it
  safe to drop the cm_volumeLock.

* handles volume hash table updates where volume name to
  volume ID number changes.  The volume name remains
  constant in the cm_volume_t.  if a vos rename is performed,
  the name of the volume will change and the volume IDs will be
  updated.  Subsequent access to the old volume ID will create a
  new cm_volume_t with the new name.

* Added a daemon thread operation to query the state of volumes
  listed as busy or offline.  cm_CheckBusyVolumes() calls
  RXAFS_GetVolumeStatus() for each volume ID that is marked vl_busy
  or vl_offline.   If the volume is now online, the status on the
  volume is updated.  The default period is 600 seconds.  This can
  be configured with the BusyVolumeCheckInterval registry value.

* Added prototype for smb_IoctlPrepareRead() which was missing a
  return type in the function definition.

* Added volume id lists to the cm_server_t.  These lists are
  allocated in blocks of ~32 IDs.  When a cm_PingServer()
  detects a change in server state, the state of the cm_volume_t
  is updated.

* Added volID to the cm_serverRef_t object.  volID is used
  to identify the volume for which the object is a referral.
  cm_FreeServerList() uses the volID to remove the volume
  from the cm_server_t.

* In cm_Analyze, when VNOVOL or VMOVED are received,
  call cm_ForceVolumeUpdate() to force a refresh of the volume
  location data.

* Added cm_VolumeStatusNotification() which is used at the moment
  to log volume status changes to the trace log.  It will also
  be used as the access point to the File System Filter driver
  notification engine.

* Added an all cm_scache_t list to cm_data.  This replaces the use
  of the stat cache LRU queue when we need to enumerate all
  entries.  The LRU list order is not static and when using it to
  enumerate all entries it can result in items being missed or
  items being processed more than once.

* Modified cm_Analyze(). Instead of reseting the busy or offline
  state of a volume and forcing a retry of the operation
  cm_Analyze will defer to the background daemon thread that will
  update the state once every 600 seconds.

* Added the automatic generation of a Freelance ".root" read-write
  mountpoint that refers to the root.afs volume of the workstation
  cellname at the time the mountpoint is created.


(cherry picked from commit 66adaf326861ae8a544650928bc6934d26a91d1d)
2007-06-10 18:00:07 +00:00
Jeffrey Altman
3a3b98a865 DEVEL15-rxkad-badticket-20070610
In rxkad_CheckResponse, when checking the return value from tkt_CheckTimes,
the order is == 0, == -1, < -1, <= 0.  The <= 0 case is extraneous so
remove it. Both < -1 and <= 0 returned RXKADBADTICKET.


(cherry picked from commit f4bd2604222c1199fc0ece0eaa82c034fa50b977)
2007-06-10 15:25:29 +00:00
Asanka Herath
1a04da568f DEVEL15-windows-pioctl-buffer-overrun-20070609
this patch protects against a buffer overrun in the client if the
server were to send more data than the receiving buffer can hold.


(cherry picked from commit 8a814a5596e9d8db1c24326715f794ae46966b3b)
2007-06-10 06:55:42 +00:00
Derrick Brashear
6198de5c35 DEVEL15-linux-kmem-destroy-fix-20070609
don't destroy if create failed


(cherry picked from commit 18484f0fc64a550c1abacb6d2614c7ea12af4052)
2007-06-10 06:43:11 +00:00
Derrick Brashear
b3b4978510 DEVEL15-vsprocs-avoid-bogus-error-20070606
don't EPRINT if it's not an error


(cherry picked from commit fcfdcc3cc1c272966574103f7e8bd495c7fcbb84)
2007-06-06 18:56:19 +00:00
Derrick Brashear
2bd3175726 DEVEL15-lwp-linux-ucontext-20070606
to revert other changes which got pushed down here; make things like the head
2007-06-06 18:33:28 +00:00
Derrick Brashear
3461b32ff3 DEVEL15-aix-declare-setlim-20070606
maybe fix lwp.c compiling with modern aix


(cherry picked from commit cb18c5f80257d2ef239933dbe055cbe753b312c6)
2007-06-06 18:22:05 +00:00
Derrick Brashear
c2ea6f568e DEVEL15-solaris-sparc-default-to-v8-insns-for-kmod-20070605
FIXES 23935

don't use the default instruction set since the compiler has changed over time


(cherry picked from commit a62104968094bec86a7d3692158bbc84db035cdd)
2007-06-05 18:11:28 +00:00
Jeffrey Hutzelman
a8b6ff273d DEVEL15-fix-kbuild-linux-ppc64-20070604
The Linux 2.6 kbuild environment requires assembly files end in .S, not .s.


(cherry picked from commit e8493e06f9d62c282bca2df8a4a0ac20caa4c70c)
2007-06-05 04:54:29 +00:00
Jeffrey Altman
b00f7c3ffe DEVEL15-windows-release-notes-20070604
in the 1.5.9 release time frame sections 4 and 5 on debugging and bug
reporting got lost.  restore them.
2007-06-04 13:16:56 +00:00
Derrick Brashear
a50fd59679 DEVEL15-clone-dont-hold-vol-lock-20070516
same deal as purge. a transaction on the volume outstanding holds it. we don't need to preclude all access

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

same deal as purge. a transaction on the volume outstanding holds it. we don't n
eed to preclude all access

====================

same deal as purge. a transaction on the volume outstanding holds it. we don't n
eed to preclude all access


(cherry picked from commit aa5d46b71b3700d6256f47237fadf0a4829daee6)
openafs-devel-1_5_20
2007-05-18 06:53:56 +00:00
Derrick Brashear
ac143ab6a4 DEVEL15-openafs-1-5-20-20070518
make 1.5.20
2007-05-18 06:22:33 +00:00
Derrick Brashear
4e0f39a9fb DEVEL15-linux-posix-lock-file-has-wait-arg-now-20070517
FIXES 58590

hopefully this works, i can't actually try it now


(cherry picked from commit ad98eacdadf6b9e079d1606f40cfc352450650a1)
2007-05-17 19:36:01 +00:00